/* Astro build overrides — CLS-safe defaults on top of production theme CSS. */

@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial");
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

.logo-text,
h1,
h2,
h3,
h4,
h5,
h6,
.the-subtitle {
  font-family: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* CLS: reserve header logo row height before paint. */
.theme-header .header-container {
  min-height: 91px;
  overflow-anchor: none;
}

.theme-header .logo-container {
  min-height: 75px;
}

.theme-header .tie-logo-img {
  height: 75px;
  max-height: 75px;
  width: auto;
  aspect-ratio: 288 / 75;
}

/* LCP hero: reserve slide space in blocking CSS so deferred child.css cannot shift layout. */
.basic-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1024 / 572;
}

.basic-slider {
  width: 100%;
  height: 100%;
}

.hero-lcp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.basic-slider-wrapper .slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Reserve ad slot height before any ad script runs. */
.evvel-ad-slot {
  display: block;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 20px auto;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  color: #bbb;
  font-size: 14px;
  line-height: 90px;
  text-align: center;
}

.evvel-ad-slot--large {
  min-height: 250px;
  line-height: 250px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10000000;
  background: #d10303;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
}

.skip-link:focus {
  top: 8px;
}

/* Mobil: iç sayfalarda header ile sınıf şeridi arası boşluk. */
@media (max-width: 991px) {
  #theme-header {
    margin-bottom: 0 !important;
  }

  #theme-header + .mk-stories {
    margin-top: 5px;
    margin-bottom: 8px;
  }

  #theme-header + .mk-stories .mk-stories-list {
    height: auto;
    min-height: 54px;
    padding: 0 6px;
  }

  #theme-header + .mk-stories .mk-story-item {
    margin-bottom: 0;
  }

  #theme-header + .mk-stories .mk-story-item a .si-image {
    margin-bottom: 0;
  }

  .theme-header .header-container {
    min-height: 0;
  }

  .theme-header .logo-container {
    min-height: 0;
  }
}

/* Şeritler yalnızca yatay kaysın. overflow-x: scroll varken overflow-y kendiliğinden
   auto'ya döndüğü için şerit parmakla dikey de sürüklenebiliyordu. */
.mk-stories .mk-stories-list {
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

/* Mobil menü / hızlı erişim açıkken üstteki duyuru şeridi (z-index: 9999999)
   panelin üstünde kalıyordu. Şeridi gizlemek 50px kaymaya yol açtığı için
   yalnızca header katmanı yukarı alınıyor. */
#theme-header:has(.evvel-mobile-nav__state:checked),
#theme-header:has(.evvel-quick-apps[open]) {
  z-index: 10000000;
}

/* Footer social icons: ensure icon font glyphs render when loaded. */
.site-footer .social-icons .tie-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 1;
}

/* Homepage: header menü ↔ slider — sıkı ama dengeli boşluk. */
#tie-body.home #theme-header {
  margin-bottom: 0 !important;
}

#tie-body.home #tiepost-219170-section-9893 .section-item {
  padding-top: 12px;
}

@media (max-width: 991px) {
  #tie-body.home #tiepost-219170-section-9893 .section-item {
    padding-top: 8px;
  }
}

/* Homepage: slider ↔ kartlar arası boşluk kartlar arası ile aynı (14px). */
#tie-body.home #tiepost-219170-section-9893 {
  padding-bottom: 0;
  margin-bottom: 14px;
}

#tie-body.home #tiepost-219170-section-9893 .slider-area.mag-box {
  margin-bottom: 0;
}

#tie-body.home #tiepost-1091-section-2208 {
  margin-top: 0;
}

#tie-body.home #tiepost-1091-section-2208 .mag-box.big-posts-box {
  margin-top: 0;
  margin-bottom: 0;
}

#tie-body.home #tie-recent_111372 .container-wrapper {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

#tie-body.home #tie-recent_111372 .post-item,
#tie-body.home #tie-recent_111372 .post-details {
  border: none;
  box-shadow: none;
  background: transparent;
}

#tie-body.home #tie-recent_111372 .post-thumb {
  display: block;
  aspect-ratio: 612 / 342;
  overflow: hidden;
  line-height: 0;
}

#tie-body.home #tie-recent_111372 .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media (min-width: 992px) {
  #tie-body.home #tie-recent_111372 .posts-items li {
    width: 33.3333%;
  }
}

/* Article footer: ders şeridi + tepki kutusu (canlı tema ile aynı). */
article .evvel-article-tools {
  margin-top: 10px;
  clear: both;
}

article .evvel-article-tools .mk-new-button {
  margin: 0 0 18px;
  display: block;
  position: relative;
  z-index: 1;
}

article .evvel-article-subjects {
  margin: 0;
  padding: 0 12px 4px;
  overflow: hidden;
}

article .evvel-article-subjects .mk-stories-list {
  --subject-strip-gap: 8px;
  --subject-strip-visible: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--subject-strip-gap);
  padding: 4px 2px 8px;
  height: auto;
  min-height: 72px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

article .evvel-article-subjects .mk-story-item {
  margin: 0;
  flex: 0 0 calc((100% - (var(--subject-strip-visible) - 1) * var(--subject-strip-gap)) / var(--subject-strip-visible));
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
}

article .evvel-article-subjects .mk-story-item.hour {
  width: calc((100% - (var(--subject-strip-visible) - 1) * var(--subject-strip-gap)) / var(--subject-strip-visible));
}

article .evvel-article-subjects .mk-story-item.hour a {
  display: block;
  width: min(100%, 70px);
}

article .evvel-article-subjects .mk-story-item.hour a .si-image {
  width: min(100%, 70px) !important;
  height: min(100%, 70px) !important;
  padding: 2px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

article .evvel-article-subjects .mk-story-item a .si-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  display: block !important;
}

#mk-reaction-container .mk-reaction-button img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

article .post-components {
  margin-top: 30px;
  padding: 0 12px;
}

article .post-components .compact-comments {
  margin-bottom: 0;
}

article .post-components #comments {
  margin-top: 0;
}

article .comment-form-notice {
  margin: 12px 0 0;
  font-weight: 700;
  color: #d20609;
}

/* Yorumlar — sezon ölçekli (lazy load + sayfalama) */
article .evvel-comments-hub {
  margin-top: 0;
}

article .evvel-comment-form-primary {
  margin-bottom: 20px;
  padding-bottom: 4px;
}

article .evvel-comments-teaser {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 4px;
  border: 1px solid rgba(209, 3, 3, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);
}

article .evvel-comments-teaser__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d10303;
  color: #fff;
  font-size: 20px;
  line-height: 42px;
  text-align: center;
}

article .evvel-comments-teaser__body {
  flex: 1;
  min-width: 0;
}

article .evvel-comments-teaser__count {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #2c2f34;
}

article .evvel-comments-teaser__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}

article .evvel-comments-open,
article .evvel-comments-load-more {
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(130deg, #d10303, #af6668, #d10303);
  background-size: 200% 200%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

article .evvel-comments-open:hover,
article .evvel-comments-load-more:hover {
  opacity: 0.92;
}

article .evvel-comments-open:disabled,
article .evvel-comments-load-more:disabled {
  opacity: 0.65;
  cursor: wait;
}

article .evvel-comments-panel {
  margin-top: 16px;
  padding-top: 4px;
}

article .evvel-comments-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

article .evvel-comments-toolbar__title {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
}

article .evvel-comments-progress {
  margin: 0;
  font-size: 13px;
  color: #777;
}

article .evvel-comments-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

article .evvel-comments-sort-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

article .evvel-comments-sort {
  min-width: 110px;
  /* Tema `select { height: 30px }` veriyor; padding + line-height: 23px ile içerik
     37px'e çıkıp "En yeni / En eski" metni kırpılıyordu. */
  height: auto;
  line-height: 1.35;
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

article .evvel-comments-close {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
}

article .evvel-comments-list {
  display: flex;
  flex-direction: column;
}

article .evvel-comments-footer {
  margin-top: 8px;
  text-align: center;
}

article .evvel-comments-load-more {
  width: 100%;
  max-width: 420px;
  margin: 8px auto 0;
  display: inline-block;
}

article .evvel-comments-load-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: #888;
}

article .evvel-comment-form-toggle {
  margin-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 14px;
}

article .evvel-comment-form-toggle__summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #d10303;
  list-style: none;
}

article .evvel-comment-form-toggle__summary::-webkit-details-marker {
  display: none;
}

article .evvel-comment-form-primary .comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

article .evvel-comment-form-primary .comment-form-author input {
  max-width: 280px;
}
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

article .evvel-comment:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

article .evvel-comment.is-pending {
  background: #fff8f0;
  margin: 0 -10px;
  padding: 16px 10px;
  border-radius: 8px;
  border-bottom: 0;
}

article .evvel-comment-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

article .evvel-comment-main {
  flex: 1;
  min-width: 0;
}

article .evvel-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 6px;
}

article .evvel-comment-author {
  font-size: 16px;
  line-height: 1.3;
  color: #2c2f34;
}

article .evvel-comment-date {
  font-size: 13px;
  color: #888;
}

article .evvel-comment-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #2c2f34;
  word-break: break-word;
}

article .evvel-comment-pending {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #d20609;
}

article .evvel-comment-form-wrap {
  margin-top: 12px;
  padding-top: 0;
}

article .evvel-comment-form-wrap .comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

article .evvel-comment-form-wrap .comment-form-author input {
  max-width: 280px;
}

@media (max-width: 768px) {
  article .evvel-article-tools .mk-new-button {
    margin-bottom: 16px;
  }

  article .evvel-article-subjects {
    padding: 0 6px 4px;
  }

  article .evvel-article-subjects .mk-stories-list {
    --subject-strip-gap: 5px;
    --subject-strip-visible: 7;
    min-height: 58px;
    padding: 4px 2px 6px;
  }

  #mk-reaction-container .mk-reaction-buttons {
    max-width: 100%;
    margin-top: 30px;
  }

  article .post-components {
    padding: 0 6px;
  }

  article .evvel-comments-teaser {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  article .evvel-comments-teaser__icon {
    margin: 0 auto;
  }

  article .evvel-comments-open {
    width: 100%;
  }

  article .evvel-comments-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  article .evvel-comments-toolbar__actions {
    justify-content: space-between;
  }
}

/* Fix icon font path (helpers.css cache may still serve ../../fonts on edge). */
@font-face {
  font-family: "tiefonticon";
  src:
    url(../fonts/tielabs-fonticon/tielabs-fonticon.woff2?ciufdj1) format("woff2"),
    url(../fonts/tielabs-fonticon/tielabs-fonticon.woff?ciufdj1) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
