/* -------------------------------------------------
   GLOBAL
------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
}

#mq-app {
    direction: rtl;
    font-family: inherit;
    max-width: 900px;
    margin: 0 auto;
    padding: 8px;
    text-align: justify;
}

body.mq-night {
    background: #0D1117 !important;
    color: #cdd9e5 !important;
}

body.no-trans .mq-trans {
    display: none !important;
}


/* -------------------------------------------------
   TOP BLUE MENU
------------------------------------------------- */
#mq-topmenu {
    background: #0964C6;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 20px;
}

#mq-topmenu .mq-logo img {
    height: 42px;
    width: auto;
}

#mq-topmenu .mq-menu-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

body.mq-night #mq-topmenu {
    background: #003E91;
}

body.mq-night #mq-topmenu .mq-menu-item {
    color: #A8C7FF;
}


/* -------------------------------------------------
   STICKY SELECT BOXES
------------------------------------------------- */
#mq-controls {
    position: sticky;
    top: 0;
    z-index: 9000;
    display: flex;
    gap: 8px;
    padding: 8px 4px;
    background: #ffffff;
    border-bottom: 1px solid #e3e3e3;
}

body.mq-night #mq-controls {
    background: #161b22;
    border-color: #2e3c4a;
}

.mq-box {
    flex: 1;
}

/* DAY MODE SELECT */
.mq-box select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #DDE6F2;
    background: #F7FAFF;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    text-align: right;
    height: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* -------------------------------------------------
   NIGHT MODE SELECT — FIXED (TEXT NOW BRIGHT)
------------------------------------------------- */
body.mq-night .mq-box select {
    background: #0F172A !important;
    border: 1px solid #263241 !important;
    color: #E6EAF5 !important;     /* روشن شد */
}

body.mq-night .mq-box select option {
    background: #0F172A !important;
    color: #E6EAF5 !important;     /* روشن شد */
}


/* -------------------------------------------------
   ICON BAR (Sticky)
------------------------------------------------- */
#mq-icons {
    position: sticky;
    top: 52px;
    z-index: 8999;
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 8px 0 4px;
    background: #ffffff;
    border-bottom: 1px solid #e4e4e4;
}

body.mq-night #mq-icons {
    background: #161b22;
    border-color: #2e3c4a;
}

.mq-ico {
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #0964C6;
}

body.mq-night .mq-ico {
    color: #58A6FF;
}


/* -------------------------------------------------
   CONTENT
------------------------------------------------- */
#mq-content {
    padding: 16px 4px;
    text-align: justify;
}

.mq-ayah {
    padding: 14px 10px;
    border-bottom: 1px solid #dcdcdc;
    cursor: pointer;
    transition: background 0.25s ease;
}

body.mq-night .mq-ayah {
    border-color: #2e3c4a;
}

.mq-ayah:hover {
    background: #eef5ff;
}

body.mq-night .mq-ayah:hover {
    background: #1e293b;
}


/* -------------------------------------------------
   PLAYING HIGHLIGHT (DAY)
------------------------------------------------- */
.mq-playing {
    background: #dceeff !important;
    border-right: 4px solid #9acbff !important;
    color: #000 !important;
    padding-right: 12px !important;
}


/* -------------------------------------------------
   PLAYING HIGHLIGHT (NIGHT)
------------------------------------------------- */
body.mq-night .mq-playing {
    background: #0A2C4D !important;
    border-right-color: #F4C430 !important;
    color: #ffffff !important;
}


/* -------------------------------------------------
   ARABIC TEXT
------------------------------------------------- */
.mq-arabic {
    font-family: "OthmanTaha", serif;
    font-size: 27px;
    line-height: 2.1;
    color: #0A4C8A;
    margin-bottom: 6px;
    text-align: justify;
}

body.mq-night .mq-arabic {
    color: #58A6FF;
}


/* -------------------------------------------------
   TRANSLATION
------------------------------------------------- */
.mq-trans {
    font-size: 15px;
    color: #333;
    border-right: 3px solid #0A4C8A;
    padding-right: 10px;
    margin-top: 4px;
    line-height: 1.8;
    text-align: justify;
}

body.mq-night .mq-trans {
    border-color: #58A6FF;
    color: #E6EAF5;
}


/* -------------------------------------------------
   AUDIO PLAYER
------------------------------------------------- */
#mq-player {
    display: none;
    background: linear-gradient(90deg, #0A4C8A, #063871);
    color: #fff;
    padding: 8px 0 4px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

body.mq-night #mq-player {
    background: linear-gradient(145deg, #001E3A, #0A3C64);
}

.mq-player-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.mq-pbtn {
    padding: 6px 10px;
    font-size: 15px;
    background: #fff;
    color: #0A4C8A;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

body.mq-night .mq-pbtn {
    background: #f0f0f0;
    color: #003E91;
}

#mq-wave {
    width: 92%;
    height: 28px;
    margin: 0 auto;
}


/* -------------------------------------------------
   RESPONSIVE
------------------------------------------------- */
@media (max-width: 600px) {

    .mq-box select {
        font-size: 12px;
        height: 38px;
    }

    #mq-icons {
        top: 48px;
    }

    .mq-arabic {
        font-size: 25px;
        line-height: 2.2;
    }

    .mq-trans {
        font-size: 14px;
    }
}


/* -------------------------------------------------
   FONTS
------------------------------------------------- */
@font-face {
    font-family: "OthmanTaha";
    src: url("../fonts/ScheherazadeNew-Medium.woff2") format("woff2");
}
