/* ==========================================================================
   Konsol Dev — ortak stiller
   Daha önce her section'ın içine gömülü olan CSS burada toplanmıştır.
   ========================================================================== */

:root {
  --konsol-accent: #EA7324;
  --konsol-accent-dark: #c8601d;
  --konsol-ink: #212529;
  --konsol-mono: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.text-accent { color: var(--konsol-accent); }
.bg-accent   { background: var(--konsol-accent); }

/* Klavye kullanıcıları için görünür odak halkası */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--konsol-accent);
  outline-offset: 2px;
}

/* İçeriğe atlama bağlantısı — yalnızca sekme ile odaklanınca görünür */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1080;
  padding: .6rem 1rem;
  background: var(--konsol-ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus {
  left: .5rem;
  top: .5rem;
}

/* ==========================================================================
   Dil değiştirici — TR | EN
   ========================================================================== */

.lang-switch {
  font-family: var(--konsol-mono);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang-switch__item {
  padding: .15rem .4rem;
  border-radius: .25rem;
  color: #6c757d;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
a.lang-switch__item:hover {
  color: var(--konsol-accent);
  background: rgba(234, 115, 36, .1);
}
.lang-switch__item.is-active {
  color: var(--konsol-accent);
  cursor: default;
}
.lang-switch__sep {
  color: #ced4da;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch__item { transition: none; }
}

/* ==========================================================================
   Yanıp sönen imleç
   ========================================================================== */

.blink { animation: blinkKey 1s step-end infinite; }
@keyframes blinkKey { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
}

/* ==========================================================================
   Butonlar
   Not: Harflerin dağıldığı eski .scatter-btn efekti kaldırıldı.
   Butonlar sade bir yükselme + gölge ile yanıt verir.
   ========================================================================== */

.btn {
  transition: transform .2s ease, box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 .35rem .8rem rgba(0, 0, 0, .15);
}
.btn:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ==========================================================================
   Hero — anasayfa (büyük) ve alt sayfalar (küçük)
   ========================================================================== */

.konsol-hero {
  position: relative;
  overflow: hidden;
  background: #000;
}
.konsol-hero--home { min-height: 45vh; }

/* Alt sayfa hero'su: sayfa başlığını göstermeye yetecek kadar,
   içeriği aşağı itmeyecek kadar kısa. */
.konsol-hero--compact { min-height: clamp(96px, 12vh, 140px); }

.konsol-hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.konsol-hero__veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  pointer-events: none;
  z-index: 1;
}
.konsol-hero__inner {
  position: relative;
  z-index: 2;
  font-family: var(--konsol-mono);
}

/* Daktilo başlığı.
   Eski sürümde white-space:nowrap + display-6 vardı ve 375px ekranda yazı
   iki yandan taşıyordu. Artık sarabiliyor, genişliği kutuyla sınırlı ve
   yazı boyu ekrana göre ölçekleniyor. */
.konsol-hero__title {
  color: #fff;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-family: var(--konsol-mono);
}
.konsol-hero--home .konsol-hero__title {
  font-size: clamp(.9rem, 3.4vw, 2.25rem);
}
.konsol-hero--compact .konsol-hero__title {
  font-size: clamp(1rem, 3vw, 1.9rem);
}

/* Alt sayfa hero'sunda ince turuncu alt çizgi */
.konsol-hero--compact .konsol-hero__rule {
  width: 56px;
  height: 3px;
  background: var(--konsol-accent);
  border-radius: 2px;
  margin-top: .6rem;
}

/* ==========================================================================
   Ürün şeridi (kayan bant)
   ========================================================================== */

.urun-belt {
  white-space: nowrap;
  overflow: hidden;
}
.urun-track {
  display: inline-flex;
  gap: 40px;
  animation: bandScroll 50s linear infinite;
  will-change: transform;
}
@keyframes bandScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Fare üzerine gelince durmaz — şerit kesintisiz akar. */

@media (prefers-reduced-motion: reduce) {
  .urun-track { animation: none; }
}

/* Zeminsiz, sade şerit: yazı çapraz turuncu/siyah gradyanla boyanıp
   harflere kırpılır, beyaz zemin üzerinde durur. */
.urun-box {
  display: inline-block;
  padding: 10px 4px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.urun-box__text {
  background-image: linear-gradient(135deg, var(--konsol-ink) 50%, var(--konsol-accent) 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.urun-box::selection,
.urun-box__text::selection { background: transparent; }

/* ==========================================================================
   Hakkımızda kartları
   ========================================================================== */

.about-card {
  background: #fff;
  transition: transform .4s ease, box-shadow .3s ease;
}
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .12);
}
.about-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--konsol-accent);
  color: #fff;
  font-size: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .about-card { transition: none; }
  .about-card:hover { transform: none; }
}

/* ==========================================================================
   Hakkımızda — kurumsal bölüm
   ========================================================================== */

/* Sade logo kartı. Çerçeve ve zemin rengi yok — kartın sınırını
   kenarlarda dolaşan turuncu damla çiziyor. */
.about-logo-card {
  position: relative;
  min-height: 240px;
  background: transparent;
  /* overflow:hidden YOK — çizginin kalınlığı kenarda kırpılıyordu */
  overflow: visible;
  /* Çizgi 2px içeride, rx=16 → zemin 18px ile eş merkezli olur */
  border-radius: 18px !important;
}

/* ==========================================================================
   Kenarlarda dolaşan çizgi
   Hem Hakkımızda logo kartı hem ürün kartları aynı bileşeni kullanır.

   pathLength="100" sayesinde kesikli desen yüzde cinsinden çalışır: kart
   hangi boyutta olursa olsun çizgi aynı oranda görünür.

   SVG "replaced" bir elemandır — yalnızca dört kenardan konumlandırmak
   yetmez, varsayılan 300x150'de kalır; genişlik/yükseklik açıkça verilir.

   Çizginin ekseni kenardan 2px içeride; kalınlığın dışa taşan yarısı
   overflow:visible sayesinde kırpılmadan görünür.

   Rengi kartın üzerindeki --trace-color ile değiştirilebilir.
   ========================================================================== */

.logo-trace {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.logo-trace .trace-line {
  fill: none;
  stroke: var(--trace-color, var(--konsol-accent));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 15 85;
}

/* Hareketi kapatanlar için: çizgi tüm kenarı ince bir çerçeve olarak sarsın */
@media (prefers-reduced-motion: reduce) {
  .logo-trace .trace-line {
    stroke-dasharray: none;
    stroke-width: 1.5;
    opacity: .5;
  }
}

/* Slogan: turuncu bir ışık yazının üzerinden geçer — karttaki sıvı
   damlayla aynı dili konuşsun diye. */
.about-logo-card__tagline {
  font-family: var(--konsol-mono);
  font-size: .875rem;
  color: #6c757d;
  background-image: linear-gradient(
    100deg,
    #8a9199 0%, #8a9199 38%,
    var(--konsol-accent) 50%,
    #8a9199 62%, #8a9199 100%
  );
  background-size: 280% 100%;
  background-position: 130% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: taglineSweep 5s ease-in-out infinite;
}
.about-logo-card__tagline .blink {
  -webkit-text-fill-color: var(--konsol-accent);
  color: var(--konsol-accent);
}

@keyframes taglineSweep {
  0%, 12%  { background-position: 130% 0; }
  88%, 100% { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .about-logo-card__tagline {
    animation: none;
    background-image: none;
    -webkit-text-fill-color: #6c757d;
    color: #6c757d;
  }
}

/* ==========================================================================
   Sayaç — km sayacı / takvim yaprağı etkisi
   ========================================================================== */

.odo {
  display: inline-flex;
  align-items: flex-start;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}
.odo__slot {
  display: block;
  height: 1em;
  overflow: hidden;
}
.odo__reel {
  display: block;
  will-change: transform;
}
.odo__reel > span,
.odo__lit {
  display: block;
  height: 1em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.about-logo-card__since {
  display: inline-block;
  padding: .2rem .8rem;
  border: 1px solid rgba(234, 115, 36, .5);
  border-radius: 999px;
  font-family: var(--konsol-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--konsol-accent);
}

.about-stat__icon {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: .35rem;
  color: var(--konsol-accent);
}
.about-stat__value {
  font-family: var(--konsol-mono);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  line-height: 1.05;
  color: #fff;
}
.about-stat__label {
  font-size: .76rem;
  color: rgba(255, 255, 255, .65);
  margin-top: .15rem;
}

.about-why {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.about-why:hover {
  border-color: rgba(234, 115, 36, .45);
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .07);
}
.about-why__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(234, 115, 36, .12);
  color: var(--konsol-accent);
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .about-why { transition: none; }
}

/* Sık sorulan sorular — kategori başlığı */
.faq-cat-title {
  color: var(--konsol-ink);
  border-bottom: 2px solid rgba(234, 115, 36, .35);
  scroll-margin-top: 90px;
}

/* ==========================================================================
   Hizmet kartları
   ========================================================================== */

@keyframes spinX { from { transform: rotateX(0); }  to { transform: rotateX(360deg); } }
@keyframes spinY { from { transform: rotateY(0); }  to { transform: rotateY(360deg); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s ease;
  will-change: transform;
}
.service-card.spin-x { animation: spinX .7s linear forwards; }
.service-card.spin-y { animation: spinY .7s linear forwards; }
.service-card:hover  { box-shadow: 0 .8rem 1.3rem rgba(0, 0, 0, .15); }

.service-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--konsol-accent) 50%, var(--konsol-ink) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.service-card p {
  flex-grow: 1;
  margin-top: auto;
  font-size: .85rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .service-card.spin-x,
  .service-card.spin-y { animation: none; }
}

/* ==========================================================================
   S.S.S.
   ========================================================================== */

#faq .accordion-button { font-size: .95rem; }
#faq .accordion-body   { font-size: .9rem; line-height: 1.5; }

/* ==========================================================================
   İletişim formu
   ========================================================================== */

.limit-rows {
  max-height: calc(1.5em * 5 + 1.25rem);
  overflow-y: auto;
  resize: vertical;
}
.contact-card { border-left: 4px solid var(--konsol-accent); }

/* ==========================================================================
   Bülten
   ========================================================================== */

.subscribe-btn {
  background: var(--konsol-accent);
  color: #fff;
  border: none;
  transition: background .3s ease, transform .2s ease;
}
.subscribe-btn:hover {
  background: var(--konsol-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.subscribe-btn:active { transform: translateY(0); }

/* ==========================================================================
   reCAPTCHA bilgilendirmesi
   Google'ın şartları rozeti gizleyen sitelerde bu metni zorunlu tutuyor.
   ========================================================================== */

.recaptcha-notice {
  font-size: .72rem;
  line-height: 1.4;
}
.recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.recaptcha-notice a:hover { color: var(--konsol-accent); }

/* Google'ın sağ alt köşedeki rozetini gizle — yerine yukarıdaki metin geçer */
.grecaptcha-badge {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .subscribe-btn { transition: none; }
  .subscribe-btn:hover { transform: none; }
}

/* ==========================================================================
   Ürünler
   ========================================================================== */

/* Ürün kimlik kartı — zemin ve yazı renkleri her ürün için HTML'de
   --logo-bg / --logo-fg / --logo-accent ile veriliyor. */
.product-id {
  position: relative;
  overflow: visible;
  background: var(--logo-bg, var(--konsol-ink));
  color: var(--logo-fg, #fff);
  border: 1px solid rgba(0, 0, 0, .08);

  /* Zemin yarıçapı, dolaşan çizginin yarıçapıyla eş merkezli olsun:
     çizgi 2px içeride ve rx=16 olduğu için zemin 18px olmalı.
     Bootstrap'in rounded-4 sınıfını ezmek için !important gerekiyor. */
  border-radius: 18px !important;
}

/* Kelime logosu: "Stok" + "365" bitişik, ikinci parça vurgu renginde */
.product-id__name {
  margin: 0;
  line-height: 1;
}
.product-id__mark {
  font-family: var(--konsol-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  letter-spacing: -.02em;
  color: var(--logo-fg, #fff);
  white-space: nowrap;
}
.product-id__mark-accent {
  color: var(--logo-accent, var(--konsol-accent));
}

.product-id__tagline {
  font-size: .875rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--logo-fg, #fff) 62%, transparent);
}
.product-id__badge {
  display: inline-block;
  padding: .2rem .7rem;
  border: 1px solid color-mix(in srgb, var(--logo-accent, #EA7324) 60%, transparent);
  border-radius: 999px;
  font-family: var(--konsol-mono);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--logo-accent, var(--konsol-accent));
}

/* Buton kart zeminine göre kontrast alır */
.product-id__cta {
  background: var(--logo-accent, var(--konsol-accent));
  border: none;
  color: #fff;
  font-weight: 600;
}
.product-id__cta:hover { color: #fff; filter: brightness(.92); }

/* Açık zeminli kartta (bildir365) buton yazısı koyu olsun */
.product-id[style*="#ffffff"] .product-id__cta { color: #fff; }

.product-feature {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.product-feature:hover {
  border-color: rgba(234, 115, 36, .45);
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .07);
}
.product-feature__icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--konsol-accent);
}

.product-chip {
  padding: .25rem .75rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  color: #495057;
}

.product-cta {
  background: #fff;
  border: 1px dashed rgba(234, 115, 36, .5);
}

/* ==========================================================================
   Hizmet detay sayfaları
   ========================================================================== */

.svc-step {
  position: relative;
  border-left: 2px solid rgba(234, 115, 36, .3);
}
.svc-step__no {
  display: block;
  font-family: var(--konsol-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--konsol-accent);
  margin-bottom: .3rem;
}

.svc-link {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  color: var(--konsol-ink);
  transition: border-color .25s ease, transform .25s ease, color .25s ease;
}
.svc-link:hover {
  border-color: var(--konsol-accent);
  color: var(--konsol-accent);
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .svc-link { transition: none; }
  .svc-link:hover { transform: none; }
}

/* Ürün blokları arasına ince ayraç */
.product-block + .product-block {
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

@media (prefers-reduced-motion: reduce) {
  .product-feature { transition: none; }
}

/* ==========================================================================
   Haber kartları
   ========================================================================== */

.news-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .75rem;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .6rem 1.2rem rgba(0, 0, 0, .1);
}
/* Görsel alanı. Zeminde konsol.dev logosu durur; haberin kendi görseli
   varsa üstüne biner. Görsel yoksa ya da yüklenemezse (onerror ile
   kaldırılır) logo görünür kalır — ayrıca JS gerekmez. */
.news-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f1f3f5;
  background-image: url("/assets/img/logo-konsol.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 46% auto;
}
.news-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card__source {
  font-family: var(--konsol-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--konsol-accent);
  text-transform: uppercase;
}
.news-card__title {
  font-size: 1rem;
  line-height: 1.35;
}
.news-card__title a {
  color: var(--konsol-ink);
  text-decoration: none;
}
.news-card__title a:hover { color: var(--konsol-accent); }
.news-card__summary {
  font-size: .85rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .news-card { transition: none; }
  .news-card:hover { transform: none; }
}

/* ==========================================================================
   Yakında
   ========================================================================== */

@keyframes zoomFade {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.animate-zoom { animation: zoomFade .8s ease-in-out; }

@media (prefers-reduced-motion: reduce) {
  .animate-zoom { animation: none; }
}
