/* ==========================================================
   Mawaqeeti – Country Show Page
   تصميم خفيف، يدعم الثيم الفاتح والداكن
   ========================================================== */

.country-show-page {
    padding-top: 1.8rem;
    padding-bottom: 2.4rem;
}

.country-show-layout {
    max-width: 1040px;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* -------- HERO -------- */

.country-header {
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
}

body.mawaqeeti-body.theme-light .country-header {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
}

body.mawaqeeti-body.theme-dark .country-header {
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(55, 65, 81, 0.95);
}

.country-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.country-header-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.country-header-flag {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.country-header-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.country-header-title {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 800;
}

.country-header-code {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.country-header-text {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* ميتا */

.country-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.meta-pill {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
}

body.mawaqeeti-body.theme-light .meta-pill {
    background: #f1f5f9;
    border: 1px solid rgba(203, 213, 225, 0.9);
}

body.mawaqeeti-body.theme-dark .meta-pill {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(55, 65, 81, 0.95);
}

/* -------- معلومات إضافية -------- */

.country-info-section {
    margin-top: 1.6rem;
}

.country-info-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.country-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.8rem;
}

.country-info-card {
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
}

body.mawaqeeti-body.theme-light .country-info-card {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
}

body.mawaqeeti-body.theme-dark .country-info-card {
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(55, 65, 81, 0.95);
}

.info-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.15rem;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* -------- قسم المدن -------- */

.country-cities-section {
    margin-top: 1.8rem;
}

.country-section-header {
    margin-bottom: 0.6rem;
}

.country-section-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
}

.country-section-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.84rem;
    opacity: 0.9;
}

/* جدول المدن */

.city-table-wrapper {
    border-radius: 18px;
    overflow: hidden;
}

body.mawaqeeti-body.theme-light .city-table-wrapper {
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #ffffff;
}

body.mawaqeeti-body.theme-dark .city-table-wrapper {
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: rgba(15, 23, 42, 0.97);
}

.city-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.city-table thead {
    font-size: 0.8rem;
    opacity: 0.85;
}

body.mawaqeeti-body.theme-light .city-table thead {
    background: #f8fafc;
}

body.mawaqeeti-body.theme-dark .city-table thead {
    background: rgba(15, 23, 42, 0.98);
}

.city-table th,
.city-table td {
    padding: 0.55rem 0.8rem;
    text-align: start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.city-table tbody tr:last-child td {
    border-bottom: none;
}

.city-name {
    font-weight: 500;
}

/* زر مواقيت الصلاة */

.city-table-col-action {
    text-align: end;
    white-space: nowrap;
}

.city-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 0.25rem 0.85rem;
    text-decoration: none;
    border-width: 1px;
    border-style: solid;
}

/* ثيم نهاري */
body.mawaqeeti-body.theme-light .city-btn {
    border-color: #0ea5e9;
    color: #0369a1;
    background: #e0f2fe;
}

/* ثيم ليلي */
body.mawaqeeti-body.theme-dark .city-btn {
    border-color: rgba(56, 189, 248, 0.8);
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.96);
}

.city-btn:hover {
    filter: brightness(0.97);
}

/* فارغ + الباجينايشن */

.country-empty {
    font-size: 0.86rem;
    opacity: 0.9;
    padding: 0.8rem 0.2rem;
}

.city-pagination {
    margin-top: 0.9rem;
    font-size: 0.85rem;
}

/* -------- تجاوب -------- */

@media (max-width: 768px) {
    .country-show-layout {
        padding-inline: 0.85rem;
    }

    .country-header-title-row {
        align-items: flex-start;
    }

    .city-table th,
    .city-table td {
        padding-inline: 0.6rem;
    }
}

/* اتجاه اللغة */

html[dir="rtl"] .country-show-page {
    direction: rtl;
}

html[dir="ltr"] .country-show-page {
    direction: ltr;
}

.country-seo-text{
  margin-top: 1.6rem;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #ffffff;
}

body.mawaqeeti-body.theme-dark .country-seo-text{
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.country-seo-title{
  margin: 0 0 .6rem;
  font-size: 1.05rem;
  font-weight: 800;
}

body.mawaqeeti-body.theme-dark .country-seo-title{
  color: #e5e7eb;
}

.country-seo-paragraph{
  margin: 0;
  font-size: .95rem;
  line-height: 1.9;
  color: #475569;
}

body.mawaqeeti-body.theme-dark .country-seo-paragraph{
  color: rgba(226, 232, 240, 0.92);
}
