/* public/css/meal-liste.css */

/* 1) Arapça font */
@font-face {
  font-family: "MyArabic";
  src: url("/fonts/KuranKerimFontHamdullah.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Genel sayfa fontu */
.meal-page {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

/* Arapça metin */
.meal-page .arabic {
  font-family: "MyArabic", "Amiri", serif;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.9;
  direction: rtl;
  text-align: right;
  word-break: break-word;
  word-spacing: 0px;
}

/* Türkçe meal */
.meal-page .turkish {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.8;
}

/* Ayet kartı */
.meal-page .ayah-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Üst bilgi */
.meal-page .meta{
  font-size: clamp(16px, 1vw, 19px);
  font-weight: 600;
  color: #444;
  letter-spacing: .6px;
  margin-bottom: 10px;
}

.meal-page .arabic-sure {
  font-family:"MyArabic", serif;
  font-size:1.15em;
  color:#555;
  margin-left:6px;
}

.meal-page .sure-no,
.meal-page .ayah-no{
  color:#6b7280;
  font-weight:600;
}

.meal-page .sure-name{
  color:#222;
  font-weight:700;
}

/* Arapça kelimeler */
.meal-page .arabic-word{
  display:inline;
  margin-left:2px;      /* eski 6px idi */
  cursor:pointer;
  transition:color .08s ease;
}

.meal-page .arabic-word:hover{
  color:#dc2626;
}

/* Başlık */
.meal-title{
  text-align:center;
  font-size:28px;
  font-weight:700;
  margin-bottom:24px;
  letter-spacing:0.5px;
}

.meal-page .meal-filters {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* Besmele */
.meal-page .bismillah-card{
  padding-top:18px !important;
  padding-bottom:18px !important;
}

.meal-page .bismillah-text{
  font-family:"MyArabic", serif;
  text-align:center;
  color:#b91c1c;
  font-size:clamp(26px,4vw,36px);
  font-weight:500;
  line-height:2.0;
}

/* Link */
.meal-page .meta-link{
  display:inline-block;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}

.meal-page .meta-link:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Kök vurgusu */
.root-highlight{
  color:#b91c1c;
  font-weight:700;
}

.meal-page .arabic-word.root-highlight{
  color:#dc2626;
  font-weight:400;
  text-decoration:none;
}

/* Popup trigger */
.arabic-word.root-popup-trigger{
  cursor:pointer;
  padding:1px 1px;
}

.arabic-word.root-popup-trigger:hover{
    background: transparent !important;
    border-radius: 0 !important;
    color: #dc2626 !important;
}

/* Popup */
.root-popup{
  position:absolute;
  z-index:9999;
  min-width:160px;
  max-width:240px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  padding:10px;
  font-family:"MyArabic","Amiri",serif;
  direction:rtl;
}

.root-popup.d-none{
  display:none;
}

.root-popup-title{
  font-family:"MyArabic","Amiri",serif;
  font-size:22px;
  margin-bottom:8px;
  text-align:center;
  border-bottom:1px solid #eee;
  padding-bottom:6px;
}

.root-option-btn{
  display:block;
  width:100%;
  border:0;
  background:#f8f9fa;
  border-radius:8px;
  padding:10px 12px;
  margin-bottom:6px;
  text-align:center;
  cursor:pointer;
  font-family:"MyArabic","Amiri",serif;
  font-size:26px;
  line-height:1.6;
  font-weight:600;
}

.root-option-btn:hover{
  background:#e9ecef;
}

.root-popup-loading,
.root-popup-empty{
  text-align:center;
  padding:8px;
  color:#666;
}

.root-option-link{
  text-decoration:none;
  color:inherit;
}

.root-option-link:hover{
  text-decoration:none;
  color:inherit;
}

.root-popup-irab{
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    direction: ltr;
    text-align: left;
    white-space: normal;
}

.search-hit{
    color:#d40000 !important;;
    font-weight:700;
    background:rgba(255,0,0,0.08);
    border-radius:4px;
    padding:1px 3px;
}

.search-hit{
    color:#dc2626 !important;
    font-weight:700;
}

.mutashabih-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
    font-size:12px;
    border:1px solid #999;
    border-radius:4px;
    color:#444;
    text-decoration:none;
    line-height:1;
}

.mutashabih-btn:hover{
    background:#f3f3f3;
    color:#000;
    text-decoration:none;
}

.mutashabih-link{
    text-decoration:none;
}

/* ===============================
   Müteşabih butonu (=)
================================ */

.mutashabih-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:24px;
    height:24px;

    border-radius:7px;

    background:#a855f7;
    border:1px solid #9333ea;
    color:#fff;

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

    box-shadow:0 2px 6px rgba(0,0,0,.15);

    transition:all .15s ease;
}

.mutashabih-badge:hover{
    background:#9333ea;
}


/* ===============================
   Benzer ayet butonu (≈)
================================ */

.similar-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:24px;
    height:24px;

    border-radius:7px;

    background:#3b82f6;
    border:1px solid #2563eb;
    color:#fff;

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

    text-decoration:none;

    box-shadow:0 2px 6px rgba(0,0,0,.15);

    transition:all .15s ease;
}

.similar-btn:hover{
    background:#2563eb;
}

.tafsir-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:26px;
    padding:0 10px;
    margin-left:6px;
    border-radius:8px;
    background:#f59e0b;
    border:1px solid #d97706;
    color:#fff;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    line-height:1;
    box-shadow:0 2px 6px rgba(0,0,0,.15);
    transition:all .15s ease;
    white-space:nowrap;
}

.tafsir-btn:hover{
    background:#d97706;
    color:#fff;
    text-decoration:none;
}


