/* === Enhanced Quiz Page Styles === */
/* === ROOT VARIABLES === */
:root {
    --gold: #FFD700;
    --gold-dark: #FFC107;
    --gold-light: #FFF4CC;
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --black-card: #151515;
    --gray-dark: #2a2a2a;
    --gray-medium: #6b7280;
    --gray-light: #f8f9fa;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --white: #ffffff;
    --border-light: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: var(--black);
}

/* === HERO HEADER === */
.hero-header {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    padding: 60px 0;
    margin-bottom: 50px;
    border-bottom: 5px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,215,0,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title i {
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    margin-right: 15px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* === QUIZ CARDS === */
.quiz-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 35px;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    transition: width 0.3s;
}

.quiz-card:hover::before {
    width: 12px;
}

.quiz-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2);
}

.quiz-card-body {
    padding: 35px;
    padding-left: 45px;
}

/* === BADGE === */
.quiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold-light) 0%, rgba(255, 215, 0, 0.15) 100%);
    color: var(--gold-dark);
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.quiz-badge i {
    font-size: 0.85rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 12px;
    border: 2px solid var(--success-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === TITLE & DESCRIPTION === */
.quiz-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 15px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-description {
    color: var(--gray-medium);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.urdu-text {
    direction: rtl;
    text-align: right;
    line-height: 2.2;
    font-size: 1.15rem;
    color: var(--gray-medium);
    font-weight: 500;
}

/* === STATS SECTION === */
.quiz-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 15px;
    margin: 25px 0;
    border: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
    transition: transform 0.3s;
}

.quiz-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--black);
}

/* === BUTTONS === */
.quiz-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-quiz {
    flex: 1;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-quiz::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-quiz:hover::before {
    width: 350px;
    height: 350px;
}

.btn-quiz span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-quiz i {
    font-size: 1.1rem;
}

.btn-start {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    border: 2px solid var(--success-dark);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.btn-pay {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    border: 2px solid var(--warning-dark);
}

.btn-pay:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.btn-certificate {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
    border: 2px solid var(--gold-dark);
}

.btn-certificate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.btn-quiz:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-header {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .quiz-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quiz-actions {
        flex-direction: column;
    }

    .quiz-card-body {
        padding: 25px;
        padding-left: 35px;
    }

    .quiz-title {
        font-size: 1.4rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card {
    animation: fadeInUp 0.7s ease-out forwards;
    opacity: 0;
}

.quiz-card:nth-child(1) { animation-delay: 0.1s; }
.quiz-card:nth-child(2) { animation-delay: 0.2s; }
.quiz-card:nth-child(3) { animation-delay: 0.3s; }
.quiz-card:nth-child(4) { animation-delay: 0.4s; }
.quiz-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-quiz:active {
    animation: pulse 0.3s ease;
}