/* ==========================================================================
 * HIZIRBEY DESIGN SYSTEM — PRAYER TIMES
 * Dosya     : themes/default/assets/css/hds/components/prayer-times/base.css
 * Oluşturuldu: 2026-11-01
 * Sürüm     : 2.1.0
 * Ownership : Canonical HDS PrayerTimes görünümü: tam görsel bant (vaktin resmi arkada), solda başlık + bilgi satırları,
 *             sağ üstte tarih kartı, altta yarı saydam tek şerit (kalan süre + altı vakit; sıradaki vakit altın çerçeveli).
 *             Eylemler HDS Button'dır (kendi CSS'iyle birlikte yüklenir).
 * Güncelleme: 2026-11-01 — resim üstünde şeffaf şerit düzeni (kullanıcı onaylı referans); tam renk perdesi yok, yalnız yazı arkasında hafif karartma.
 * Kancalar  : --hds-prayer-times-text-shadow (yazı gölgesi) / -small (küçük yazılar), --hds-prayer-times-image (faz görseli; renderer yazar), --hds-prayer-times-surface (resim yokken zemin),
 *             --hds-prayer-times-color, --hds-prayer-times-muted, --hds-prayer-times-accent, --hds-prayer-times-strip-surface,
 *             --hds-prayer-times-strip-border, --hds-prayer-times-card-surface, --hds-prayer-times-radius,
 *             --hds-prayer-times-padding, --hds-prayer-times-min-height
 * ========================================================================== */

/* ---> PrayerTimes */

.hds-prayer-times {
  --hds-prayer-times-surface: #1d0a12;
  --hds-prayer-times-color: #fff;
  --hds-prayer-times-muted: rgb(255 255 255 / 0.86);
  --hds-prayer-times-accent: #f0c36a;
  --hds-prayer-times-strip-surface: rgb(12 14 12 / 0.52);
  --hds-prayer-times-strip-border: rgb(240 195 106 / 0.32);
  --hds-prayer-times-divider: rgb(255 255 255 / 0.22);
  --hds-prayer-times-card-surface: rgb(22 26 40 / 0.5);
  --hds-prayer-times-card-border: rgb(255 255 255 / 0.4);
  --hds-prayer-times-text-shadow: 0 1px 2px rgb(0 0 0 / 0.75), 0 2px 8px rgb(0 0 0 / 0.55);
  --hds-prayer-times-text-shadow-small: 0 1px 2px rgb(0 0 0 / 0.4);
  --hds-prayer-times-radius: 18px;
  --hds-prayer-times-padding: 1.25rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--hds-prayer-times-min-height, 24rem);
  padding: var(--hds-prayer-times-padding);
  border-radius: var(--hds-prayer-times-radius);
  background: var(--hds-prayer-times-image, none) center bottom / cover no-repeat, var(--hds-prayer-times-surface);
  color: var(--hds-prayer-times-color);
  text-shadow: var(--hds-prayer-times-text-shadow);
}

/* Yazı arkasında hafif karartma (resmi örtmez): sol üst ve alt şerit çevresi. */
.hds-prayer-times::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.38) 0%, rgb(0 0 0 / 0.12) 38%, transparent 55%),
    linear-gradient(0deg, rgb(0 0 0 / 0.3) 0%, transparent 38%);
  pointer-events: none;
}

.hds-prayer-times__info {
  flex: 1 1 18rem;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Başlık büyük; seçili yer son sözcüğün tam altında ortalı, vurgu renginde (altına yer ayrılır). */
.hds-prayer-times__heading {
  flex: 1;
  min-width: 0;
  padding-bottom: 1.8rem;
}

/* Altında hesap yöntemi hapı varsa yer adı payı hapın üst boşluğundan gelir. */
.hds-prayer-times__heading:has(> .hds-prayer-times__facts) { padding-bottom: 0; }

.hds-prayer-times__title-tail {
  position: relative;
  display: inline-block;
}

.hds-prayer-times__place {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--hds-prayer-times-accent);
}

.hds-prayer-times__fact-icon svg,
.hds-prayer-times__date-icon svg,
.hds-prayer-times__countdown-icon svg,
.hds-prayer-times__icon svg {
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.7));
}

.hds-prayer-times__fact-icon svg,
.hds-prayer-times__date-icon svg,
.hds-prayer-times__countdown-icon svg,
.hds-prayer-times__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hds-prayer-times__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
}

.hds-prayer-times__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem 1.1rem;
}

.hds-prayer-times__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 0.3rem 0.7rem;
  margin: 1.9rem 0 0 -0.55rem; /* yer adı payı; hap sola yaklaşır, minare açıkta kalır */
  /* Yarı saydam tabaka (03.11.2026): yazı ve ikonlar fotoğrafın renklerine karışmasın.
     Kancalar: --hds-prayer-times-facts-surface, -border, -color. */
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--hds-prayer-times-facts-border, rgb(255 255 255 / 0.3));
  border-radius: 999px;
  background: var(--hds-prayer-times-facts-surface, rgb(16 40 74 / 0.26));
  backdrop-filter: blur(6px);
  list-style: none;
}

.hds-prayer-times__fact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--hds-prayer-times-facts-color, rgb(255 255 255 / 0.92));
  font-weight: 500;
  overflow-wrap: anywhere;
}

.hds-prayer-times__fact-icon {
  display: inline-flex;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--hds-prayer-times-accent);
}

.hds-prayer-times__side {
  flex: 0 1 auto;
  max-width: 100%;
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.75rem;
}

.hds-prayer-times__dates {
  display: flex;
  border: 1px solid var(--hds-prayer-times-card-border);
  border-radius: 999px;
  background: var(--hds-prayer-times-card-surface);
  backdrop-filter: blur(6px);
}

.hds-prayer-times__date-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.6rem 1.3rem;
}

.hds-prayer-times__date-item + .hds-prayer-times__date-item {
  border-left: 1px solid var(--hds-prayer-times-divider);
}

.hds-prayer-times__date-icon {
  display: inline-flex;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
}

.hds-prayer-times__date-text {
  display: grid;
  line-height: 1.25;
}

.hds-prayer-times__date-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.hds-prayer-times__date-text small {
  font-size: 0.85rem;
  color: var(--hds-prayer-times-muted);
}

.hds-prayer-times__strip {
  flex: 1 0 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: auto;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--hds-prayer-times-strip-border);
  border-radius: 999px;
  background: var(--hds-prayer-times-strip-surface);
  backdrop-filter: blur(6px);
}

.hds-prayer-times__countdown {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.4rem 0 1rem;
  border-right: 1px solid var(--hds-prayer-times-divider);
}

.hds-prayer-times__countdown-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--hds-prayer-times-accent);
}

.hds-prayer-times__countdown-text {
  display: grid;
  line-height: 1.3;
  font-size: 0.95rem;
}

/* Eylem düğmesi (ör. Detaylı Vakitler) geri sayımın altında, solda (03.11.2026).
   Beyaz kutu yok: Hesap yöntemi hapıyla aynı yarı saydam hap (kancalar: --hds-prayer-times-facts-*). */
.hds-prayer-times__countdown-text .hds-prayer-times__actions {
  justify-self: start;
  margin-top: 0.45rem;
}

.hds-prayer-times__actions .hds-button {
  --button-secondary-color: var(--hds-prayer-times-facts-color, rgb(255 255 255 / 0.92));
  --button-secondary-background: var(--hds-prayer-times-facts-surface, rgb(16 40 74 / 0.26));
  --button-secondary-border: var(--hds-prayer-times-facts-border, rgb(255 255 255 / 0.3));
  --button-secondary-hover-color: #ffffff;
  --button-secondary-hover-background: rgb(16 40 74 / 0.4);
  --button-secondary-hover-border: rgb(255 255 255 / 0.5);
  --button-height: 28px;
  --button-padding-x: 14px;
  --button-radius: 999px;
  --button-font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  box-shadow: none;
}

.hds-prayer-times__countdown-text strong {
  color: var(--hds-prayer-times-accent);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hds-prayer-times__times {
  display: grid;
  flex: 1;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.hds-prayer-times__time {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.25rem;
  padding: 0.7rem 0.4rem;
  border: 2px solid transparent;
  border-radius: 16px;
  text-align: center;
}


.hds-prayer-times__time + .hds-prayer-times__time::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: -2px;
  width: 1px;
  background: var(--hds-prayer-times-divider);
}

.hds-prayer-times__time--next::before,
.hds-prayer-times__time--next + .hds-prayer-times__time::before {
  display: none;
}

.hds-prayer-times__time--next {
  border-color: var(--hds-prayer-times-accent);
  background: rgb(240 195 106 / 0.1);
  box-shadow: 0 0 14px rgb(240 195 106 / 0.35);
}

.hds-prayer-times__head-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hds-prayer-times__icon {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
}

.hds-prayer-times__label {
  font-size: 1rem;
  color: var(--hds-prayer-times-muted);
}

.hds-prayer-times__value {
  font-size: clamp(1.4rem, 2.8cqi, 2rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hds-prayer-times__actions {
  margin: 0;
  text-shadow: none;
}

/* Bölümün kendi genişliğine göre uyarlanır; dar ana sayfa sütunlarında da taşmaz. */
@container (max-width: 62rem) {
  .hds-prayer-times__info { gap: 0.8rem; }
  .hds-prayer-times__title { font-size: 1.65rem; }
  .hds-prayer-times__info { gap: 0.7rem; }
  .hds-prayer-times__date-item { padding: 0.6rem 0.8rem; gap: 0.5rem; }
  .hds-prayer-times__date-text strong { font-size: 0.9rem; }
  .hds-prayer-times__countdown { padding: 0 0.8rem 0 0.5rem; gap: 0.5rem; }
  .hds-prayer-times__countdown-text { font-size: 0.85rem; }
  .hds-prayer-times__countdown-text strong { font-size: 1rem; }
  .hds-prayer-times__label { font-size: 0.85rem; }
}

@container (max-width: 46rem) {
  .hds-prayer-times__side {
    flex-basis: 100%;
    justify-items: start;
  }

  .hds-prayer-times__strip {
    flex-direction: column;
    border-radius: 24px;
  }

  .hds-prayer-times__countdown {
    padding: 0.4rem 0.8rem 0.6rem;
    border-right: 0;
    border-bottom: 1px solid var(--hds-prayer-times-divider);
  }

  .hds-prayer-times__times {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .hds-prayer-times__time + .hds-prayer-times__time::before { display: none; }
}

@container (max-width: 30rem) {
  .hds-prayer-times__title { font-size: 1.5rem; }
  .hds-prayer-times__dates {
    flex-direction: column;
    width: 100%;
    border-radius: 18px;
  }
  .hds-prayer-times__date-item + .hds-prayer-times__date-item {
    border-top: 1px solid var(--hds-prayer-times-divider);
    border-left: 0;
  }
  .hds-prayer-times__date-text { min-width: 0; overflow-wrap: anywhere; }
}

/* Küçük yazılarda gölge hafif (kalın gölge harfleri bulanıklaştırır). */
.hds-prayer-times__fact,
.hds-prayer-times__date-text small,
.hds-prayer-times__countdown-text > span,
.hds-prayer-times__label {
  text-shadow: var(--hds-prayer-times-text-shadow-small);
}

/* <--- PrayerTimes */
