
/* =========================================
   IQRANIX — QURAN
   ROYAL MIDNIGHT BLUE & GOLD
========================================= */

:root {
    --bg: #080e25;
    --surface: #111b3a;
    --surface-2: #192750;
    --surface-3: #202f5c;

    --royal: #304b91;
    --royal-light: #5474c5;

    --gold: #e7c879;
    --gold-light: #f4dda0;

    --text: #f7f5ef;
    --text-soft: #b9c3d8;

    --border: rgba(220, 205, 160, 0.13);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* RESET */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", Arial, sans-serif;
    padding-bottom: 95px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   HEADER
========================================= */

.quran-header {
    width: 100%;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 16px;

    background: linear-gradient(
        120deg,
        #111b3a,
        #080e25
    );

    border-bottom: 1px solid var(--border);
}

.back-button {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;
    background: var(--surface);
    border: 1px solid var(--border);

    color: var(--gold);
    font-size: 18px;

    transition: 0.2s ease;
}

.back-button:active {
    transform: scale(0.94);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 13px;
}

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(231, 200, 121, 0.12);
    color: var(--gold);

    font-size: 21px;
}

.header-content h1 {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.header-content p {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 12px;
}

/* =========================================
   MAIN
========================================= */

.quran-main {
    width: min(100% - 32px, 700px);
    margin: 0 auto;
}

/* =========================================
   WELCOME
========================================= */

.quran-welcome {
    padding: 32px 4px 26px;
}

.welcome-label {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
}

.quran-welcome h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 11px;
    color: var(--text);
}

.welcome-text {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================
   SECTION TITLE
========================================= */

.section-title {
    font-size: 20px;
    margin: 4px 0 15px;
    color: var(--gold-light);
}

/* =========================================
   QURAN CARDS
========================================= */

.quran-tools {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quran-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 15px;

    width: 100%;
    padding: 19px;

    background: linear-gradient(
        135deg,
        var(--surface),
        #0d1732
    );

    border: 1px solid var(--border);
    border-radius: 21px;

    box-shadow: var(--shadow);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.quran-card:hover {
    background: linear-gradient(
        135deg,
        var(--surface-2),
        #111d3d
    );

    border-color: rgba(231, 200, 121, 0.4);
}

.quran-card:active {
    transform: scale(0.98);
}

/* =========================================
   CARD ICONS
========================================= */

.card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;

    border-radius: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.read-icon {
    background: rgba(79, 112, 190, 0.19);
    color: #91adf3;
}

.audio-icon {
    background: rgba(231, 200, 121, 0.14);
    color: var(--gold);
}

.tafsir-icon {
    background: rgba(124, 157, 220, 0.15);
    color: #a9c4f4;
}

.ai-icon {
    background: rgba(231, 200, 121, 0.17);
    color: var(--gold-light);
}

.hifz-icon {
    background: rgba(130, 116, 205, 0.17);
    color: #b8a9f4;
}

/* =========================================
   CARD CONTENT
========================================= */

.card-content {
    flex: 1;
    min-width: 0;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.card-content p {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.card-feature {
    display: inline-block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* =========================================
   IQRANIX AI CARD
========================================= */

.iqranix-ai-card {
    border-color: rgba(231, 200, 121, 0.28);

    background: linear-gradient(
        115deg,
        #192750,
        #111b3a,
        #172347
    );
}

.iqranix-ai-card .ai-icon {
    background: rgba(231, 200, 121, 0.19);
    color: var(--gold-light);
}

.iqranix-ai-card .card-feature {
    color: var(--gold-light);
}

/* =========================================
   CARD ARROW
========================================= */

.card-arrow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);
    font-size: 13px;
}

/* =========================================
   QUICK INFORMATION
========================================= */

.quran-info {
    margin-top: 25px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.info-item {
    min-height: 105px;
    padding: 15px 8px;

    background: linear-gradient(
        145deg,
        var(--surface),
        #0e1833
    );

    border: 1px solid var(--border);
    border-radius: 19px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.info-item i {
    color: var(--gold);
    font-size: 19px;
    margin-bottom: 7px;
}

.info-item strong {
    display: block;
    font-size: 19px;
    color: var(--text);
}

.info-item span {
    display: block;
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 11px;
}

/* =========================================
   FOOTER
========================================= */

.quran-footer {
    text-align: center;
    padding: 38px 15px 25px;
    color: var(--text-soft);
}

.quran-footer h3 {
    color: var(--gold);
    font-size: 23px;
    margin-bottom: 7px;
    font-weight: 700;
}

.quran-footer p {
    font-size: 14px;
    margin-bottom: 7px;
}

.quran-footer small {
    font-size: 11px;
    color: var(--text-soft);
}

.copyright {
    margin-top: 18px;
    color: #8490aa;
    font-size: 11px;
}

/* =========================================
   BOTTOM NAVIGATION
========================================= */

.bottom-navigation {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    height: 76px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    background: rgba(8, 14, 37, 0.97);

    border-top: 1px solid var(--border);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #8793ae;
    font-size: 11px;

    transition: color 0.2s ease;
}

.nav-item i {
    font-size: 19px;
}

.nav-item.active {
    color: var(--gold);
}

.nav-item:active {
    transform: scale(0.94);
}

/* =========================================
   MEMORIZATION POPUP ONLY
========================================= */

#iqranixComingSoon {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(3, 7, 20, 0.82);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.iqranix-coming-soon-box {
    width: 100%;
    max-width: 390px;

    padding: 30px 24px;

    text-align: center;

    background: linear-gradient(
        145deg,
        #192750,
        #101a37
    );

    border: 1px solid rgba(231, 200, 121, 0.3);
    border-radius: 25px;

    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.5);

    animation: comingSoonPop 0.25s ease-out;
}

.coming-soon-icon {
    width: 76px;
    height: 76px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gold);
    color: #101a37;

    font-size: 32px;
}

.iqranix-coming-soon-box h2 {
    margin-bottom: 9px;
    color: var(--text);
    font-size: 22px;
}

.iqranix-coming-soon-box h3 {
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 18px;
}

.iqranix-coming-soon-box p {
    margin-bottom: 13px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.iqranix-coming-soon-box .coming-soon-dua {
    color: var(--gold-light);
    font-size: 13px;
}

#comingSoonClose {
    width: 100%;
    margin-top: 12px;
    padding: 14px;

    border: none;
    border-radius: 14px;

    background: var(--gold);
    color: #101a37;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

#comingSoonClose:active {
    transform: scale(0.97);
}

@keyframes comingSoonPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 360px) {
    .quran-main {
        width: min(100% - 22px, 700px);
    }

    .quran-welcome h2 {
        font-size: 24px;
    }

    .quran-card {
        padding: 14px;
        gap: 11px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 19px;
    }

    .card-content h3 {
        font-size: 14px;
    }

    .card-content p {
        font-size: 11px;
    }

    .info-item {
        min-height: 90px;
    }
}

/* =========================================
   TABLETS AND LARGE SCREENS
========================================= */

@media (min-width: 700px) {
    .quran-header {
        padding: 28px max(
            24px,
            calc((100vw - 700px) / 2)
        );
    }

    .quran-main {
        padding-top: 10px;
    }

    .quran-card {
        padding: 21px;
    }

    .card-content h3 {
        font-size: 18px;
    }

    .card-content p {
        font-size: 13px;
    }
}
