/* ===== MOCK TESTS PAGE - 2026 PREMIUM UPGRADE ===== */

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.25;
    }
}



@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes border-glow-chase {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

@keyframes reveal-lead {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reveal-tabs {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-glow-pulse {
    animation: pulse-glow 8s ease-in-out infinite;
}

.premium-lead p {
    animation: reveal-lead 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.58) 100%);
}

.subjects-section {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.52) 0%, rgba(2, 6, 23, 0.7) 100%);
}

/* --- Stats Banner Design --- */
.user-stats-banner {
    display: grid;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 32px 40px !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-v-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.stat-module {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-module:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(12px);
    opacity: 0.3;
    z-index: -1;
}

/* --- Premium Filter Tabs --- */
.test-tabs {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 100px;
    display: flex;
    width: fit-content;
    margin: 0 auto 50px;
    gap: 8px;
}

.test-tab {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--text-muted);
    border: 1px solid transparent;
}

.test-tab:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.test-tab.active {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Search Design --- */
.search-container input {
    background: rgba(15, 23, 42, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    height: 64px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.search-container input:focus {
    border-color: var(--primary) !important;
    background: rgba(15, 23, 42, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .user-stats-banner {
        grid-template-columns: 1fr !important;
        padding: 24px !important;
    }

    .test-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        width: calc(100% + 32px) !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding: 8px 16px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 8px !important;
    }

    .test-tabs::-webkit-scrollbar {
        display: none;
    }

    .test-tab {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .test-tab.active {
        background: var(--grad-primary) !important;
        border-color: transparent !important;
    }
}

@media (max-width: 480px) {
    .search-container input {
        height: 54px !important;
        padding-left: 54px !important;
        font-size: 0.95rem !important;
    }

    .search-box-wrap i {
        left: 20px !important;
    }
}

/* Spectrum Sync: Mock Tests Hub Light Mode Refinements */
.light-mode .user-stats-banner {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08) !important;
}

.light-mode .hero {
    background: linear-gradient(180deg, rgba(240, 249, 246, 0.92) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.light-mode .subjects-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 246, 0.95) 100%);
}

.light-mode .stat-v-divider {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.light-mode .stat-module h4 {
    color: var(--secondary);
}

.light-mode .test-tabs {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.light-mode .test-tab {
    color: #475569;
}

.light-mode .test-tab:hover {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.light-mode .test-tab.active {
    background: var(--grad-primary) !important;
    color: white !important;
}

.light-mode .mock-card-title {
    color: var(--secondary) !important;
}

.light-mode .mock-card-meta {
    color: var(--text-muted) !important;
}

.light-mode .mock-icon-wrap {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--primary) !important;
}

.light-mode .mock-category-tag {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--primary) !important;
    letter-spacing: 0.5px;
}

.light-mode .search-container input {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--secondary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.light-mode .search-container input::placeholder {
    color: #94a3b8 !important;
    /* slate-400 */
}

.light-mode .search-container input:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.light-mode .search-box-wrap i {
    color: #64748b;
}

.light-mode .section-header h2 {
    color: var(--secondary);
}
