/* =========================================
   COMPONENT STYLES (Deep Emerald Theme)
   ========================================= */

/* --- FORM CONTROLS --- */

/* Wrapper for Radios + Vote Link */
.footer-right {
    display: flex;
    align-items: center;
    gap: 0;
}

/* --- COMPACT RADIO STYLES --- */
.radio-group-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 10px;
}

.radio-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
}

/* The Radio Circle */
.radio-compact input[type="radio"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--white-color);
    /* Uses theme muted color */
    border-radius: 50%;
    display: grid;
    place-content: center;
    margin: 0;
    cursor: pointer;
    transition: 0.2s;
    background-color: transparent;
}

/* The Inner Glow Dot (Emerald) */
.radio-compact input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.2s transform cubic-bezier(0.68, -0.55, 0.27, 1.55);

    /* THEME UPDATE: Emerald Green */
    background-color: var(--white-color);
    box-shadow: 0 0 6px var(--white-color);
}

.radio-compact input[type="radio"]:checked::before {
    transform: scale(1);
}

.radio-compact input[type="radio"]:checked {
    border-color: var(--neon-cyan);
}

/* Highlight Text on Check */
.radio-compact:has(input:checked) {
    color: #fff;
    /* Green Glow on text */
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

.ad-placeholder {
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px dashed rgba(46, 204, 113, 0.3);
    /* Subtle Green Dash */
    padding: 8px 15px;
    border-radius: 6px;
}

/* --- PAGINATION STYLING --- */
.pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.step-links {
    background: var(--logo-color);
    /* Darker Green-Black */
    backdrop-filter: blur(12px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid var(--black-color);
    /* Green Border */
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white-color);
    box-shadow: none;
}

.page-btn {
    color: var(--white-color);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--white-color);
    transition: all 0.3s ease;
}

.page-btn:hover {
    /* Hover State: Bright Emerald */
    background: var(--logo-color);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.5);
    color: var(--white-color);
    /* Dark Text */
    transform: translateY(-2px);
}

.current-page {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.no-results-msg {
    color: var(--logo-color);
    text-align: center;
    grid-column: 1 / -1;
    /* Spans full width */
    font-size: 1.1rem;
    padding: 60px 0;
    opacity: 0.8;
    font-weight: 300;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white-color);
    color: var(--white-color);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--ease-smooth);
    text-decoration: none !important;
}

.btn-outline:hover {
    background: var(--white-color);
    color: var(--logo-color);
    box-shadow: 0 0 10px var(--logo-color);
}

/* =========================================
   SMALL OUTLINE BUTTON (Compact)
   ========================================= */
.btn-outline-sm {
    background: transparent;
    border: 1px solid var(--white-color);
    color: var(--white-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-outline-sm:hover {
    background: var(--white-color);
    color: var(--logo-color);
    box-shadow: 0 0 10px var(--logo-color);
}


/* =======================================================
   EYE ICON BUTTON
   ======================================================= */
.icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 10px 0 0;
    text-decoration: none !important;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.icon-btn i {
    pointer-events: none;
    text-decoration: none !important;
}

.icon-btn:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.7);
    transform: scale(1.15);
}

/* Sub-Header Container */
.feed-sub-header {
    display: flex;
    align-items: center;
    /* Vertically Center items */
    justify-content: flex-start;
    /* Align everything to the Left */
    gap: 15px;
    /* Space between Dropdown and Text */
    margin: 15px 0;
}

.top-filter-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-dropdown-container:first-of-type {
    justify-self: start;
}

.filter-dropdown-container:last-of-type {
    justify-self: end;
}

.feed-note {
    color: var(--black-color);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    text-align: center;
    justify-self: center;
    /* This centers it perfectly in the grid */
}

.feed-note i {
    color: var(--neon-cyan);
}

/* Dropdown Container */
.filter-dropdown-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.dropdown-label {
    color: var(--black-color);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: nowrap;
}

/* 1. Main Dropdown Button */
.status-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-color: var(--white-color);
    color: var(--logo-color);
    border: 1px solid var(--logo-color);
    /* Neon Border */

    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;

    /* Custom Arrow Icon */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23278f29%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;

    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--logo-color);
}

/* 2. Hover Glow Effect */
.status-dropdown:hover {
    box-shadow: 0 0 15px var(--logo-color);
    background-color: var(--white-color);
}

/* 3. THE DROPDOWN LIST (OPTIONS) - FORCE DARK MODE */
.status-dropdown option {
    background-color: var(--white-color);
    /* Force Black Background */
    color: var(--logo-color);
    /* Force Neon Green Text */
    padding: 12px;
    /* Spacing */
    font-weight: 500;
    border: none;
}

/* Date of Birth calendar icon white */

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* ===== YES/NO VOTE OVALS ===== */
.vote-ovals-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.vote-oval-btn {
    background: transparent;
    border: 1px solid var(--white-color);
    color: var(--white-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.vote-oval-btn.active-vote {
    background: var(--white-color);
    border-color: var(--white-color);
    color: var(--logo-color);
    cursor: pointer;
}

.vote-oval-btn:hover {
    background: var(--white-color);
    color: var(--logo-color);
    box-shadow: 0 0 10px var(--logo-color);
}

/* =========================================
   MOBILE Layout
   ========================================= */
@media (max-width: 768px) {
    .top-filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Creates two equal columns side-by-side */
        grid-template-areas:
            "drop1 drop2"
            "note note";
        /* Text spans across the bottom */
        gap: 15px;
        /* Adds space between columns and rows */
        align-items: end;
        /* Ensures the bottom of both select boxes line up perfectly even if labels are different lengths */
    }

    .filter-dropdown-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
    }

    .filter-dropdown-container:first-of-type,
    .filter-dropdown-container:last-of-type {
        width: 100%;
    }

    .feed-note {
        grid-area: note;
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        margin: 0;
        position: static;
        transform: none;
    }

    /* Make text labels smaller and align them left for a cleaner look */
    .dropdown-label {
        font-size: 12px;
        display: block;
        text-align: left;
        margin-bottom: 6px;
    }

    /* Make sure the select boxes stretch to fill their half of the screen */
    .status-dropdown {
        width: 100%;
        max-width: 100%;
        padding: 8px 25px 8px 10px;
        /* Slightly tighter padding to fit the text */
        font-size: 0.85rem;
    }

    .step-links {
        flex-wrap: nowrap;
        /* Forces everything to stay on one line */
        padding: 8px 16px;
        /* Shrinks the outer pill padding */
        gap: 6px;
        /* Shrinks the space between buttons */
        border-radius: 50px;
        /* Keeps the perfect desktop pill shape */
        white-space: nowrap;
        /* Stops text from stacking */

        /* Allows smooth horizontal swiping on super tiny screens without breaking the layout */
        overflow-x: auto;
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    /* Hides the ugly scrollbar for Chrome/Safari so it looks like a native app */
    .step-links::-webkit-scrollbar {
        display: none;
    }

    .page-btn {
        padding: 8px 12px;
        /* Smaller tap area to fit the screen */
        font-size: 0.75rem;
        /* Shrinks the button text */
    }

    .current-page {
        font-size: 0.75rem;
        /* Shrinks the middle text */
        margin: 0 4px;
    }
}
