/* =========================================
   DAZINGINTO.SPACE - MASTER STYLESHEET
   ========================================= */

:root {
    --bg-space: #050814;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #38bdf8;
    --card-bg: rgba(11, 7, 22, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-space);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   1. BACKGROUND & ANIMATIONS
   ========================================= */

.sky-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    /* Darker, top-left biased purple/indigo fading into pure black */
    background: radial-gradient(circle at 10% 0%, #2a0a4a 0%, #0d0614 40%, #050505 100%);
    z-index: -3;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: -2;
}

.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%; /* Height 100% prevents mobile browser jumping */
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.shooting-star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
    
    /* Hardware acceleration for mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, opacity;
    
    opacity: 0;
    animation: meteor var(--dur) linear infinite;
    animation-delay: var(--delay);
}

@keyframes meteor {
    0% { opacity: 1; transform: translateX(0) translateY(0) rotate(-45deg) translateZ(0); }
    15% { opacity: 0; transform: translateX(-300px) translateY(300px) rotate(-45deg) translateZ(0); }
    100% { opacity: 0; transform: translateX(-300px) translateY(300px) rotate(-45deg) translateZ(0); }
}

/* =========================================
   2. HEADER & TYPOGRAPHY
   ========================================= */

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.hero {
    text-align: center;
    /* Controls the gap ABOVE the line (between text and line) */
    padding-bottom: 1rem; 
    
    /* Controls the gap BELOW the line (between line and first post) */
    margin-bottom: 3rem; 
    
    border-bottom: 1px solid var(--border-color);
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2dd4bf;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 0.8rem;
}

.eyebrow::before {
    content: "◆ ";
    color: #ec4899;
}

.wordmark {
    display: inline-block; /* Forces gradient to wrap tightly */
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #38bdf8 0%, #3b82f6 33%, #a855f7 66%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.top {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.top a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.top a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   3. FEED / STREAM LOGS
   ========================================= */

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-muted);
}

.empty-state .big {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.entry {
    background: #0b0716;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid #a855f7;
    border-radius: 8px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

/* Single Line Header Layout */
.entry-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 1rem 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    
    /* Forces one line */
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.log-id {
    color: #fde047;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.log-time {
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-ago {
    color: #64748b;
    font-size: 0.75rem;
    text-align: right;
    flex-shrink: 0;
}

.entry-media {
    width: 100%;
    background: #000;
}

.entry-media img, 
.entry-media video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.entry-caption {
    padding: 1.5rem;
    font-size: 1rem;
}

/* =========================================
   4. PILL BADGES
   ========================================= */

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 50px; /* Perfectly rounded */
    font-size: 0.85rem;
    white-space: nowrap;
    line-height: 1.5;
}

.target-pill {
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.6);
    background-color: rgba(56, 189, 248, 0.1);
}

.camera-pill {
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

.caption-pill {
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 5px;
    color: var(--text-main);
}

/* =========================================
   5. ADMIN DASHBOARD & FORMS (Mobile Safe)
   ========================================= */

form {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

form label, form p, form span {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Inputs & Textareas with Mobile Overrides */
input[type="text"],
input[type="password"],
textarea {
    -webkit-appearance: none; /* Stops iOS/Android taking over */
    appearance: none;
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 500;
}

/* Submit Buttons with Mobile Overrides */
button[type="submit"],
input[type="submit"],
.button, 
.btn {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    display: inline-block;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
    opacity: 0.9;
}

h2, h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* =========================================
   6. FOOTER
   ========================================= */

.site-footer {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}