/* ===========================
   QURAN COMPANION
   Version 2 UI
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

body{

    background:#F8F4EC;

    color:#4A433B;

    font-family:'Inter',sans-serif;

    min-height:100vh;

    overflow-y:auto;

    padding:25px;

}

#app{

    width:1200px;

    max-width:95vw;

    margin:0 auto;

}

h1,h2,h3{

    font-family:'Cormorant Garamond',serif;

    color:#274236;

}

h1{

    font-size:64px;

    margin-bottom:20px;

}

h2{

    font-size:48px;

}

h3{

    font-size:30px;

}

.welcome,
.question,
.resultCard{

    position:relative;

    background:white;

    border-radius:30px;

    padding:35px 60px;

    box-shadow:

    0 15px 50px rgba(0,0,0,.08);

    text-align:center;

}

.welcome p{

    font-size:19px;

    line-height:1.9;

    max-width:700px;

    margin:18px auto;

    color:#6E665F;

}

button{

    background:linear-gradient(
        180deg,
        #C79D3B,
        #B8923A
    );

    color:white;

    border:none;

    width:320px;

    max-width:90%;

    padding:18px 34px;

    border-radius:20px;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:all .25s ease;

    box-shadow:
        0 10px 25px rgba(184,146,58,.25);

}
.heroButton{

    width:380px;

    max-width:90%;

    padding:20px;

    font-size:20px;

}

button:hover{

    transform:translateY(-4px) scale(1.02);

    background:linear-gradient(
        180deg,
        #CEA548,
        #B8923A
    );

    box-shadow:
        0 18px 40px rgba(184,146,58,.35);

}

.answerButton{

    display:block;

    width:500px;

    max-width:100%;

    margin:18px auto;

}
.questionCard{

    position:relative;

    width:660px;

    max-width:100%;

    margin:18px auto;

    padding:18px 24px;

    border-radius:20px;

    background:#FCFBF8;

    border:1px solid #E8D8B6;

    cursor:pointer;

    overflow:hidden;

    transition:.25s ease;

    text-align:left;

    box-shadow:
        0 8px 22px rgba(0,0,0,.05);

}
.questionCard::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    bottom:0;

    width:6px;

    background:#B8923A;

    transition:width .25s ease;

}

.questionCard:hover{

    transform:translateY(-2px);

    background:#FFFDF8;

    border-color:#B8923A;

    box-shadow:
        0 16px 38px rgba(184,146,58,.18);

}

.questionCard:hover::before{

    width:14px;

}

.questionCardTitle{

    font-size:24px;

    font-weight:700;

    color:#274236;

    margin-bottom:6px;

}

.questionCardSubtitle{

    color:#8B8278;

    font-size:16px;

    line-height:1.6;

}

.question h2{

    margin-bottom:45px;

}

.verseCard{

    position:relative;

    margin-top:55px;
    margin-bottom:70px;

    background:#FFFEFB;

    border:1px solid #E8D8B6;

    border-left:7px solid #B8923A;

    border-radius:24px;

    padding:55px 60px;

    text-align:center;

    font-size:31px;

    line-height:2.15;

    font-weight:400;

    font-family:'Cormorant Garamond',serif;

    color:#3D3833;

    box-shadow:

        0 10px 30px rgba(184,146,58,.08);

}

.reflectionCard{

    position:relative;

    background:linear-gradient(

        180deg,

        #FAFCF8,

        #F2F7F1

    );

    border:1px solid #D8E5D8;

    border-left:7px solid #4D6A5C;

    border-radius:24px;

    padding:55px;

    box-shadow:

        0 12px 35px rgba(77,106,92,.10);

}

.reflectionCard h3{

    text-align:center;

    margin-bottom:28px;

    font-size:36px;

}

.reflectionCard p{

    font-size:20px;

    line-height:1.9;

    color:#5C534B;

}

.resultCard button{

    margin-top:45px;

}

.resultCard{

    animation:fadeUp .6s ease;
}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(30px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}
/* ===========================
   ORNAMENTS
=========================== */

.resultCard::before{

    content:"❈";

    position:absolute;

    top:22px;

    left:28px;

    font-size:28px;

    color:#B8923A;

    opacity:.55;

}

.resultCard::after{

    content:"❈";

    position:absolute;

    bottom:22px;

    right:28px;

    font-size:28px;

    color:#4D6A5C;

    opacity:.55;

}
.reflectionCard::before{

    content:"❈";

    position:absolute;

    top:-22px;

    left:50%;

    transform:translateX(-50%);

    background:#F8F4EC;

    color:#B8923A;

    padding:0 18px;

    font-size:22px;

}
.surahDivider{

    margin:18px auto 45px;

    text-align:center;

    color:#B8923A;

    font-size:18px;

    letter-spacing:10px;

    opacity:.75;

}
/* ===========================
   HOMEPAGE HERO
=========================== */

.heroOrnament{

    font-size:28px;

    color:#B8923A;

    letter-spacing:10px;

    margin-bottom:14px;

}
.heroIntro{

    max-width:700px;

    margin:0 auto 14px;

    padding:16px 24px;

    background:#FCFBF8;

    border-left:4px solid #B8923A;

    border-radius:16px;

    box-shadow:
        0 8px 24px rgba(0,0,0,.05);

    font-size:18px;

    line-height:1.7;

    color:#5F584F;

}
.questionIntro{

    max-width:540px;

    margin:20px auto;

    color:#666;

    font-size:1.05rem;

    line-height:1.9;

}

.heroDivider{

    width:180px;

    height:2px;

    background:#D9C08A;

    margin:18px auto 24px;

}

.hadith{

    font-family:'Cormorant Garamond',serif;

    font-size:30px;

    line-height:1.8;

    color:#324A3F;

    max-width:760px;

    margin:0 auto;

    font-style:italic;

}

.hadithSource{

    margin-top:16px;

    margin-bottom:28px;

    color:#7B7066;

    font-size:15px;

    line-height:1.6;

    letter-spacing:.3px;
    font-weight:400;
    opacity:.85;

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

.topNav{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

    padding:0 10px;

}

.siteTitle{

    font-family:'Cormorant Garamond',serif;

    font-size:34px;

    color:#274236;

    font-weight:700;

}

.navLinks{

    display:flex;

    gap:40px;

}

.navLinks a{

    text-decoration:none;

    color:#5E564F;

    font-size:18px;

    font-weight:500;

    transition:.25s;

    position:relative;

}

.navLinks a:hover{

    color:#B8923A;

}

.navLinks a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#B8923A;

    transition:.25s;

}

.navLinks a:hover::after{

    width:100%;

}

.headerDivider{

    width:100%;

    height:1px;

    background:#D9C08A;

    margin-bottom:20px;

}
.coverLabel{

    font-family:'Inter',sans-serif;

    text-transform:uppercase;

    letter-spacing:5px;

    font-size:13px;

    color:#9B8763;

    margin-bottom:25px;

    font-weight:600;

}
body.homePage{

    overflow:hidden;

}

@media (max-width:768px){

    body.homePage{

        overflow-y:auto;

    }

}
/* ===========================
   GUIDANCE LOADING
=========================== */

.loadingOrnament{

    color:#B8923A;

    font-size:26px;

    letter-spacing:8px;

    margin-bottom:22px;

}

.loadingDivider{

    width:140px;

    height:2px;

    background:#D8C28A;

    margin:22px auto 35px;

}

.loadingVerse{

    font-family:'Cormorant Garamond',serif;

    font-size:34px;

    line-height:1.8;

    color:#324A3F;

    max-width:720px;

    margin:auto;

    font-style:italic;

}

.loadingReference{

    margin-top:16px;

    color:#9B8763;

    letter-spacing:2px;

    font-size:14px;

    text-transform:uppercase;

}

.loadingMessage{

    margin-top:35px;

    color:#756B62;

    font-size:17px;

}
/* ===================================
   MOBILE RESPONSIVE
=================================== */

@media (max-width:768px){

body{

    padding:15px;

    overflow-y:auto;

}

#app{

    width:100%;

    margin:0 auto;

}

.topNav{

    flex-direction:column;

    gap:18px;

    text-align:center;

}

.siteTitle{

    font-size:26px;

}

.navLinks{

    gap:30px;

    flex-wrap:wrap;

    justify-content:center;

}

.navLinks a{

    font-size:15px;

}

.welcome,
.question,
.resultCard{

    padding:24px;

width:100%;

box-sizing:border-box;

    border-radius:22px;

}

h1{

    font-size:44px;

}

h2{

    font-size:34px;

}

h3{

    font-size:24px;

}

.hadith{

    font-size:26px;

    line-height:1.7;

}

.coverLabel{

    font-size:12px;

    letter-spacing:3px;

}

.heroDivider{

    width:120px;

}

button{

    width:100%;

    padding:18px;

    font-size:17px;

    border-radius:14px;

}

.heroButton{

    margin-bottom:90px;

}

.answerButton{

    width:100%;

}

.verseCard{

    padding:28px;

    font-size:24px;

}

.reflectionCard{

    padding:28px;

}

.loadingVerse{

    font-size:28px;

}

/* Mobile ornament fixes */

.resultCard::before{

    top:14px;

    left:14px;

    font-size:22px;

}

.resultCard::after{

    bottom:14px;

    right:14px;

    font-size:22px;

}

.reflectionCard::before{

    top:-16px;

    font-size:18px;

}

}
.emailAddress{

    color:#B8923A;

    font-weight:600;

    overflow-wrap:anywhere;

    word-break:break-word;

}
/* ===========================
   ABOUT PAGE
=========================== */

.aboutPage{

    max-width:850px;

    margin:0 auto;

}

.aboutPage h2{

    font-size:46px;

    margin-bottom:10px;

}

.aboutPage p{

    font-size:18px;

    line-height:1.9;

    color:#625B53;

    margin:18px auto;

}

.aboutPage b{

    color:#274236;

}

.aboutPage button{

    margin-top:30px;

}
.salawat{

    font-size:28px !important;

    color:#274236 !important;

    margin:35px 0 !important;

}
/* ===========================
   FOOTER SIGNATURE
=========================== */

.footerNote{

    margin-top:40px;

    padding-top:35px;

    border-top:1px solid rgba(184,146,58,.25);

    font-family:'Cormorant Garamond',serif;

    font-size:22px;

    font-style:italic;

    font-weight:500;

    letter-spacing:.5px;

    color:#7A7268;

    text-align:center;

    opacity:.9;

}

.aboutPage button{

    margin-top:30px;

    margin-bottom:25px;

}

/* ===========================
   VOCABULARY
=========================== */

.vocabWord{

    border-bottom:2px dotted #B8923A;

    cursor:pointer;

    transition:.2s;

}

.vocabWord:hover{

    color:#B8923A;

}

#vocabularyPopup{

    position:absolute;

    max-width:280px;

    padding:16px 18px;

    background:white;

    border:1px solid #E8D8B6;

    border-left:5px solid #B8923A;

    border-radius:16px;

    box-shadow:0 12px 35px rgba(0,0,0,.15);

    font-size:16px;

    line-height:1.6;

    color:#4A433B;

    z-index:9999;

    display:none;

}

#vocabularyPopup.show{

    display:block;

}

#vocabularyPopup strong{

    color:#274236;

    font-family:'Cormorant Garamond',serif;

    font-size:22px;

}
.carryVerse{

    margin-top:28px;

    margin-bottom:28px;

    text-align:center;

    font-size:0.95rem;

    font-style:italic;

    letter-spacing:0.3px;

    color:#8B7B57;

    opacity:0.9;

}
