/* ================= HEADER LAYOUT ================= */

/* --- MAIN HEADER CONTAINER --- */
.site-header {
    display: flex;             /* This forces items side-by-side */
    justify-content: space-between; /* Spreads them out (Left, Center, Right) */
    align-items: center;       /* Vertically centers them */
    border-bottom: 1px solid white;
    padding: 10px 30px;        /* Adds breathing room */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;          /* OPTIONAL: Keeps header at top when scrolling */
    top: 0;
    z-index: 1000;
}

/* ================= LEFT: BRAND & LOGO ================= */
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1; /* Takes up space on the left */
}

.brand-logo {
    height: 50px; /* Fixes the "too small" logo issue */
    width: auto;
}

/* Optional: If your logo is black and the navbar is black, invert the color */
/* .brand-logo { filter: invert(1); } */


/* ================= CENTER: SEARCH BAR ================= */
.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    overflow: visible; 
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 8px 15px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #e0e0e0;
    background-color: transparent; 
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 16px;
    padding-left: 10px;
    color: white !important; /* Forces text to be white */
    caret-color: var(--accent-green); /* The blinking cursor stays green */
}

.processing-text {
    color: var(--accent-green);
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    animation: blink 0.5s infinite;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-green);
    width: 0%;
    box-shadow: 0 0 10px var(--accent-green);
    transition: width 1.5s ease-in-out; /* The animation speed */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ================= RIGHT: NAVIGATION LINKS ================= */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Pushes links to the far right */
}

.header-right ul {
    display: flex;           /* Makes list horizontal */
    list-style: none;        /* Removes the bullet points */
    gap: 25px;               /* Space between Home, About, Contact */
    margin: 0;
    padding: 0;
}

.header-right a {
    text-decoration: none;   /* Removes underline */
    color: white;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
}

.header-right a:hover {
    color: green;            /* Highlight color on hover */
}

/* ================= MOBILE RESPONSIVENESS ================= */
/* If the screen is small (phone), stack them vertically so it doesn't break */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .header-left, .header-center, .header-right {
        width: 100%;
        justify-content: center;
    }
    .brand-logo { height: 40px; }
}
/* The Dropdown Container */
  /* --- 3. THE RESULTS DROPDOWN (This was missing before!) --- */
        .storm-search-results {
            display: none; /* Hidden by default */
            position: absolute;
            top: 105%; /* Pushes it just below the input */
            left: 0;
            width: 100%; /* Matches input width */
            
            background-color: #161616;
            border: 1px solid #333;
            border-radius: 10px;
            z-index: 1000; /* Floats on top */
            box-shadow: 0 10px 30px rgba(0,0,0,0.8);
            overflow: hidden;
        }

        /* Result Items */
        .storm-result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            border-bottom: 1px solid #222;
            text-decoration: none;
            color: #ccc;
            transition: 0.2s;
            cursor: pointer;
        }

        .storm-result-item:hover {
            background-color: #00f3ff; /* Neon Hover Background */
            color: #000; /* Text turns black for contrast */
        }

        .storm-result-item:last-child {
            border-bottom: none;
        }

        /* Text inside results */
        .result-info {
            display: flex;
            flex-direction: column;
        }

        .result-title {
            font-weight: bold;
            font-size: 1rem;
        }

        .result-type {
            font-size: 0.75rem;
            opacity: 0.7;
        }

        /* Status Badge (Live, Coming Soon) */
        .result-status {
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 4px;
            background: #333;
            color: #fff;
        }

        /* "No Result" Message */
        .no-result {
            padding: 15px;
            text-align: center;
            color: #666;
            font-style: italic;
        }
