/*
 * Lines · bulut servis sayfaları. Çizgiler önde: açık zeminli kapak, hap etiketler,
 * 1px ayraçlı tablolar, yuvarlak arama kutuları. Blok HTML'i ortaktır.
 */

/* ================= Kapaklar ================= */
/* Piyasa, puan durumu ve burç kapakları blokların kendi resimli/koyu tasarımını kullanır. */

body.lines :is(.hp-weather-cover, .hp-prayer-hero, .hp-pharmacy-detail__hero, .hp-cinema-hero) {
  border-radius: var(--hp-card-radius, 0) !important;
  box-shadow: none !important;
}

body.lines :is(.hp-market-cover, .hp-weather-cover, .hp-prayer-hero, .hp-pharmacy-detail__hero, .hp-standings-cover, .hp-horoscope__cover, .hp-cinema-hero) h1 {
  font-family: var(--hp-font-heading);
  font-size: clamp(30px, 4vw, 42px) !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
  line-height: 1 !important;
}

/* Kapak etiketi: çerçeveli hap */
body.lines :is(.hp-weather-cover__place > span, .hp-prayer-page-heading > .hp-kicker, .hp-pharmacy-detail__eyebrow, .hp-cinema-hero__copy > span) {
  display: inline-flex !important;
  width: fit-content;
  padding: 3px 16px !important;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px !important;
  background: transparent !important;
  color: #fff !important;
  font-family: var(--hp-font-heading);
  font-size: 13px !important;
  font-weight: 800 !important;
}

body.lines .hp-market-cover__meta time {
  color: var(--ln-faint) !important;
}

body.lines .hp-market-cover__quote {
  border: 1px solid var(--ln-line) !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.lines .hp-market-cover--crypto .hp-market-cover__quote:nth-child(2) {
  transform: none;
}

body.lines .hp-market-cover__quote > strong {
  font-family: var(--hp-font-heading);
  font-size: 22px !important;
  font-weight: 700;
}

body.lines :is(.hp-market-cover__name b, .hp-market-cover__change) {
  font-family: var(--hp-font-heading);
}

body.lines .hp-standings-cover__stats > article {
  border: 1px solid var(--ln-line) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--ln-ink) !important;
}

body.lines .hp-standings-cover__stats > article :is(small, strong, span) {
  color: var(--ln-ink) !important;
}

/* Süzgeç / sekme düğmeleri: çerçeveli haplar */
body.lines .hp-pharmacy-filters {
  gap: 8px !important;
  background: transparent !important;
}

body.lines .hp-pharmacy-filters button {
  border: 1px solid var(--ln-line) !important;
  border-radius: 999px !important;
  background: var(--ln-surface) !important;
  color: var(--ln-ink) !important;
  font-family: var(--hp-font-heading);
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

body.lines .hp-pharmacy-filters button:is(:hover, :focus-visible, .active, .is-active, [aria-pressed="true"], [aria-current]) {
  border-color: var(--ln-ink) !important;
  background: var(--ln-ink) !important;
  color: var(--ln-surface) !important;
}

/* ================= Panel başlıkları: hap + çizgi ================= */
body.lines :is(.hp-economy-panel__head, .hp-economy-tools > header, .hp-stocks__head, .hp-weather-turkey > header, .hp-prayer-week > header, .hp-standings-section-head, .hp-horoscope__sidebar > header, .hp-cinema-venue-card__head) {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.lines :is(.hp-economy-panel__head, .hp-economy-tools > header, .hp-standings-section-head, .hp-horoscope__sidebar > header, .hp-cinema-venue-card__head)::after {
  flex: 1 1 auto;
  height: 1px;
  background: var(--ln-line);
  content: "";
}

body.lines :is(.hp-economy-panel__head, .hp-economy-tools > header, .hp-standings-section-head, .hp-horoscope__sidebar > header, .hp-cinema-venue-card__head) > :is(i, span:first-child:has(> i:only-child)) {
  display: none !important;
}

body.lines :is(.hp-economy-panel__head, .hp-economy-tools, .hp-stocks__head, .hp-weather-turkey > header, .hp-prayer-week > header, .hp-standings-section-head, .hp-horoscope__sidebar > header, .hp-cinema-venue-card__head) h2 {
  display: inline-block;
  margin: 0 !important;
  padding: 3px 20px !important;
  border: 1px solid #a9a9a9;
  border-radius: 999px;
  color: var(--ln-ink) !important;
  font-family: var(--hp-font-heading);
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  line-height: 26px !important;
  text-transform: uppercase;
}

body.lines :is(.hp-economy-panel__head small, .hp-economy-tools header p, .hp-standings-section-head p) {
  display: none !important;
}

/* ================= Tablolar ================= */
body.lines :is(.hp-economy-panel, .hp-economy-tools, .hp-stocks, .hp-prayer-week, .hp-standings-body, .hp-weather-turkey, .hp-pharmacy-detail__surface) {
  border-radius: var(--hp-card-radius, 0) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.lines :is(.hp-economy-table, .hp-stock-table, .hp-prayer-week table, .hp-standing-table) {
  overflow: hidden;
  border: 1px solid var(--ln-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.lines :is(.hp-economy-table__head, .hp-stock-table__head),
body.lines :is(.hp-prayer-week, .hp-standing-table) thead th {
  border: 0 !important;
  border-bottom: 1px solid var(--ln-line) !important;
  background: transparent !important;
  color: var(--ln-faint) !important;
  font-family: var(--hp-font-heading);
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.lines :is(.hp-economy-row, .hp-stock-row),
body.lines :is(.hp-prayer-week, .hp-standing-table) tbody td {
  border-color: var(--ln-line-soft) !important;
  font-family: var(--hp-font-heading);
  font-size: 14px;
}

body.lines :is(.hp-economy-row, .hp-stock-row):hover,
body.lines :is(.hp-prayer-week, .hp-standing-table) tbody tr:hover > td {
  background: color-mix(in srgb, var(--hp-accent) 5%, transparent) !important;
}

body.lines :is(.hp-economy-row__name b, .hp-stock-row b, .hp-economy-row > strong, .hp-stock-row strong) {
  font-family: var(--hp-font-heading);
  font-weight: 700;
}

body.lines .hp-economy-tools form {
  border: 1px solid var(--ln-line) !important;
  border-radius: var(--hp-card-radius, 0) !important;
  background: transparent !important;
}

body.lines .hp-economy-tools :is(input, select) {
  border: 1px solid var(--ln-line) !important;
  border-radius: 999px !important;
  font-family: var(--hp-font-heading);
}

body.lines .hp-economy-tools output {
  border: 1px solid var(--ln-ink) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ln-ink) !important;
  font-family: var(--hp-font-heading);
}

/* ================= Arama / şehir seçici ================= */
body.lines form:is(.hp-service-city-picker, .hp-service-city-picker__form, .hp-prayer-city-search, .hp-standings-league-search, .hp-weather-city-search, .hp-cinema-city-search) > div:has(> input),
body.lines .hp-stocks__search {
  overflow: hidden;
  border: 1px solid var(--ln-line) !important;
  border-radius: 999px !important;
  background: var(--ln-surface) !important;
}

body.lines form:is(.hp-service-city-picker, .hp-service-city-picker__form, .hp-prayer-city-search, .hp-standings-league-search, .hp-weather-city-search, .hp-cinema-city-search) > div:has(> input) :is(input, button) {
  border-radius: 0 !important;
  font-family: var(--hp-font-heading);
}

body.lines form:is(.hp-service-city-picker, .hp-service-city-picker__form, .hp-prayer-city-search, .hp-standings-league-search, .hp-weather-city-search, .hp-cinema-city-search) > div:has(> input) button:not(.hp-global-voice-input) {
  background: var(--ln-ink) !important;
  color: var(--ln-surface) !important;
  font-weight: 700;
}

/* ================= Kart ızgaraları ================= */
body.lines :is(.hp-weather-other-cities > a, .hp-prayer-city-links__grid > a, .hp-horoscope__sign, .hp-pharmacy-entry, .hp-fixture-list > article) {
  border: 1px solid var(--ln-line-soft) !important;
  border-radius: var(--hp-card-radius, 0) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.lines :is(.hp-weather-other-cities > a, .hp-prayer-city-links__grid > a, .hp-horoscope__sign):hover {
  border-color: var(--ln-ink) !important;
}

body.lines :is(.hp-weather-days, .hp-weather-panel, .hp-weather-current, .hp-weather-detail-grid > div, .hp-weather-hourly, .hp-cinema-halls details, .hp-cinema-halls summary) {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.lines .hp-pharmacy-district__head {
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid var(--ln-line) !important;
}

body.lines .hp-pharmacy-district__head h2 {
  font-family: var(--hp-font-heading);
  font-weight: 800;
}

body.lines :is(.hp-economy-panel__head, .hp-economy-tools, .hp-stocks__head, .hp-weather-turkey > header, .hp-prayer-week > header, .hp-standings-section-head, .hp-horoscope__sidebar > header, .hp-cinema-venue-card__head) h2 {
  color: var(--hp-accent) !important;
}

/* Şehir/lig seçici etiketleri iki modda da okunur */
body.lines :is(.hp-service-city-picker, .hp-service-city-picker__form, .hp-prayer-city-search, .hp-standings-league-search, .hp-weather-city-search, .hp-cinema-city-search) > label {
  color: var(--ln-muted) !important;
  font-family: var(--hp-font-heading);
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}

/* ================= Servis sayfası düzeltmeleri ================= */
/* Piyasa kapağı: dar ekranda kart içinde ad ve fiyat alt alta (üst üste binmesin) */
@media (max-width: 575.98px) {
  body.lines .hp-market-cover__quote {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 4px !important;
  }

  body.lines .hp-market-cover__quote > strong {
    font-size: 16px !important;
  }

  body.lines .hp-market-cover__change {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  /* Eczane düğmeleri sığmazsa alt satıra iner (sağda kesilmesin) */
  body.lines .hp-pharmacy-entry__actions {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  body.lines .hp-prayer-week thead th {
    font-size: 10px !important;
    letter-spacing: 0 !important;
  }

  /* 81 il listeleri telefonda iki sütun (tek sütunda sayfa çok uzuyordu) */
  body.lines .hp-weather-other-cities,
  body.lines .hp-fuel-cities > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.lines .hp-weather-other-cities > a {
    grid-template-columns: minmax(0, 1fr) 26px auto !important;
    gap: 4px !important;
    padding: 8px 10px !important;
  }

  body.lines .hp-weather-other-cities .hp-weather-city-icon {
    width: 26px !important;
  }

  /* Namaz haftalık tablo: başlık alt alta, yedi sütun ekrana sığar */
  body.lines .hp-prayer-week > header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 2px !important;
  }

  body.lines .hp-prayer-week :is(th, td) {
    padding: 8px 3px !important;
    font-size: 12.5px !important;
  }

  body.lines .hp-prayer-week tbody th > small {
    display: none !important;
  }
}

/* Koyu mod: piyasa kapağı değişim renkleri koyu zeminde okunur */
html[data-bs-theme="dark"] body.lines .hp-market-cover__quote--down .hp-market-cover__change {
  color: #ff6b6b !important;
}

html[data-bs-theme="dark"] body.lines .hp-market-cover__quote--up .hp-market-cover__change {
  color: #4ade80 !important;
}

/* Burç ikonları (siyah SVG): gezinti düğmeleri koyu dolgulu olduğundan beyaz; açık kartlarda koyu, koyu modda beyaz */
body.lines .hp-horoscope__nav a img {
  filter: brightness(0) invert(1) !important;
}

html[data-bs-theme="dark"] body.lines :is(.hp-horoscope__sign, .hp-horoscope__sidebar a, .hp-horoscope__detail-head) img {
  filter: brightness(0) invert(1) !important;
}

/* Eczane süzgeçlerindeki sayılar düğme yazı renginde (beyaz sabit renk açık zeminde kayboluyordu) */
body.lines .hp-pharmacy-filters button span {
  color: inherit !important;
  opacity: .7;
}

/* Burç yan sütunu kendi "Burçlar" başlığını taşır; örnek adı ("Burçlar · Sidebar") ikinci kez görünmesin */
body.lines .hp-block-horoscope-sidebar > .hp-global-block-header {
  display: none !important;
}
