/* Kids Theme - Super Fun and Colorful! 🌈✨🎉 */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Segoe UI', cursive, sans-serif;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA07A 25%, #FFD700 50%, #98D8C8 75%, #A78BFA 100%);
    background-size: 400% 400%;
    animation: rainbowGradient 15s ease infinite;
}

@keyframes rainbowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3), 0 0 0 8px rgba(255,255,255,0.5);
    border: 5px solid transparent;
    background-image: linear-gradient(white, white),
                      linear-gradient(135deg, #2cdb00, #FFA07A, #FFD700, #98D8C8, #A78BFA);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* Headings */
h1 {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #FF1493, #FF6347, #FFD700, #32CD32, #1E90FF, #9370DB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: titleBounce 2s ease-in-out infinite;
}

@keyframes titleBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

h2 {
    color: #FF6B9D;
    font-size: 2em;
    margin-bottom: 20px;
}

h3 {
    color: #FFA07A;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,165,0,0.4);
    border: 3px solid #FF6347;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,165,0,0.6);
    background: linear-gradient(135deg, #FF6347, #FFA500);
}

.nav a:active {
    transform: translateY(0px) scale(0.98);
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash.success {
    background: linear-gradient(135deg, #90EE90, #32CD32);
    color: #006400;
    border: 3px solid #228B22;
}

.flash.error {
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    color: #8B0000;
    border: 3px solid #DC143C;
}

.flash.warning {
    background: linear-gradient(135deg, #FFFFE0, #FFD700);
    color: #8B4513;
    border: 3px solid #FFA500;
}

/* Home Page - Welcome Section */
.welcome {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome h2 {
    margin-bottom: 15px;
    color: #000000;
    font-size: 2.5em;
}

.welcome p {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 10px;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #A78BFA, #7C3AED);
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    border: 4px solid #6D28D9;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05) rotate(2deg);
}

.stat-box h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.stat-box .number {
    font-size: 3em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Buttons */
.btn, .start-quiz-btn {
    display: inline-block;
    padding: 18px 40px;
    margin: 10px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-primary, .start-quiz-btn {
    background: linear-gradient(135deg, #FF6B9D, #FF1493);
    color: white;
    border: 4px solid #C71585;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover, .start-quiz-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
    background: linear-gradient(135deg, #FF1493, #FF6B9D);
}

.btn-secondary {
    background: linear-gradient(135deg, #98D8C8, #4ADE80);
    color: white;
    border: 4px solid #22C55E;
}

.btn-secondary:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #FFA07A, #FF6347);
    color: white;
    border: 4px solid #DC143C;
    padding: 12px 25px;
    font-size: 1em;
}

.btn-danger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 99, 71, 0.5);
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #e1f8ff, #e1f4ff);
    border-radius: 25px;
    border: 4px solid #4184ff;
    box-shadow: 0 10px 30px rgba(8, 177, 255, 0.3);
}

.login-form h2 {
    text-align: center;
    color: #1f0d83;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FF6347;
    font-size: 1.1em;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 3px solid #4184ff;
    border-radius: 15px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #0a60ff;
    outline: none;
    box-shadow: 0 0 15px rgba(67, 255, 20, 0.3);
    transform: scale(1.02);
}

/* Quiz Section */
.quiz-container {
    margin-top: 30px;
}

.question-card {
    background: linear-gradient(135deg, #E0F2FE, #DBEAFE);
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border: 4px solid #3B82F6;
    animation: questionPop 0.5s ease;
}

@keyframes questionPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.badge-week {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    border: 2px solid #D97706;
}

.badge-category {
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    color: white;
    border: 2px solid #7C3AED;
}

.question-text {
    font-size: 1.4em;
    color: #1E40AF;
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.5;
}

.question-image {
    text-align: center;
    margin: 25px 0;
}

.question-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 5px solid #FF69B4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    display: flex;
    align-items: center;
    padding: 18px;
    background: white;
    border: 4px solid #FFB6C1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.15em;
}

.option:hover {
    background: linear-gradient(135deg, #FFE4E1, #FFF0F5);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    border-color: #FF1493;
}

.option input[type="radio"] {
    margin-right: 15px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.option label {
    cursor: pointer;
    flex-grow: 1;
    font-weight: 600;
    color: #333;
}

/* True/False Special Layout */
.true-false-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.true-false-options .option {
    justify-content: center;
    font-size: 1.5em;
    padding: 30px;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border: 5px solid #10B981;
}

.true-false-options .option:hover {
    background: linear-gradient(135deg, #6EE7B7, #34D399);
    transform: scale(1.1);
}

.true-false-options .option:last-child {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-color: #EF4444;
}

.true-false-options .option:last-child:hover {
    background: linear-gradient(135deg, #FCA5A5, #F87171);
}

/* Timer Display */
.timer-container {
    position: sticky;
    top: 20px;
    background: white;
    padding: 20px;
    border-radius: 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: 5px solid #FFD700;
    z-index: 100;
}

.timer-label {
    font-size: 1.3em;
    font-weight: bold;
    color: #FF6347;
    margin-bottom: 10px;
}

.timer-value {
    font-size: 3.5em;
    font-weight: bold;
    color: #32CD32;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: timerPulse 1s ease infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.timer-value.warning {
    color: #FFA500;
    animation: timerShake 0.5s ease infinite;
}

@keyframes timerShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.timer-value.danger {
    color: #FF4500;
    animation: timerBlink 0.5s ease infinite;
}

@keyframes timerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timer-bar {
    width: 100%;
    height: 15px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #32CD32, #FFD700, #FF6347);
    transition: width 1s linear;
    border-radius: 10px;
}

/* Start Screen */
.start-screen {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #FFF9E6, #FFEBCD);
    border-radius: 30px;
    border: 5px solid #FF69B4;
}

.start-screen h2 {
    font-size: 2.5em;
    color: #FF1493;
    margin-bottom: 20px;
}

.start-screen p {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 30px;
}

/* Results Screen */
.results-screen {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #E0F2FE, #DBEAFE);
    border-radius: 30px;
    margin-top: 30px;
    border: 5px solid #3B82F6;
    animation: resultsAppear 0.8s ease;
}

@keyframes resultsAppear {
    from {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.results-screen h2 {
    font-size: 2.5em;
    color: #1E40AF;
    margin-bottom: 20px;
}

.results-summary {
    font-size: 1.5em;
    margin: 20px 0;
    padding: 25px;
    background: white;
    border-radius: 20px;
    border: 4px solid #60A5FA;
}

.results-summary p {
    margin: 15px 0;
    color: #333;
}

.results-summary .score {
    font-size: 2em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Leaderboard */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin-top: 25px;
}

.leaderboard-table thead th {
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    color: white;
    padding: 18px;
    text-align: left;
    font-size: 1.2em;
    border: 3px solid #7C3AED;
}

.leaderboard-table thead th:first-child {
    border-radius: 20px 0 0 20px;
}

.leaderboard-table thead th:last-child {
    border-radius: 0 20px 20px 0;
}

.leaderboard-table tbody tr {
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.leaderboard-table tbody tr:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3);
}

.leaderboard-table tbody td {
    padding: 20px;
    border-top: 3px solid #E0E7FF;
    border-bottom: 3px solid #E0E7FF;
    font-size: 1.1em;
}

.leaderboard-table tbody td:first-child {
    border-left: 3px solid #E0E7FF;
    border-radius: 15px 0 0 15px;
}

.leaderboard-table tbody td:last-child {
    border-right: 3px solid #E0E7FF;
    border-radius: 0 15px 15px 0;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    font-weight: bold;
}

.rank-1 td {
    color: white !important;
    font-size: 1.3em !important;
    border-color: #FF8C00 !important;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9) !important;
    font-weight: bold;
}

.rank-2 td {
    color: white !important;
    font-size: 1.2em !important;
    border-color: #808080 !important;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333) !important;
    font-weight: bold;
}

.rank-3 td {
    color: white !important;
    font-size: 1.15em !important;
    border-color: #8B4513 !important;
}

.rank-number {
    font-weight: bold;
    font-size: 1.4em;
    color: #A78BFA;
}

.rank-1 .rank-number {
    color: white;
    font-size: 2em;
}

.rank-2 .rank-number, .rank-3 .rank-number {
    color: white;
}

/* Admin Panel */
.admin-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-radius: 25px;
    border: 4px solid #EF4444;
}

.admin-header h2 {
    color: #DC2626;
    font-size: 2.3em;
}

.admin-section {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    border: 4px solid #22C55E;
}

.admin-section h3 {
    color: #16A34A;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-controls {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    border: 3px solid #A7F3D0;
}

.filter-controls label {
    font-weight: bold;
    color: #059669;
    font-size: 1.1em;
}

.filter-controls select {
    margin-left: 15px;
    padding: 10px 20px;
    border: 3px solid #10B981;
    border-radius: 15px;
    font-size: 1em;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 4px solid #D1FAE5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.question-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.question-header-admin {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-type {
    background: linear-gradient(135deg, #FBCFE8, #F9A8D4);
    color: #BE185D;
    border: 2px solid #EC4899;
}

.question-content {
    margin-bottom: 20px;
}

.question-content p {
    margin: 12px 0;
    line-height: 1.6;
    font-size: 1.05em;
}

.question-options p {
    padding: 10px;
    margin: 8px 0;
    background: #F3F4F6;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}

.correct-option {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0) !important;
    border-color: #10B981 !important;
    font-weight: bold;
}

.explanation {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 15px;
    border-radius: 15px;
    border: 3px solid #F59E0B;
    margin-top: 15px;
}

.question-image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 4px solid #FF69B4;
}

.question-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #9CA3AF;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .true-false-options {
        grid-template-columns: 1fr;
    }

    .leaderboard-table {
        font-size: 0.9em;
    }

    .timer-value {
        font-size: 2.5em;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Fix podium order on mobile - display in natural order */
    .podium-place.first,
    .podium-place.second,
    .podium-place.third {
        order: 0;
    }
}

/* Fun Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    animation: spin 2s linear infinite;
}

/* ========== HOME PAGE CLASSES ========== */

.stat-card {
    background: linear-gradient(135deg, #A78BFA, #7C3AED);
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    border: 4px solid #6D28D9;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    color: white;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

/* ========== RULES ACCORDION ========== */

.rules-accordion {
    margin: 30px 0;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: 25px;
    overflow: hidden;
    border: 4px solid #F59E0B;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.accordion-toggle {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    font-size: 1.4em;
    font-weight: bold;
    color: #92400E;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-toggle:hover {
    background: rgba(245, 158, 11, 0.2);
}

.accordion-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rules-list {
    padding: 25px;
    background: white;
    border-top: 3px solid #F59E0B;
}

.rule-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FFF9E6, #FFEBCD);
    border-radius: 15px;
    border-left: 5px solid #FF69B4;
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-icon {
    font-size: 2em;
    min-width: 40px;
    text-align: center;
}

.rule-item div {
    flex: 1;
    line-height: 1.6;
}

.rule-item strong {
    color: #FF1493;
}

.current-week-section {
    margin-top: 40px;
}

.week-status {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    padding: 35px;
    border-radius: 25px;
    text-align: center;
    border: 4px solid #3B82F6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.week-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #1E40AF;
    margin-bottom: 15px;
}

.week-status p {
    font-size: 1.3em;
    color: #1E3A8A;
    margin: 15px 0;
}

.completed-badge {
    display: inline-block;
    background: linear-gradient(135deg, #34D399, #10B981);
    color: white;
    padding: 15px 30px;
    border-radius: 20px;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 15px;
    border: 3px solid #059669;
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    margin-top: 25px;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(135deg, #FF6B9D, #FF1493);
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
    border: 4px solid #C71585;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6);
    background: linear-gradient(135deg, #FF1493, #FF6B9D);
}

.coming-soon {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: 25px;
    border: 4px solid #F59E0B;
}

.coming-soon .icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.coming-soon h3 {
    font-size: 2em;
    color: #D97706;
    margin-bottom: 15px;
}

.coming-soon p {
    font-size: 1.2em;
    color: #92400E;
}

/* ========== LOGIN PAGE CLASSES ========== */

.welcome-text {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #4184ff;
    margin-bottom: 30px;
}

.btn-login {
    width: 100%;
    padding: 18px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #17bb17, #008d0c);
    color: white;
    border: 4px solid #006d12;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(14, 255, 54, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(132, 255, 128, 0.6);
    background: linear-gradient(135deg, #17bb17, #008d0c);
}

/* ========== LEADERBOARD PAGE CLASSES ========== */

.leaderboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.leaderboard-header h2 {
    font-size: 2.5em;
    background: #FFA500;
    color: #000;
    background-clip: text;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.podium-place {
    text-align: center;
    padding: 25px;
    border-radius: 25px;
    min-width: 150px;
    transition: transform 0.3s ease;
    border: 4px solid;
}

.podium-place:hover {
    transform: scale(1.05) translateY(-10px);
}

.podium-place.first {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FF8C00;
    order: 2;
    min-height: 220px;
}

.podium-place.second {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    border-color: #808080;
    order: 1;
    min-height: 180px;
}

.podium-place.third {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    border-color: #8B4513;
    order: 3;
    min-height: 150px;
}

.podium-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.podium-name {
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.podium-score {
    font-size: 2em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.rankings {
    margin-top: 40px;
}

.rank-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 3px solid #E0E7FF;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.rank-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3);
    border-color: #A78BFA;
}

.rank-position {
    font-size: 1.8em;
    font-weight: bold;
    color: #A78BFA;
    min-width: 50px;
}

.rank-info {
    flex-grow: 1;
}

.rank-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.rank-stats {
    font-size: 1em;
    color: #666;
}

.rank-points {
    font-size: 1.5em;
    font-weight: bold;
    color: #FF6B9D;
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-radius: 25px;
    border: 3px solid #D1D5DB;
}

/* ========== QUIZ PAGE CLASSES ========== */

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-header h2 {
    font-size: 2.3em;
    color: #FF1493;
}

.quiz-start-screen {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #FFF9E6, #FFEBCD);
    border-radius: 30px;
    border: 5px solid #FF69B4;
    animation: fadeIn 0.8s ease;
}

.start-message h3 {
    font-size: 2.2em;
    color: #FF1493;
    margin-bottom: 20px;
}

.start-message p {
    font-size: 1.3em;
    color: #666;
    margin: 15px 0;
}

.timer-display {
    margin-bottom: 25px;
}

.timer-bar-container {
    width: 100%;
    height: 15px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.question-number {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    border: 2px solid #D97706;
}

.category-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    border: 2px solid #7C3AED;
}

.quiz-form {
    margin-top: 20px;
}

.option-btn {
    display: flex;
    align-items: center;
    padding: 18px;
    background: white;
    border: 4px solid #FFB6C1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.15em;
    margin-bottom: 12px;
}

.option-btn:hover {
    background: linear-gradient(135deg, #FFE4E1, #FFF0F5);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    border-color: #FF1493;
}

.option-btn input[type="radio"] {
    margin-right: 15px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.option-btn strong {
    margin-right: 10px;
    color: #FF1493;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    margin-top: 25px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #FF6B9D, #FF1493);
    color: white;
    border: 4px solid #C71585;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6);
    background: linear-gradient(135deg, #FF1493, #FF6B9D);
}

.results-container {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #E0F2FE, #DBEAFE);
    border-radius: 30px;
    margin-top: 30px;
    border: 5px solid #3B82F6;
    animation: resultsAppear 0.8s ease;
}

.results-container h2 {
    font-size: 2.5em;
    color: #1E40AF;
    margin-bottom: 20px;
}

.results-summary-text {
    font-size: 1.4em;
    margin: 20px 0;
    color: #1E3A8A;
}

.score-display {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 20px 0;
}

.home-btn {
    display: inline-block;
    padding: 18px 40px;
    margin: 15px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(135deg, #98D8C8, #4ADE80);
    color: white;
    border: 4px solid #22C55E;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.home-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
}

.answer-feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.quiz-results {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #E0F2FE, #DBEAFE);
    border-radius: 30px;
    margin-top: 30px;
    border: 5px solid #3B82F6;
    animation: resultsAppear 0.8s ease;
}

.results-content h3 {
    font-size: 2.5em;
    color: #1E40AF;
    margin-bottom: 30px;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.result-item {
    background: white;
    padding: 25px 35px;
    border-radius: 20px;
    border: 4px solid #60A5FA;
    min-width: 200px;
}

.result-label {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.back-home-btn {
    display: inline-block;
    padding: 18px 40px;
    margin-top: 30px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(135deg, #98D8C8, #4ADE80);
    color: white;
    border: 4px solid #22C55E;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.back-home-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
}

.no-questions {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-radius: 25px;
    border: 3px solid #D1D5DB;
}
