@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #020617;
    color: white;
    margin: 0;
    text-align: center;
}

.gym-header {
    background: linear-gradient(135deg, #1e1b4b, #3b82f6);
    padding: 30px 20px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.container { max-width: 450px; margin: auto; padding: 20px; }

.card {
    background: #1e293b;
    border-radius: 25px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* --- FIX: Input aur Puzzle Styling --- */
input, #puzzle-answer {
    width: 85%; 
    padding: 12px; 
    border-radius: 12px; 
    border: 1px solid #334155;
    background: #0f172a; 
    color: white; 
    margin: 15px 0; 
    outline: none;
    text-align: center;
    font-size: 16px;
}

.btn-main, .btn-next {
    width: 100%; padding: 15px; border-radius: 15px; border: none;
    font-weight: 800; cursor: pointer; color: white;
}

.btn-main { background: #3b82f6; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }
.btn-next { background: #10b981; margin-top: 15px; }

/* --- CRITICAL ERROR FIX: Options Button Visibility --- */
.options button {
    width: 100%; 
    min-height: 50px; /* Ensure button pichke nahi */
    padding: 12px; 
    margin: 10px 0; 
    border-radius: 12px;
    background: #0f172a; 
    color: #ffffff !important; /* Force text visibility */
    border: 1px solid #475569; 
    cursor: pointer;
    font-weight: 600;
    display: block;
    word-wrap: break-word; /* Long tags niche shift ho jayenge */
    overflow: hidden;
}

.leaderboard-card { border: 1px solid #fbbf24; background: #0f172a; }
#leaderboard-list { list-style: none; padding: 0; text-align: left; }
#leaderboard-list li { 
    display: flex; justify-content: space-between; padding: 12px; 
    border-bottom: 1px solid #1e293b; 
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    border-radius: 12px;
}

/* --- Timer & Animations (Same as your Design) --- */
.timer-countdown {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
    margin: 15px 0;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
}

#timer-screen {
    border: 2px solid #ef4444;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
    100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
}

.options button:hover {
    background: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.refresh-notice {
    font-size: 11px;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

#solution-text {
    animation: fadeIn 0.5s ease-in;
    color: #10b981;
    font-weight: 800;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NEW: Category Tabs & Section Titles Styling --- */

.section-title {
    font-size: 12px;
    color: #fbbf24; /* Gold color matching your theme */
    margin: 20px 0 8px 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    text-align: left;
    opacity: 0.9;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Mobile par slide karne ke liye */
    padding: 5px 0 15px 0;
    scrollbar-width: none; /* Firefox hide scrollbar */
    -ms-overflow-style: none; /* IE hide scrollbar */
}

/* Hide scrollbar for Chrome/Safari */
.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 8px 18px;
    border-radius: 25px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.tab-btn:hover {
    background: #334155;
    color: white;
}

.tab-btn.active {
    background: #3b82f6; /* Blue matching your header */
    color: white;
    border-color: #60a5fa;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

/* Hall of Fame (Last Week Winners) specific touch */
#last-week-winners {
    border: 1px solid #fbbf24;
    background: rgba(251, 191, 36, 0.05);
    position: relative;
    overflow: hidden;
}

#last-week-winners::before {
    content: '🏆';
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 40px;
    opacity: 0.1;
}

