/* =========================================
   city.php
   مطابق لهوية الموقع - نسخة مرتبة ونظيفة
========================================= */

/* ===============================
   العنوان الرئيسي
================================= */
.page-title,
.city-onecard-title{
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 28px 0 18px;
}

/* للعناوين المخفية سيو فقط */
.seo-only{
  position: absolute;
  left: -9999px;
}

/* ===============================
   الكروت العامة
================================= */
.card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 18px var(--color-shadow);
}

/* ===============================
   الحاويات والمسافات
================================= */
.city-container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.container{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.container > :first-child{
  margin-top: 10px;
}

main{
  padding-left: 15px !important;
  padding-right: 15px !important;
}

main .container,
main .card,
main .featured-top,
main .cities-grid,
main .prayer-cards{
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===============================
   أزرار التنقل
================================= */
.city-buttons{
  margin-bottom: 10px;
}

.city-buttons .buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.city-buttons .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
 background: var(--color-surface);
  color: var(--color-primary-dark);
  font-weight: 800;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.city-buttons .btn:hover{
  background: var(--color-background);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
  transform: translateY(-1px);
}

.city-buttons .btn.is-active{
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ===============================
   كرت العداد + الوقت الآن
================================= */
.current-prayer{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.current-prayer .prayer-left{
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 22px var(--color-shadow-strong);
}

.current-prayer .prayer-left h3{
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
}

.current-prayer .prayer-left p{
  margin: 0 0 8px;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.current-prayer .prayer-left small{
  display: block;
  font-weight: 700;
  opacity: .9;
}

.current-prayer .prayer-right{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 22px var(--color-shadow);
}

.current-prayer .prayer-right h3{
  margin: 0 0 8px;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: 1px;
}

.current-prayer .prayer-right small{
  display: block;
  color: var(--color-text-light);
  font-weight: 700;
}

/* ===============================
   وصف أوقات الصلاة
================================= */
.prayer-description{
  margin-bottom: 0;
}

.prayer-description p{
  margin: 0;
  line-height: 1.9;
  color: var(--color-text);
}

.prayer-description .highlight{
  font-weight: 700;
  color: var(--color-primary);
}

/* ===============================
   جدول أوقات الصلاة اليوم
================================= */
.prayer-table table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--color-border);
}

.prayer-table th,
.prayer-table td{
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.prayer-table th{
  background: var(--color-background);
  font-weight: 900;
  color: var(--color-primary-dark);
}

.prayer-table tr:last-child td{
  border-bottom: 0;
}

/* تمييز الصلاة القادمة */
.next-prayer-row{
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
}

.next-prayer-cell{
  font-weight: 700;
  color: var(--color-primary);
}

/* ===============================
   معلومات إضافية نصية
================================= */
.prayer-info p,
.additional-info p{
  line-height: 1.9;
  margin: 0 0 10px;
  color: var(--color-text);
}

/* ===============================
   جدول الشهر
================================= */
.month-prayer-table h3{
  margin: 0 0 18px;
  color: var(--color-primary-dark);
  font-weight: 900;
  text-align: center;
  font-size: 1.6rem;
}

.month-prayer-table table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
}

.month-prayer-table th,
.month-prayer-table td{
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.month-prayer-table th{
  background: var(--color-background);
  font-weight: 900;
  color: var(--color-primary-dark);
}

.month-prayer-table tr:last-child td{
  border-bottom: 0;
}

/* ===============================
   باقي المدن
================================= */
.other-cities h3{
  margin-bottom: 20px;
  text-align: center;
  font-weight: 900;
  color: var(--color-primary-dark);
  font-size: 1.5rem;
}

.cities-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cities-grid a{
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  color: var(--color-primary-dark);
  font-weight: 800;
  text-align: right;
}

.cities-grid a:hover{
  color: var(--color-primary);
  text-decoration: underline;
}

.more-cities{
  display: block;
  text-align: center;
  margin: 25px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-primary-dark);
  font-weight: 900;
  text-decoration: none;
  font-size: 1.1rem;
}

.more-cities:hover{
  color: var(--color-primary);
  text-decoration: none;
}

/* ===============================
   معلومات إضافية على شكل كروت
================================= */
.additional-info{
  margin-top: 0;
  padding: 20px;
}

.info-title{
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin: 0 0 20px;
}

.info-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-box{
  background: color-mix(in srgb, var(--color-background) 65%, var(--color-white));
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
}

.info-label{
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.info-value{
  font-weight: 900;
  color: var(--color-text);
  font-size: 1.1rem;
}

/* ===============================
   العرض الأسبوعي
================================= */
.week-hero{
  text-align: center;
  padding: 22px;
}

.week-hero-title{
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 900;
  color: var(--color-primary-dark);
}

.week-hero-sub{
  margin: 0;
  color: var(--color-text-light);
  font-weight: 700;
}

.week-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 8px;
  flex-wrap: wrap;
}

.btn.btn-ghost{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
}

.week-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.week-day{
  padding: 0;
  overflow: hidden;
}

.week-summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  user-select: none;
}

.week-summary::-webkit-details-marker{
  display: none;
}

.week-day-title{
  font-weight: 900;
  color: var(--color-primary-dark);
  font-size: 18px;
}

.week-chevron{
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary-dark);
  border-bottom: 2px solid var(--color-primary-dark);
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
}

.week-day[open] .week-chevron{
  transform: rotate(-135deg);
}

.week-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.week-prayer{
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  background: var(--color-surface);
}

.week-prayer-time{
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 8px;
}

.week-prayer-icon img{
  width: 26px;
  height: 26px;
}

.week-prayer-name{
  margin-top: 8px;
  font-weight: 900;
  color: var(--color-text);
}

/* ===============================
   Responsive
================================= */
@media (max-width: 1200px){
  .cities-grid{
    grid-template-columns: repeat(4, 1fr);
  }

  .week-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px){
  .cities-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px){
  .week-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px){

  /* عنوان الصفحة */
  .page-title,
  .city-onecard-title{
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 12px 0 14px;
  }

  /* أزرار التنقل */
  .city-buttons .buttons{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: unset;
  }

  .city-buttons .btn{
    min-height: 44px;
    padding: 10px 8px;
    font-size: 14px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
  }

  /* كرتي العداد والوقت */
  .current-prayer{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .current-prayer .prayer-left,
  .current-prayer .prayer-right{
    padding: 14px 10px;
    border-radius: 16px;
  }

  .current-prayer .prayer-left h3{
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.3;
  }

  .current-prayer .prayer-left p{
    margin: 0 0 6px;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .current-prayer .prayer-left small{
    font-size: 12px;
    line-height: 1.4;
  }

  .current-prayer .prayer-right h3{
    margin: 0 0 6px;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .current-prayer .prayer-right small{
    font-size: 12px;
    line-height: 1.4;
  }

  /* جدول الشهر */
  .month-prayer-table table{
    font-size: 12px;
  }

  .month-prayer-table th,
  .month-prayer-table td{
    padding: 6px 3px;
  }

  .month-prayer-table th{
    font-weight: 800;
  }

  .month-prayer-table td{
    font-weight: 600;
  }

  /* معلومات إضافية */
  .info-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .week-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .cities-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
/* تصغير عنوان باقي المدن في الموبايل */
@media (max-width: 768px){
  .other-cities h3{
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
}
.seo-text {
    margin: 12px 0 18px;
    line-height: 1.9;
    color: #444;
}