/* Container & Glass Panels */
.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 25px 50px -12px var(--shadow-heavy);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Header */
header {
    text-align: center;
}

/* null replacing .theme-toggle-btn */

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bounce-icon {
    color: #fca5a5;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.last-updated-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: var(--overlay-hover);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    margin-bottom: 0.5rem;
}

.header-hint {
    margin-top: 0.6rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    opacity: 0.65;
}


.footer {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-top {
    padding: 1.5rem 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Disclaimer Section */
.disclaimer-section {
    text-align: left;
}

/* ==========================================
   Mobile RWD — ≤ 768px
   ========================================== */
@media (max-width: 768px) {

    /* Reduce container padding */
    .container {
        padding: 1rem 0.75rem;
        gap: 1rem;
    }

    /* Header: smaller font */

    h1 {
        font-size: 1.6rem;
        flex-wrap: wrap;
        gap: 6px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .glass-panel {
        padding: 1.25rem;
        border-radius: 14px;
    }

    /* Intro section */
    .intro-section h3 {
        font-size: 1rem;
    }

    .header-actions {
        gap: 0.75rem;
        padding: 0;
    }

    .action-group,
    .sponsor-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .glass-btn {
        width: 100%;
        justify-content: center;
    }

    .action-divider {
        display: none;
    }

    .sponsor-btn span,
    .github-star-btn span {
        font-size: 0.75rem;
    }

    .info-btn,
    .sponsor-btn,
    .github-star-btn {
        padding: 0.5rem 0.8rem;
    }

    .intro-tips {
        flex-direction: column;
        gap: 0.6rem;
    }

    /* Strategy cards: 2 columns on tablet, section padding reduced */
    .intro-section,
    .guide-section {
        padding: 1.25rem;
    }

    .strategy-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* Controls: single column */
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        overflow: hidden;
    }

    .search-box {
        min-width: unset;
    }

    .filters {
        justify-content: flex-start;
        gap: 0.5rem;
        row-gap: 0.5rem;
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0.5rem;
        width: 100%;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter-divider {
        display: none;
    }

    .filter-btn {
        font-size: 0.82rem;
        padding: 0.5rem 0.9rem;
        white-space: nowrap;
    }

    .filters-secondary {
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }

    .filters-secondary-group {
        gap: 0.6rem;
        justify-content: flex-start;
    }

    .annual-checkbox-label.filter-circle,
    .id-exclude-label.filter-circle {
        width: 65px;
        height: 65px;
        padding: 0;
        border-radius: 50%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .annual-checkbox-label.filter-circle span,
    .id-exclude-label.filter-circle span {
        display: block;
        white-space: nowrap;
    }
}

/* ==========================================
   Mobile RWD — ≤ 480px (small phones)
   ========================================== */
@media (max-width: 480px) {

    h1 {
        font-size: 1.3rem;
    }

    .gradient-text {
        display: block;
        margin-bottom: 2px;
    }

    .strategy-cards {
        grid-template-columns: 1fr !important;
        gap: 0.6rem;
    }

    .strategy-card {
        display: block;
        padding: 0.9rem 1rem;
    }

    .strategy-card > i {
        display: block;
        margin-bottom: 0.6rem;
    }

    .strategy-card h4 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
        width: 100%;
    }

    .strategy-card p {
        font-size: 0.82rem;
        line-height: 1.5;
        width: 100%;
    }

    .filter-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.7rem;
    }

    .cp-value {
        font-size: 0.95rem;
    }

    /* Hide pagination ellipsis label on tiny screens */
    .page-ellipsis {
        display: none;
    }
}
