/* elkuranikerim.com – Sûre okuma sayfası (İman Akademisi Fâtiha sayfası örnek alındı) */

* { box-sizing: border-box; }
body { margin: 0; background: #f4f1ea; font-family: 'Montserrat', sans-serif; color: #1a1a1a; }

/* Üst başlık */
.site-header { background: #0d3b2e; color: #fff; text-align: center; padding: 18px 10px; }
.site-header h1 { margin: 0; font-size: 22px; letter-spacing: 1px; font-weight: 700; }
.site-header h1 a { color: #fff; text-decoration: none; }
.site-header .alt-baslik { margin: 8px 0 0; font-size: 15px; color: #e3efe9; font-style: italic; }
.site-header .aciklama { margin: 6px 0 0; font-size: 12px; color: #a9c9ba; }
@media (max-width: 600px) {
    .site-header h1 { font-size: 18px; }
    .site-header .alt-baslik { font-size: 13px; }
    .site-header .aciklama { font-size: 11px; }
}

/* Sûre adı çubuğu */
.sub-nav { background: #fff; border-bottom: 1px solid #ddd; text-align: center; padding: 10px; }
.sub-nav a { color: #0d3b2e; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-decoration: none; }

/* === 3 GÖRÜNÜM DÜĞMESİ === */
.gorunum-bar { background: #fff; border-bottom: 1px solid #ddd; padding: 12px 10px; position: sticky; top: 0; z-index: 10; }
.gorunum-content { max-width: 1150px; margin: 0 auto; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.gorunum-btn {
    font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px;
    color: #0d3b2e; background: #fff; border: 2px solid #0d3b2e; border-radius: 22px;
    padding: 8px 18px; cursor: pointer; transition: 0.2s;
}
.gorunum-btn:hover { background: #eef5f1; }
.gorunum-btn.active { background: #0d3b2e; color: #fff; }

/* Görünüme göre gizleme */
body[data-gorunum="okunus"] .meal-txt,
body[data-gorunum="okunus"] .meal-kaynak { display: none; }
body[data-gorunum="meal"] .okunus-txt { display: none; }
body[data-gorunum="meal"] .meal-txt { margin-top: 0; }

/* Sayfa gövdesi */
main { max-width: 1200px; margin: 0 auto; padding: 10px 15px 30px; }
.makale-baslik { padding: 10px 15px 0; }
.sure-adi { color: #2c3e50; border-bottom: 2px solid #c0392b; padding-bottom: 10px; }
.sure-adi .sure-ozet { font-style: italic; font-size: 15px; color: #7f8c8d; font-weight: 400; }
.sure-cuz { font-size: 13.5px; color: #4a5a52; margin: 8px 0 4px; }
.okuyan-kisi { font-size: 13px; color: #333; }
.ses-alani { padding: 8px 15px 0; }
.ses-kaynak { margin: 6px 0 0; font-size: 12px; color: #555; }

/* Mushaf + metin */
.mushaf-row { background: #fff; padding: 30px; margin: 15px; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.06); }
.mushaf-row::after { content: ""; display: table; clear: both; }
.mushaf-col-img { float: left; width: 425px; margin: 0 35px 15px 0; text-align: center; }
.mushaf-col-img img { width: 100%; height: auto; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.mushaf-kaynak { font-size: 12px; color: #777; text-align: center; margin: 8px 0 0; }
.mushaf-col-text-flow { line-height: 1.6; text-align: justify; }

.besmele-wrapper { margin-bottom: 25px; padding: 15px; background: #fdfaf3; border-radius: 8px; border-left: 5px solid #046b1e; }
.ayet-wrapper { margin-bottom: 10px; padding: 1px; }
.okunus-txt { font-weight: 600; color: #0d3b2e; font-size: 1rem; }
.besmele-wrapper .okunus-txt { font-weight: 700; color: #046b1e; }
.meal-txt { font-size: 15px; color: #444; margin-top: 4px; }
.besmele-wrapper .meal-txt { font-weight: 600; color: #333; margin-top: 5px; }
.meal-kaynak { font-size: 12px; color: #777; margin-top: 18px; }

/* Alt bilgi */
footer { background: #0d3b2e; color: #fff; padding: 15px; text-align: center; }
.footer-text { display: flex; justify-content: center; gap: 10px; font-size: 14px; }
.footer-divider { opacity: 0.5; }
.designer-note { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.designer-note p, .designer-note strong { margin: 0; color: #fff; font-size: 12px; line-height: 1.4; }
@media (max-width: 768px) {
    .footer-text { flex-direction: column; gap: 10px; }
    .footer-divider { display: none; }
}

@media (max-width: 950px) {
    .mushaf-row { padding: 20px; margin: 10px; }
    .mushaf-col-img { float: none; width: 100%; max-width: 450px; margin: 0 auto 20px; }
}
@media (max-width: 600px) {
    .mushaf-col-text-flow { text-align: left; }
    .gorunum-btn { padding: 7px 12px; font-size: 11px; }
}

/* Meal görünümünde âyet numarası meal satırının başında görünsün */
body[data-gorunum="meal"] .meal-txt[data-no]::before { content: "( " attr(data-no) " )  "; font-weight: 600; color: #0d3b2e; }
/* Eûzü kutusu mushaf görselinin altına girmesin */
.besmele-wrapper { display: flow-root; }

/* ===== SÛRE ARAMA ve GEÇİŞ ===== */
.sure-ara {
    width: 100%; font-family: 'Montserrat', sans-serif; font-size: 15px; padding: 12px 16px;
    border: 2px solid #0d3b2e; border-radius: 26px; outline: none; background: #fff; margin-bottom: 16px;
}
.sure-ara:focus { box-shadow: 0 0 0 3px rgba(13,59,46,0.15); }
.sure-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sure-izgara.tek-sutun { grid-template-columns: 1fr; gap: 6px; }
.sure-kart {
    display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e4e0d6; border-radius: 10px;
    padding: 10px 14px; text-decoration: none; color: #1a1a1a; position: relative; transition: 0.15s;
}
a.sure-kart:hover { border-color: #0d3b2e; box-shadow: 0 2px 10px rgba(13,59,46,0.12); }
.sure-kart.secili { border-color: #c0392b; background: #fffaf7; }
.sure-kart.pasif { opacity: 0.55; cursor: default; }
.sk-no { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #0d3b2e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.sure-kart.pasif .sk-no { background: #8a9a92; }
.sk-ad { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sk-ad b { font-size: 15px; color: #0d3b2e; }
.sk-ad small { font-size: 11.5px; color: #777; }
.sk-ar { font-size: 20px; color: #0d3b2e; font-family: 'Amiri', 'Traditional Arabic', serif; }
.sk-yakinda { position: absolute; top: 4px; right: 8px; font-size: 9.5px; color: #c0392b; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.sure-kart.kucuk { padding: 7px 12px; }
.sure-kart.kucuk .sk-no { flex-basis: 28px; height: 28px; font-size: 12px; }
.sk-yok { text-align: center; color: #777; padding: 20px; }

.ana-liste { max-width: 1150px; margin: 0 auto; padding: 25px 15px 40px; }
.ana-liste h2 { color: #0d3b2e; font-size: 18px; letter-spacing: 1px; margin: 0 0 14px; text-align: center; }

/* Sûre adı çubuğu: tıklanınca hızlı geçiş */
.sure-secici { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 18px; border: 1px solid #cfd8d3; }
.sure-secici:hover { background: #eef5f1; }
.sure-secici .ok { font-size: 11px; }

.gecis-perde { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; }
.gecis-perde[hidden] { display: none; }
.gecis-kutu { background: #f4f1ea; width: 100%; max-width: 520px; max-height: 84vh; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
.gecis-kutu .sure-izgara { overflow-y: auto; flex: 1; padding-right: 4px; }
.gecis-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #0d3b2e; }
.gecis-kapat { background: none; border: none; font-size: 18px; cursor: pointer; color: #555; }
body.perde-acik { overflow: hidden; }

/* Önceki / sonraki */
#sure-gecis { display: flex; justify-content: space-between; gap: 12px; margin: 10px 15px 0; }
.gd { display: inline-flex; flex-direction: column; text-decoration: none; color: #0d3b2e; background: #fff; border: 2px solid #0d3b2e; border-radius: 12px; padding: 10px 16px; min-width: 170px; position: relative; }
.gd.sonra { text-align: right; align-items: flex-end; margin-left: auto; }
.gd small { font-size: 11px; color: #666; letter-spacing: .5px; text-transform: uppercase; }
.gd b { font-size: 15px; }
.gd em { font-size: 10px; color: #c0392b; font-style: normal; font-weight: 700; text-transform: uppercase; }
a.gd:hover { background: #0d3b2e; color: #fff; }
a.gd:hover small { color: #cfe3d9; }
.gd.pasif { opacity: 0.5; border-color: #8a9a92; }
.gd.bos { visibility: hidden; border: none; }
@media (max-width: 600px) { .gd { min-width: 0; flex: 1; padding: 8px 10px; } .gd b { font-size: 13px; } }

/* ===== ANA SAYFA + DİL ÇUBUĞU (İman Akademisi ile aynı düzen) ===== */
.nav-bar { background: #0d3b2e; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 2px solid rgba(255,255,255,0.3); }
.nav-content { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; padding: 0 10px; }
.nav-link-main, .lang-link { color: #ffba35; font-weight: bold; font-size: 13px; text-decoration: none; transition: 0.3s; letter-spacing: .5px; }
.nav-link-main:hover, .lang-link:hover { color: #fff; }
.nav-bar .divider { color: #fff; opacity: 0.4; }
.lang-link.aktif { color: #fff; border-bottom: 2px solid #ffba35; padding-bottom: 3px; }
@media (max-width: 768px) { .nav-content { gap: 10px; } .nav-link-main, .lang-link { font-size: 12px; } }

/* EN/ES: Âmîn satırı ve çevirmen notları */
.meal-txt.amin { font-weight: 600; color: #0d3b2e; }
.dipnot-ref { font-size: 10px; color: #c0392b; }
.dipnotlar { display: flow-root; }
/* Okunuş görünümünde çevirmen notları da gizlensin */
body[data-gorunum="okunus"] .dipnotlar { display: none; }

/* Telefonda dil çubuğu tek satırda kalsın (17.11.2026) */
@media (max-width: 480px) {
    .nav-content { flex-wrap: nowrap; gap: 7px; padding: 0 6px; }
    .nav-link-main, .lang-link { font-size: 11px; letter-spacing: 0; white-space: nowrap; }
}
@media (max-width: 360px) {
    .nav-content { gap: 5px; }
    .nav-link-main, .lang-link { font-size: 10px; }
}

/* ===== Mushaf sayfalama (uzun sûrelerde tek sayfa gösterimi) – 19.11.2026 ===== */
.mushaf-row[hidden] { display: none !important; }
.sayfa-cubuk { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 15px 15px 0; flex-wrap: wrap; }
.sayfa-cubuk-alt { margin: 0 15px 15px; }
.sc-btn {
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: #0d3b2e; background: #fff;
    border: 2px solid #0d3b2e; border-radius: 20px; padding: 7px 16px; cursor: pointer; transition: 0.2s;
}
.sc-btn:hover:not(:disabled) { background: #0d3b2e; color: #fff; }
.sc-btn:disabled { opacity: 0.35; cursor: default; }
.sc-kisa { display: none; }
.sc-sec {
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: #0d3b2e; background: #fff;
    border: 1px solid #cfd8d3; border-radius: 18px; padding: 7px 12px; cursor: pointer; max-width: 230px;
}
@media (max-width: 600px) {
    .sayfa-cubuk { gap: 6px; margin: 10px 10px 0; flex-wrap: nowrap; }
    .sayfa-cubuk-alt { margin: 0 10px 10px; }
    .sc-btn { font-size: 12px; padding: 6px 11px; white-space: nowrap; flex: 0 0 auto; }
    .sc-uzun { display: none; }
    .sc-kisa { display: inline; }
    .sc-sec { font-size: 12px; padding: 6px 4px; min-width: 0; flex: 1 1 auto; max-width: 170px; }
}
