/* ==========================================================================
   turkey.css — Sam Trading Group / درباره ترکیه (Turkey Hub)
   Supplementary stylesheet for /turkey/ section only.
   Loaded AFTER tokens.css, base.css, layout.css, sections.css, pages.css
   Brand tokens (hardcoded to guarantee correct render regardless of
   tokens.css internal variable names):
     Primary (Navy)   #1B263B
     Accent (Gold)    #D4AF37
     Secondary (Gold) #C5A059
     Text             #373C41
   ========================================================================== */

/* ---------- City comparison table (hub page) ---------- */
.turkey-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(27, 38, 59, 0.08);
}
.turkey-compare thead th {
  background: #1B263B;
  color: #fff;
  padding: 0.9rem 1rem;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.turkey-compare tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(27, 38, 59, 0.08);
  color: #373C41;
}
.turkey-compare tbody tr:last-child td { border-bottom: none; }
.turkey-compare tbody tr:nth-child(even) { background: rgba(212, 175, 55, 0.04); }
.turkey-compare tbody tr:hover { background: rgba(212, 175, 55, 0.08); }
.turkey-compare td a { color: #1B263B; font-weight: 700; text-decoration: none; border-bottom: 2px solid #D4AF37; }
.turkey-compare td a:hover { color: #D4AF37; }

/* Mobile: convert table to stacked cards */
@media (max-width: 720px) {
  .turkey-compare, .turkey-compare thead, .turkey-compare tbody, .turkey-compare tr, .turkey-compare td { display: block; width: 100%; }
  .turkey-compare thead { display: none; }
  .turkey-compare tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(27, 38, 59, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    background: #fff;
  }
  .turkey-compare td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(27, 38, 59, 0.08);
    padding: 0.6rem 0;
    text-align: left;
  }
  .turkey-compare td:last-child { border-bottom: none; }
  .turkey-compare td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #1B263B;
    margin-inline-end: 1rem;
  }
}

/* ---------- City cards grid (hub page) ---------- */
.city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.city-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #1B263B 0%, #0F1626 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.12), transparent 60%);
  pointer-events: none;
}
.city-card:hover {
  transform: translateY(-4px);
  border-color: #D4AF37;
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.18);
}
.city-card__name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}
.city-card__name-tr {
  color: #D4AF37;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.75rem;
}
.city-card__desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.9;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}
.city-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #D4AF37;
  font-weight: 700;
  font-size: 0.9rem;
}
.city-card__link svg { width: 16px; height: 16px; }

/* ---------- District list grid (city page + districts page) ---------- */
.district-section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  color: #1B263B;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.district-item {
  background: #fff;
  border: 1px solid rgba(27, 38, 59, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.district-item:hover {
  border-color: #D4AF37;
  box-shadow: 0 8px 24px rgba(27, 38, 59, 0.08);
}
.district-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.district-item__name-fa {
  font-weight: 800;
  color: #1B263B;
  font-size: 1.02rem;
}
.district-item__name-tr {
  font-size: 0.78rem;
  color: #C5A059;
  direction: ltr;
  font-weight: 600;
  white-space: nowrap;
}
.district-item__desc {
  color: #373C41;
  font-size: 0.88rem;
  line-height: 1.85;
  margin: 0;
}

/* ---------- FAQ Accordion (hub page) ---------- */
.turkey-faq { max-width: 860px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(27, 38, 59, 0.12);
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.25rem 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #1B263B;
  cursor: pointer;
  text-align: right;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #D4AF37;
  transition: transform 0.25s ease;
}
.faq-item[data-open="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #373C41;
  font-size: 0.94rem;
  line-height: 1.9;
  padding: 0 0.25rem;
}
.faq-item[data-open="true"] .faq-item__answer {
  max-height: 500px;
  padding: 0 0.25rem 1.25rem;
}

/* ---------- City facts row (city page) ---------- */
.city-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}
.city-fact {
  background: rgba(27, 38, 59, 0.03);
  border: 1px solid rgba(27, 38, 59, 0.08);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  text-align: center;
}
.city-fact__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1B263B;
  margin-bottom: 0.25rem;
}
.city-fact__label {
  font-size: 0.8rem;
  color: #373C41;
  opacity: 0.75;
}

/* ---------- Districts CTA link box (on city page) ---------- */
.districts-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #1B263B, #24334f);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.districts-cta__text h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.15rem; }
.districts-cta__text p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.9rem; }
.districts-cta__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #D4AF37;
  color: #1B263B;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.districts-cta__btn:hover { background: #C5A059; }

/* ---------- Related articles / internal linking box ---------- */
.related-links {
  background: rgba(27, 38, 59, 0.03);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.related-links h3 {
  color: #1B263B;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.related-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.related-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1B263B;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.related-links li a:hover { background: rgba(212, 175, 55, 0.12); color: #C5A059; }
.related-links li a svg { width: 16px; height: 16px; flex-shrink: 0; color: #D4AF37; }

/* ---------- Section-level breathing room ---------- */
.turkey-section { padding: 3.5rem 0; }
.turkey-section--alt { background: rgba(27, 38, 59, 0.025); }

@media (max-width: 720px) {
  .districts-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .districts-cta__btn { justify-content: center; }
}
