/* =============================================================
   HOME PAGE STYLES - QuizHub Design
   ============================================================= */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(6, 182, 212, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 48px 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--t1);
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 40%, #c084fc 70%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--t2);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Illustration */
.hero-illustration {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 340px;
    pointer-events: none;
    z-index: 1;
}

.hero-illustration svg {
    width: 100%;
    height: 100%;
}

/* Float animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.float-1 { animation: float-slow 4s ease-in-out infinite; }
.float-2 { animation: float-medium 3.5s ease-in-out infinite; }
.float-3 { animation: float-fast 3s ease-in-out infinite; }
.float-delay-1 { animation-delay: 0.5s; }
.float-delay-2 { animation-delay: 1s; }
.float-delay-3 { animation-delay: 1.5s; }

/* Buttons */
.btn-primary-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    color: #fff;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: var(--t1);
    border: 1px solid var(--brd2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--t2);
    color: var(--t1);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--t1);
}

/* Category Scroll Navigation */
.scroll-nav {
    display: flex;
    gap: 8px;
}

.scroll-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--brd);
    background: var(--bg2);
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.scroll-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brd2);
    color: var(--t1);
}

/* Category Cards - Horizontal Scroll */
.category-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex-shrink: 0;
    width: 220px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--bg2);
    border: 1px solid var(--brd);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-placeholder i {
    font-size: 48px;
    color: var(--t3);
}

.category-card-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-card-label i {
    font-size: 11px;
}

.category-card-count {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================================
   PRIZE CARDS - Recently Won Section
   ============================================================= */

/* Prize Scroll Container */
.prize-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.prize-scroll::-webkit-scrollbar {
    display: none;
}

/* Prize Card */
.prize-card {
    flex-shrink: 0;
    width: 240px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--brd);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Prize Image Section */
.prize-card-image {
    position: relative;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #1e293b, #334155);
    overflow: hidden;
}

.prize-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
}

.prize-card-placeholder i {
    font-size: 42px;
    color: var(--primary);
    opacity: 0.7;
}

/* Partner Badge */
.partner-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.partner-badge-text {
    font-size: 10px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
}

/* Prize Card Body */
.prize-card-body {
    padding: 14px;
}

.prize-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prize-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.prize-value {
    font-size: 15px;
    font-weight: 700;
    color: #22c55e;
}

.prize-partner {
    font-size: 11px;
    color: var(--t3);
}

/* Winners Section (Social Proof) */
.prize-card-winners {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.winner-avatars {
    display: flex;
    align-items: center;
}

.winner-avatars .avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg2);
    margin-left: -8px;
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.winner-avatars .avatar-mini:first-child {
    margin-left: 0;
}

.winner-avatars img.avatar-mini {
    background: var(--bg3);
}

.winner-count {
    font-size: 12px;
    color: var(--t2);
    font-weight: 500;
}

/* Stats Row (Likes & Rating) */
.prize-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--brd);
}

.prize-likes,
.prize-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--t3);
}

.prize-likes i {
    color: #ef4444;
}

.prize-rating i {
    color: #fbbf24;
}

.prize-rating .rating-count {
    font-size: 10px;
    color: var(--t3);
    margin-left: 2px;
}

/* =============================================================
   PRIZES PAGE - Full Grid Layout
   ============================================================= */

.prizes-header .page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--t1);
    margin: 0;
}

.prizes-filters {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 16px 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prizes-filters .form-select {
    background: var(--bg3);
    border-color: var(--brd);
    color: var(--t1);
    min-width: 150px;
}

.prizes-filters .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.prizes-count {
    font-size: 13px;
}

/* Prizes Grid (Full Page) */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .prizes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .prizes-grid {
        grid-template-columns: 1fr;
    }
    
    .prizes-filters form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .prizes-filters .form-select {
        width: 100%;
    }
}

/* Prize Card (Full Page Version) */
.prize-card-full {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--brd);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prize-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.prize-card-full .prize-card-image {
    height: 160px;
}

.prize-card-full .prize-card-body {
    padding: 16px;
}

.prize-card-full .prize-card-title {
    font-size: 15px;
    margin-bottom: 8px;
}

.prize-description {
    font-size: 12px;
    color: var(--t3);
    line-height: 1.5;
    margin-bottom: 12px;
}

.prize-card-full .prize-card-winners {
    margin-bottom: 12px;
}

.prize-card-full .prize-card-stats {
    padding-top: 12px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
}

.empty-state i {
    opacity: 0.3;
}

/* CTA Card */
.prizes-cta {
    margin-top: 48px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 40px;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 8px;
}

.cta-card p {
    color: var(--t2);
    margin-bottom: 20px;
}

/* Scroll Navigation (shared with categories) */
.scroll-nav {
    display: flex;
    gap: 8px;
}

.scroll-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--brd);
    background: var(--bg2);
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scroll-nav-btn:hover {
    background: var(--bg3);
    color: var(--t1);
    border-color: var(--brd2);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-illustration {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 32px 24px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons a, 
    .hero-buttons button {
        width: 100%;
        text-align: center;
    }
    
    .category-card {
        width: 180px;
        height: 150px;
    }
    
    .prize-card {
        width: 200px;
    }
    
    .prize-card-image {
        height: 110px;
    }
}

/* =============================================================
   HOME SECTIONS
   ============================================================= */

.home-section {
    margin-bottom: 40px;
}

.section-link {
    font-size: 13px;
    color: #818cf8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-link:hover {
    color: #a5b4fc;
}

.section-subtitle {
    font-size: 13px;
    color: var(--t2);
    margin-top: 4px;
}

/* =============================================================
   LATEST QUIZZES - Grid
   ============================================================= */

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .quiz-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .quiz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .quiz-grid { grid-template-columns: 1fr; }
}

.quiz-card-latest {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
    text-decoration: none;
}

.quiz-card-latest:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.quiz-card-icon {
    height: 140px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-icon-emoji {
    font-size: 56px;
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin: 14px 14px 0;
}

.difficulty-easy { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.difficulty-medium { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.difficulty-hard { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.quiz-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin: 10px 14px 4px;
    line-height: 1.4;
}

.quiz-card-category {
    font-size: 12px;
    color: var(--t2);
    margin: 0 14px 14px;
}

.quiz-play-btn {
    display: block;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    color: #818cf8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.quiz-play-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* =============================================================
   FEATURED QUIZZES - Cards with Tabs
   ============================================================= */

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--t2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.filter-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.featured-card-image {
    height: 130px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-icon-emoji {
    font-size: 52px;
}

.featured-card-body {
    padding: 14px;
}

.featured-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.featured-category {
    font-size: 12px;
    color: var(--t2);
}

.featured-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
}

.featured-badge.hot { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.featured-badge.editors { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.featured-badge.trending { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.featured-badge.top { background: rgba(234, 179, 8, 0.15); color: #facc15; }

.featured-card-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--t2);
}

.creator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-rating {
    margin-left: auto;
    color: #fbbf24;
}

.featured-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.featured-reward {
    display: flex;
    flex-direction: column;
}

.reward-label {
    font-size: 10px;
    color: var(--t3);
}

.reward-value {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
}

.featured-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 60px;
    height: 4px;
    background: var(--brd);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.progress-text {
    font-size: 11px;
    color: var(--t2);
}

.featured-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--t2);
}

.featured-players {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-avatars {
    display: flex;
}

.avatar-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border: 2px solid var(--bg2);
}

.avatar-mini:first-child {
    margin-left: 0;
}

.featured-spots {
    color: #4ade80;
}

.spots-warning {
    color: #f87171 !important;
}

.featured-play-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.featured-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    color: #fff;
}

/* =============================================================
   TOP PLAYERS - Horizontal Scroll
   ============================================================= */

.players-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.players-scroll::-webkit-scrollbar {
    display: none;
}

.player-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.player-card:hover {
    transform: translateY(-4px);
}

.player-card-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    padding: 20px 16px;
    text-align: center;
}

.player-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-level {
    font-size: 10px;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin: 6px 0 4px;
}

.player-country {
    font-size: 11px;
    color: var(--t2);
}

.player-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 14px 10px;
    border-bottom: 1px solid var(--brd);
}

.player-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
}

.stat-earned {
    color: #4ade80 !important;
}

.stat-label {
    font-size: 10px;
    color: var(--t3);
}

.player-card-footer {
    padding: 12px 16px;
}

.player-social {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--t2);
}

.player-social strong {
    color: var(--t1);
}

/* =============================================================
   QUIZZES BY DIFFICULTY
   ============================================================= */

.difficulty-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.difficulty-tab {
    padding: 8px 24px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--t2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.difficulty-tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.difficulty-tab.active {
    background: #6366f1;
    color: #fff;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

@media (max-width: 1400px) { .difficulty-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) { .difficulty-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .difficulty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .difficulty-grid { grid-template-columns: 1fr; } }

.difficulty-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 14px;
    transition: transform 0.25s ease;
}

.difficulty-card:hover {
    transform: translateY(-4px);
}

.difficulty-card-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 10px;
    font-size: 12px;
    color: var(--t2);
}

.difficulty-reward {
    margin-left: auto;
    color: var(--t2);
}

.difficulty-reward strong {
    color: #4ade80;
}

.difficulty-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 4px;
    line-height: 1.4;
}

.difficulty-card-meta {
    font-size: 11px;
    color: var(--t3);
    margin-bottom: 10px;
}

.difficulty-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--t2);
    margin-bottom: 12px;
}

.spots-available { color: #4ade80; }
.spots-critical { color: #f87171; }

.difficulty-play-btn {
    display: block;
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    color: #818cf8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
    text-decoration: none;
}

.difficulty-play-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

/* =============================================================
   LIVE WINNERS
   ============================================================= */

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--t2);
    margin-left: 8px;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) { .winners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .winners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .winners-grid { grid-template-columns: 1fr; } }

.winner-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-info {
    flex: 1;
    min-width: 100px;
}

.winner-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    margin: 0;
}

.winner-time {
    font-size: 11px;
    color: var(--t3);
}

.winner-prize {
    width: 100%;
    font-size: 12px;
    color: var(--t2);
}

.prize-icon {
    margin-right: 4px;
}

.prize-amount {
    color: #4ade80;
}

/* =============================================================
   HOW IT WORKS
   ============================================================= */

.how-it-works {
    padding: 40px 0;
}

.section-header-center {
    text-align: center;
    margin-bottom: 32px;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title-lg {
    font-size: 28px;
    font-weight: 700;
    color: var(--t1);
    margin: 10px 0;
}

.section-desc {
    font-size: 14px;
    color: var(--t2);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 800px) {
    .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.5;
}

.cta-bar {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-bar p {
    font-size: 13px;
    color: var(--t2);
    margin: 0;
}

.online-users {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4ade80;
    font-weight: 500;
}

/* =============================================================
   SUCCESS STORIES
   ============================================================= */

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stories-grid { grid-template-columns: 1fr; } }

.story-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    padding: 20px;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.story-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-author h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin: 0;
}

.story-author span {
    font-size: 12px;
    color: var(--t2);
}

.story-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.story-text {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.6;
    margin-bottom: 14px;
    font-style: italic;
}

.story-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--t2);
}

.story-stats span {
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 6px;
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--brd);
    padding: 48px 0 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 32px;
    padding: 0 24px 32px;
}

@media (max-width: 1000px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
}

.footer-desc {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    color: var(--t2);
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #818cf8;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.contact-info i {
    color: #ef4444;
    margin-top: 2px;
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #818cf8;
}

.footer-newsletter h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 8px;
}

.footer-newsletter p {
    font-size: 13px;
    color: var(--t2);
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--brd);
    background: var(--bg);
    color: var(--t1);
    font-size: 13px;
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--t3);
}

.newsletter-input:focus {
    border-color: #6366f1;
}

.newsletter-btn {
    padding: 10px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid var(--brd);
    font-size: 13px;
    color: var(--t2);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--t2);
    transition: color 0.15s;
}

.footer-legal a:hover {
    color: #818cf8;
}


/* =============================================================
   DASHBOARD PAGE STYLES - QuizHub Design
   ============================================================= */

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Stat Card */
.sc {
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--brd);
}

.sc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.sc-icon i {
    font-size: 18px;
}

.sc-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--t1);
}

.sc-label {
    font-size: 12px;
    color: var(--t3);
    margin-top: 2px;
}

.sc-change {
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 5px;
}

/* Dashboard Tabs */
.dtab {
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--t3);
    cursor: pointer;
    border: none;
    background: none;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    font-family: inherit;
}

.dtab:hover {
    color: var(--t1);
    background: rgba(255, 255, 255, 0.03);
}

.dtab.on {
    color: #818cf8;
    border-bottom-color: #6366f1;
}

/* Dashboard Grid Layout */
.dash-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

/* Activity Row */
.act-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--brd);
    transition: background 0.15s;
}

.act-row:last-child {
    border-bottom: none;
}

.act-row:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

/* Transaction Row */
.tx-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--brd);
    transition: background 0.15s;
}

.tx-row:last-child {
    border-bottom: none;
}

.tx-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress Bar */
.pbar {
    height: 6px;
    border-radius: 6px;
    background: var(--brd);
    overflow: hidden;
}

.pbar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* Chart Bar */
.chart-bar {
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease, background 0.3s ease;
}

.chart-bar:hover {
    filter: brightness(1.15);
}

/* Wallet Balance */
.wallet-bal {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge Card */
.badge-card {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--brd);
    background: var(--bg);
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.badge-card:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.badge-emoji {
    font-size: 28px;
    margin-bottom: 6px;
}

/* SVG Ring Chart */
.ring-track {
    fill: none;
    stroke: var(--brd);
    stroke-width: 10;
}

.ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

/* Quick Action Buttons */
.qa-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.qa-btn-primary {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
}

.qa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.qa-btn-secondary {
    border: 1px solid var(--brd);
    background: none;
    color: var(--t1);
}

.qa-btn-secondary:hover {
    border-color: #6366f1;
    color: #818cf8;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .sc-val {
        font-size: 20px;
    }
    
    .wallet-bal {
        font-size: 28px;
    }
    
    .dtab {
        padding: 10px 14px;
        font-size: 12.5px;
    }
}
