/* ===================== Root Variables ===================== */
:root {
    --gold: #D4AF37;
    --gold-bright: #FFD700;
    --glass: rgba(255, 255, 255, 0.15);
}

/* ===================== Global ===================== */
body, html {
    margin: 0; 
    padding: 0; 
    min-height: 100%; 
    font-family: 'Hind Siliguri', sans-serif;
    background: #000; 
    color: white;
}

/* ===================== Wrapper ===================== */
.main-wrapper {
    position: relative; 
    max-width: 450px; 
    margin: 0 auto;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom); 
}

/* ===================== Hero Background ===================== */
.hero-bg { 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%; z-index: -2; 
}
.hero-bg img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.5); 
}
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9)); 
    z-index: -1;
}

/* ===================== Content Container ===================== */
.content-container { 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px;
    flex: 1;
}

/* ===================== Header & Count Chip ===================== */
.header-area h2 {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFD700, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}
.count-chip {
    background: var(--gold); 
    color: #000; 
    padding: 6px 18px; 
    border-radius: 20px; 
    font-weight: 700; 
    font-size: 13px;
    display: inline-block;
    margin: 10px auto;
}

/* ===================== Word Card ===================== */
.word-card { 
    text-align: center; 
    padding: 10px 0;
}
.arabic-main { 
    font-family: 'Amiri', serif; 
    font-size: clamp(50px, 15vw, 75px); 
    margin: 10px 0; 
    line-height: 1.2;
}
.phonetic { 
    opacity: 0.8; 
    margin-top: -5px; 
    font-size: 18px; 
}
.bangla-meaning { 
    font-size: clamp(30px, 10vw, 42px); 
    color: var(--gold); 
    margin: 5px 0; 
    font-weight: 700;
}

/* ===================== Ayat Section ===================== */
.ayat-section { 
    background: var(--glass); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    padding: 20px; 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.1);
}
.arabic-verse { 
    font-family: 'Amiri', serif; 
    font-size: 24px; 
    text-align: right; 
    line-height: 1.8;
    color: #fff;
}
.bangla-verse { 
    font-size: 16px; 
    color: #eee; 
    margin-top: 10px; 
    line-height: 1.5; 
}
.hl { 
    color: var(--gold-bright) !important; 
    font-weight: 700; 
}

/* ===================== Progress Bar ===================== */
.progress-box { margin: 10px 0; }
.progress-info { 
    display: flex; 
    justify-content: space-between; 
    font-size: 12px; 
    margin-bottom: 5px; 
    color: #ccc; 
}
.progress-bar-container { 
    height: 8px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 10px; 
}
.progress-bar-fill { 
    height: 100%; 
    background: var(--gold); 
    width: 0%; 
    transition: 0.5s ease-out; 
    border-radius: 10px; 
}

/* ===================== Navigation Buttons ===================== */
.navigation { 
    display: flex; 
    gap: 12px; 
    margin-top: auto; 
    padding: 15px 0 25px 0;
    position: sticky;
    bottom: 0;
    background: transparent;
}
button { 
    border: none; 
    border-radius: 16px; 
    font-weight: 700; 
    cursor: pointer; 
    padding: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    transition: transform 0.1s;
}
button:active { transform: scale(0.95); }
.btn-prev { background: rgba(255, 255, 255, 0.15); color: white; width: 50%; font-size: 16px; }
.btn-next { background: var(--gold); color: black; width: 50%; font-size: 18px; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.quiz-btn {
    background: var(--gold-bright);
    color: black;
    margin-top: 15px;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    width: 100%;
}

/* ===================== Quiz Styles ===================== */
.quiz-container { margin-top: 30px; }
.quiz-progress {
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--gold-bright);
}
.quiz-question {
    font-family: 'Amiri', serif;
    font-size: 48px; /* বড় ফন্ট */
    text-align: center;
    margin-bottom: 25px;
    color: var(--gold-bright);
}
.quiz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 কলাম */
    grid-template-rows: repeat(2, auto); /* প্রতিটি কলামে 2 row vertically */
    gap: 15px;
}
.quiz-option {
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    font-weight: 700;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.1s;
}
.quiz-option:hover {
    transform: scale(1.02);
}
.option-number { font-weight: bold; }
.correct { background: #2ecc71 !important; }
.wrong { background: #e74c3c !important; }

/* ===================== Media Queries ===================== */
@media (max-height: 700px) {
    .arabic-main { font-size: 55px; }
    .bangla-meaning { font-size: 32px; }
    .content-container { gap: 10px; }
    .ayat-section { padding: 15px; }
    .quiz-question { font-size: 36px; }
}
