/* File path: style.css */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ── LIGHT THEME COLORS ── */
    --bg:      #f4f7fb;       /* Halka grey/white background */
    --surface: #ffffff;       /* Pure white */
    --card:    #ffffff;       /* Pure white cards */
    --card2:   #e2e8f0;       /* Halka grey card image backgrounds ke liye */
    --border:  rgba(0,0,0,0.08); /* Light grey border */
    --border2: rgba(0,0,0,0.15); /* Thoda dark border hover ke liye */
    
    /* ── BRAND COLORS (Same as before) ── */
    --accent:  #6366f1;
    --accent2: #8b5cf6;
    --green:   #10b981;
    --yellow:  #f59e0b;
    --red:     #ef4444;
    --cyan:    #06b6d4;
    --orange:  #f97316;
    --pink:    #ec4899;
    
    /* ── TEXT COLORS (Dark for white background) ── */
    --text:    #0f172a;       /* Sabse dark text headings ke liye */
    --text2:   #334155;       /* Normal text ke liye */
    --text3:   #64748b;       /* Muted/Grey text ke liye */
    
    --font:    'Plus Jakarta Sans', sans-serif;
    --mono:    'JetBrains Mono', monospace;
}

/* Font size 2px (2 number) bada karne ke liye 112.5% set kiya hai */
html { scroll-behavior: smooth; font-size: 112.5%; }

body {
    background: var(--bg); font-family: var(--font);
    color: var(--text); min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ── Page wrap ── */
.page-wrap { max-width: 640px; margin: 0 auto; padding: 0 0 80px; }

/* ════════════════════════
   WALLET BAR
════════════════════════ */
.wallet-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; padding: 14px 16px 0;
    animation: fadeUp .35s ease both;
}
.wallet-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; text-decoration: none; transition: all .2s;
}
.wallet-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.wallet-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; font-size: .9rem; flex-shrink: 0;
}
.wi-green  { background: rgba(16,185,129,.15); color: var(--green); }
.wi-yellow { background: rgba(245,158,11,.15);  color: var(--yellow); }
.wallet-label { font-size: .68rem; color: var(--text3); font-weight: 500; }
.wallet-val   { font-size: .9rem; font-weight: 700; line-height: 1.2; color: var(--text); }
.wallet-action {
    margin-left: auto; width: 28px; height: 28px;
    background: rgba(0,0,0,.04); border-radius: 7px;
    display: grid; place-items: center;
    color: var(--text3); font-size: .75rem; flex-shrink: 0;
    text-decoration: none; transition: all .2s;
}
.wallet-action:hover { background: rgba(0,0,0,.08); color: var(--text); }

/* ════════════════════════
   HERO
════════════════════════ */
.hero {
    padding: 20px 16px 0;
    animation: fadeUp .4s ease both; animation-delay: .05s;
}
.hero-inner {
    background: linear-gradient(135deg, rgba(99,102,241,.15) 0%, rgba(139,92,246,.1) 100%);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 20px; padding: 22px 20px;
    position: relative; overflow: hidden;
}
.hero-inner::before {
    content: '🎓'; position: absolute;
    right: 16px; top: 50%; transform: translateY(-50%);
    font-size: 4rem; opacity: .12;
}
.hero-greeting { font-size: .78rem; color: var(--text3); margin-bottom: 4px; }
.hero-title    { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; line-height: 1.3; color: var(--text); }
.hero-sub      { font-size: .8rem; color: var(--text2); }

/* ════════════════════════
   QUICK ACCESS
════════════════════════ */
.section-wrap { padding: 20px 16px 0; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.section-title {
    font-size: .8rem; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: .8px;
    display: flex; align-items: center; gap: 8px;
}
.section-title::before { content:''; width:3px; height:13px; border-radius:2px; background:var(--accent); }
.section-link { font-size: .76rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.section-link:hover { opacity: .8; }

/* Quick access grid */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.qa-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 16px 8px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; text-decoration: none; color: var(--text);
    transition: all .2s; text-align: center;
    animation: fadeUp .4s ease both;
}
.qa-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.qa-icon {
    width: 44px; height: 44px; border-radius: 13px;
    display: grid; place-items: center; font-size: 1.1rem;
    transition: transform .2s;
}
.qa-card:hover .qa-icon { transform: scale(1.1); }
.qa-label { font-size: .72rem; font-weight: 600; line-height: 1.3; color: var(--text2); }
.qa-card.highlight .qa-label { color: var(--text); }

/* Icon colors */
.ic-accent  { background: rgba(99,102,241,.15);  color: var(--accent); }
.ic-green   { background: rgba(16,185,129,.15);  color: var(--green); }
.ic-yellow  { background: rgba(245,158,11,.15);  color: var(--yellow); }
.ic-cyan    { background: rgba(6,182,212,.15);   color: var(--cyan); }
.ic-orange  { background: rgba(249,115,22,.15);  color: var(--orange); }
.ic-pink    { background: rgba(236,72,153,.15);  color: var(--pink); }
.ic-red     { background: rgba(239,68,68,.15);   color: var(--red); }
.ic-purple  { background: rgba(139,92,246,.15);  color: var(--accent2); }
.ic-blue    { background: rgba(59,130,246,.15);  color: #3b82f6; }

/* ════════════════════════
   INTERACTIVE VIDEOS
════════════════════════ */
.iv-list { display: flex; flex-direction: column; gap: 10px; }
.iv-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; text-decoration: none; color: var(--text);
    transition: all .2s; animation: fadeUp .4s ease both;
}
.iv-card:hover { border-color: var(--border2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }

.iv-thumb {
    width: 72px; height: 48px; border-radius: 9px;
    background: var(--card2); overflow: hidden; flex-shrink: 0;
    display: grid; place-items: center; color: var(--text3);
    font-size: .85rem; position: relative;
}
.iv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.iv-play-icon {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: rgba(0,0,0,.4);
    font-size: .85rem; color: #fff;
}

.iv-content { flex: 1; min-width: 0; }
.iv-title { font-size: .84rem; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-meta  { font-size: .7rem; color: var(--text3); display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.iv-meta span { display: flex; align-items: center; gap: 3px; }

.iv-progress-wrap { display: flex; align-items: center; gap: 7px; }
.iv-bar-track { flex: 1; height: 4px; background: rgba(0,0,0,.07); border-radius: 99px; overflow: hidden; }
.iv-bar-fill  { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), #059669); }
.iv-pct { font-size: .66rem; color: var(--text3); font-family: var(--mono); min-width: 28px; text-align: right; }

.iv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.iv-pts { font-size: .7rem; font-weight: 700; font-family: var(--mono); color: var(--yellow); }
.iv-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 7px;
    font-size: .72rem; font-weight: 700;
    white-space: nowrap; border: none; cursor: pointer;
    font-family: var(--font); transition: all .2s;
}
.iv-btn.start  { background: rgba(99,102,241,.15);  color: var(--accent); }
.iv-btn.resume { background: rgba(16,185,129,.15);  color: var(--green); }
.iv-btn.done   { background: rgba(245,158,11,.12);  color: var(--yellow); }
.iv-btn:hover  { filter: brightness(0.95); }

/* ════════════════════════
   COURSES
════════════════════════ */
.courses-scroll {
    display: flex; gap: 12px;
    overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.courses-scroll::-webkit-scrollbar { display: none; }

.course-card {
    min-width: 220px; max-width: 220px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    scroll-snap-align: start; flex-shrink: 0;
    transition: all .2s; animation: fadeUp .4s ease both;
    display: flex; flex-direction: column;
}
.course-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

.course-img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--card2); }
.course-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.course-title { font-size: .82rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.course-desc  { font-size: .72rem; color: var(--text3); line-height: 1.5; flex: 1; }
.course-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.course-price { font-size: .88rem; font-weight: 800; color: var(--green); font-family: var(--mono); }

.btn-cart {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 8px; border: none;
    font-family: var(--font); font-size: .72rem; font-weight: 700;
    cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-cart.add      { background: rgba(16,185,129,.15);  color: var(--green); }
.btn-cart.add:hover { background: rgba(16,185,129,.25); }
.btn-cart.purchased { background: rgba(99,102,241,.12);  color: var(--accent); }
.btn-cart.details  { background: rgba(0,0,0,.06);  color: var(--text2); }
.btn-cart.details:hover { background: rgba(0,0,0,.1); }

/* ════════════════════════
   EMPTY / GUEST states
════════════════════════ */
.guest-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2);
    border-radius: 14px;
}
.guest-text { font-size: .82rem; color: var(--text2); flex: 1; line-height: 1.5; }
.guest-text strong { color: var(--text); }
.btn-login {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 9px; border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-family: var(--font);
    font-size: .78rem; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    text-decoration: none; transition: all .2s;
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
}
.btn-login:hover { transform: translateY(-1px); }

.empty-mini {
    text-align: center; padding: 28px 16px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; font-size: .8rem; color: var(--text3);
}
.empty-mini i { font-size: 1.8rem; opacity:.2; display:block; margin-bottom:8px; }

/* Toast */
.toast-wrap {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 11px 20px; border-radius: 99px;
    font-size: .83rem; font-weight: 600; z-index: 999;
    display: flex; align-items: center; gap: 8px;
    transition: transform .3s cubic-bezier(.22,1,.36,1);
    pointer-events: none; white-space: nowrap;
}
.toast-wrap.show { transform: translateX(-50%) translateY(0); }
.toast-wrap.success { background: rgba(16,185,129,.95); color:#fff; box-shadow:0 8px 24px rgba(16,185,129,.3); }
.toast-wrap.error   { background: rgba(239,68,68,.95);  color:#fff; box-shadow:0 8px 24px rgba(239,68,68,.3); }

@keyframes fadeUp { from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)} }

/* Responsive desktop */
@media (min-width: 641px) {
    .page-wrap { max-width: 760px; }
    .qa-grid   { grid-template-columns: repeat(4, 1fr); }
    .iv-list   { display: grid; grid-template-columns: 1fr 1fr; }
    .courses-scroll .course-card { min-width: 200px; max-width: 200px; }
}
@media (min-width: 1024px) {
    .page-wrap { max-width: 900px; }
    .qa-grid   { grid-template-columns: repeat(5, 1fr); }
}

/* ════════════════════════
   LAPTOP PAR DIKHAO, MOBILE PAR HIDE 
════════════════════════ */
@media screen and (max-width: 768px) {
    footer, .site-footer, #footer { display: none !important; }
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 99px; }

/* Add Money Wallet Icon */
.icon-circle {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}

/* ==========================================
   MINDFUL GAMES ZONE CSS
========================================== */
.game-zone-bg { 
    background-color: #0b1021; /* Ise dark hi rakha hai kyunki game dark theme mein achhe lagte hain */
    min-height: 100vh; 
    padding-top: 40px; 
    padding-bottom: 60px; 
    color: white; 
}

.page-heading { 
    font-weight: 800; 
    background: -webkit-linear-gradient(45deg, #00f2fe, #4facfe); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.game-card { 
    background: #1a2238; 
    border: 2px solid #2d3748; 
    border-radius: 20px; 
    padding: 35px 20px; 
    text-align: center; 
    transition: all 0.3s ease; 
    text-decoration: none;
    display: block;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 5px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transform: scaleX(0); 
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
    color: white;
}

.game-card:hover::before { 
    transform: scaleX(1); 
}

.game-icon { 
    font-size: 3.8rem; 
    margin-bottom: 20px; 
    display: inline-block; 
    animation: float 3s ease-in-out infinite; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}

.game-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 12px; 
}

.game-exam-tag { 
    background: rgba(59, 130, 246, 0.15); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    padding: 6px 18px; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    color: #93c5fd; 
}

@keyframes float { 
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-8px); } 
    100% { transform: translateY(0px); } 
}