﻿/* =========================================================
   index.css — Ana Sayfa
   Finorjin HERO + Kategori Grid
   STABLE / RESPONSIVE / VIDEO SAFE
========================================================= */


/* =========================================================
   HERO SECTION (ROOT)
========================================================= */

.hero-section {
  position: relative;
  width: 100%;
  height: clamp(360px, 66vh, 760px);
  min-height: 360px;
  aspect-ratio: 16 / 9;      /* yedek oran */
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #050b12;
  z-index: 3;
}

@media (max-width: 576px) {
  .hero-section {
    height: clamp(320px, 56vh, 560px);
    min-height: 320px;
    aspect-ratio: auto;
  }
}


/* =========================================================
   HERO MEDIA (POSTER / VIDEO)
========================================================= */

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: auto;
  isolation: isolate; /* video üstünde butonlar için */
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5; /* video ile play tuşu arasında ince saydam perde */
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.12), rgba(7, 16, 28, 0.18));
}

/* Poster + video */
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* === POSTER === */
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.9) contrast(0.9) brightness(0.82);
  display: block;
}

/* === VIDEO === */
.hero-video {
  display: none;
  object-fit: cover;
  object-position: center top;
  z-index: 3;
}


/* =========================================================
   MOBILE / DESKTOP MODES
========================================================= */

.hero-media.is-mobile .hero-poster img,
.hero-media.is-desktop .hero-poster img {
  object-fit: cover;
  object-position: center 42%;
}


/* =========================================================
   VIDEO STATE
========================================================= */

.hero-media.is-playing .hero-poster {
  display: none;
}

.hero-media.is-playing .hero-video {
  display: block;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2;
  pointer-events: none;
}

.hero-media.is-playing ~ .hero-overlay {
  background: rgba(0,0,0,0.25);
}

.hero-media.is-playing::after {
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.16), rgba(7, 16, 28, 0.24));
}

/* Video gerçekten oynarken (pause değil) login hariç hero üzerindeki ek kartlar gizlenir */
.hero-media.is-actively-playing ~ .hero-cards-left,
.hero-media.is-actively-playing ~ .hero-upcoming-services,
.hero-media.is-actively-playing ~ .hero-quick-tour-banner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

/* =========================================================
   HERO BRAND MESSAGE (CORPORATE)
========================================================= */

.hero-brand-message {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(1.25rem, 8vh, 4.25rem) 1rem 1rem;
  transform: none;
  opacity: 1;
  transition: opacity .25s ease;
}

.hero-brand-message-inner {
  width: min(88vw, 700px);
  padding: 1rem 1.25rem;
  text-align: center;
  background: rgba(9, 20, 34, 0.26);
  border: none;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-brand-kicker {
  margin-bottom: 0.45rem;
  color: rgba(235, 242, 248, 0.95);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-brand-title {
  margin: 0;
  color: #bfe8ff;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(4, 18, 36, 0.34);
}

.hero-media.is-playing ~ .hero-brand-message {
  opacity: 0;
}

@media (max-width: 991px) {
  .hero-brand-message {
    justify-items: center;
    align-items: start;
    padding: 1rem 1rem 1rem;
    transform: none;
  }

  .hero-brand-message-inner {
    width: min(94vw, 680px);
    padding: 0.85rem 1rem;
    background: rgba(9, 20, 34, 0.34);
  }

  .hero-brand-kicker {
    letter-spacing: 0.14em;
    margin-bottom: 0.3rem;
  }
}


/* =========================================================
   HERO PLAY BUTTON (DESKTOP)
========================================================= */

.hero-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.82);
  background:
    radial-gradient(circle at 35% 30%, rgba(100, 214, 255, 0.95), rgba(18, 102, 194, 0.92));
  color: #fff;
  font-size: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: auto;
  animation: heroPlayPulse 1.35s ease-in-out infinite;
  box-shadow: 0 10px 28px rgba(14, 67, 129, 0.45);
}

.hero-play-btn:hover {
  transform: scale(1.1);
  background:
    radial-gradient(circle at 35% 30%, rgba(128, 228, 255, 0.98), rgba(24, 118, 210, 0.95));
  animation-play-state: paused;
}

@media (max-width: 991px) {
  .hero-play-btn {
    display: none !important;
  }
}

.hero-media.is-playing .hero-play-btn {
  display: none !important;
}

@keyframes heroPlayPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 10px 26px rgba(14, 67, 129, 0.42),
      0 0 0 0 rgba(117, 216, 255, 0.5);
    opacity: 0.96;
  }
  50% {
    transform: scale(1.12);
    box-shadow:
      0 14px 34px rgba(14, 67, 129, 0.5),
      0 0 0 16px rgba(117, 216, 255, 0);
    opacity: 1;
  }
}

/* =========================================================
   HERO LEFT PROMO CARDS
========================================================= */

.hero-cards-left {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: clamp(200px, 22%, 300px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4;
}

.hero-quick-tour-banner {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  width: clamp(200px, 22%, 300px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1rem 1.05rem;
  min-height: 102px;
  border-radius: 1rem;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background:
    radial-gradient(120% 120% at 15% 15%, rgba(59, 130, 246, 0.18), transparent 50%),
    rgba(15, 23, 42, 0.34);
  color: #eff6ff;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  border-width: 1px;
  border-style: solid;
  font: inherit;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hero-quick-tour-topline {
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-quick-tour-banner:hover,
.hero-quick-tour-banner:focus {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow:
    0 22px 42px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-quick-tour-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.28);
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 14px rgba(245, 158, 11, 0.14);
}

.hero-quick-tour-title {
  font-size: 1.26rem;
  font-weight: 900;
  line-height: 1.1;
  color: #f8fbff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(148, 197, 255, 0.22);
}

.hero-quick-tour-sub {
  font-size: 0.8rem;
  line-height: 1.28;
  color: rgba(226, 232, 240, 0.92);
}

.hero-card-link {
  text-decoration: none;
  color: inherit;
}

.hero-card-link,
.hero-card-link:hover,
.hero-card-link:focus,
.hero-card-link:active,
.hero-card-link:visited,
.card-clickable-link,
.card-clickable-link:hover,
.card-clickable-link:focus,
.card-clickable-link:active,
.card-clickable-link:visited {
  text-decoration: none !important;
}

.hero-card-item {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(74px, 8.6vh, 90px);
  background: #fff;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
}

.hero-card-item img {
  width: clamp(88px, 38%, 124px);
  height: auto;
  object-fit: cover;
  object-position: center;
}


.hero-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: .5rem;
  text-align: center;
}

.hero-card-body h6 {
  margin: 0;
  font-size: clamp(.76rem, .9vw, .95rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 1399px) and (min-width: 992px) {
  .hero-cards-left {
    width: clamp(170px, 18.5vw, 230px);
    gap: 10px;
  }

  .hero-card-item {
    min-height: 74px;
  }

  .hero-card-item img {
    width: clamp(66px, 34%, 94px);
  }

  .hero-card-body {
    padding: .4rem;
  }

  .hero-card-body h6 {
    font-size: clamp(.72rem, .75vw, .84rem);
    line-height: 1.15;
  }

  .hero-quick-tour-banner {
    width: clamp(170px, 18.5vw, 230px);
    padding: 0.7rem 0.75rem;
  }

  .hero-quick-tour-title {
    font-size: 0.9rem;
  }

  .hero-quick-tour-sub {
    font-size: 0.68rem;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .hero-cards-left {
    width: 172px;
    gap: 8px;
  }

  .hero-card-item {
    min-height: 68px;
  }

  .hero-card-item img {
    width: 62px;
  }

  .hero-card-body h6 {
    font-size: .7rem;
  }

  .hero-login {
    width: clamp(248px, 25%, 300px);
  }

  .hero-quick-tour-banner {
    width: 172px;
    padding: 0.65rem 0.7rem;
  }

  .hero-quick-tour-title {
    font-size: 0.82rem;
  }

  .hero-quick-tour-sub {
    display: none;
  }
}

/* Düşük yükseklikli desktop: önce ölçekle, mümkünse görünür bırak */
@media (min-width: 992px) and (max-height: 900px) {
  .hero-section {
    height: clamp(430px, 70vh, 660px);
    min-height: 430px;
  }

  .hero-cards-left {
    top: 0.9rem;
    left: 0.9rem;
    width: clamp(160px, 17vw, 218px);
    gap: 8px;
  }

  .hero-card-item {
    min-height: 64px;
  }

  .hero-card-item img {
    width: clamp(54px, 33%, 80px);
  }

  .hero-card-body {
    padding: .35rem;
  }

  .hero-card-body h6 {
    font-size: .68rem;
    line-height: 1.1;
  }

  .hero-login {
    top: 0.9rem;
    right: 0.9rem;
    width: clamp(246px, 23vw, 296px);
    padding: 0.48rem;
  }

  .hero-upcoming-services {
    right: 0.9rem;
    bottom: 0.85rem;
    width: clamp(226px, 20vw, 282px);
  }

  .hero-quick-tour-banner {
    left: 0.9rem;
    bottom: 0.85rem;
    width: clamp(156px, 16vw, 214px);
    min-height: 88px;
    padding: .62rem .65rem;
  }

  .hero-quick-tour-title {
    font-size: .78rem;
  }

  .hero-quick-tour-sub {
    font-size: .64rem;
    line-height: 1.2;
  }
}

/* 1280x720 sınıfı ekranlar: hero alt kartları kesilmesin */
@media (min-width: 1200px) and (max-width: 1366px) and (max-height: 760px) {
  .hero-section {
    height: clamp(500px, 78vh, 700px);
    min-height: 500px;
  }

  .hero-cards-left {
    width: 166px;
    gap: 7px;
  }

  .hero-card-item {
    min-height: 62px;
  }

  .hero-card-item img {
    width: 54px;
  }

  .hero-quick-tour-banner {
    width: 166px;
    min-height: 84px;
    padding: .56rem .6rem;
  }

  .hero-upcoming-services {
    width: 248px;
  }

  .hero-poster img,
  .hero-video {
    object-position: center 54%;
  }
}

/* Çok kısa viewport: ikincil kartlar kapanır, sol promo kartları mümkün olduğunca kalır */
@media (min-width: 992px) and (max-height: 620px) {
  .hero-upcoming-services,
  .hero-quick-tour-banner {
    display: none !important;
  }

  .hero-cards-left {
    top: .7rem;
    left: .7rem;
    width: 152px;
    gap: 6px;
  }

  .hero-card-item {
    min-height: 58px;
  }

  .hero-card-item img {
    width: 50px;
  }

  .hero-card-body h6 {
    font-size: .62rem;
    line-height: 1.05;
  }
}

/* Glow */
.hero-card-item.card-glow::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  filter: blur(14px);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.hero-card-item.card-glow:hover::before {
  opacity: 1;
}


/* =========================================================
   HERO LOGIN BOX
========================================================= */



.hero-login {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: clamp(260px, 24%, 320px);
  padding: 0.55rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0,0,0,.25);
  z-index: 8;
  transition: all .35s ease;
  transform: none;
  pointer-events: auto;
}

.hero-upcoming-services {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  width: clamp(260px, 24%, 320px);
  z-index: 8;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.28);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #eef4ff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hero-upcoming-services:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow:
    0 22px 42px rgba(15, 23, 42, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-upcoming-services.is-collision-hidden {
  display: none !important;
}

.hero-upcoming-ribbon {
  position: absolute;
  top: 12px;
  right: -36px;
  width: 130px;
  text-align: center;
  transform: rotate(38deg);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.35rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.hero-upcoming-ribbon-link,
.hero-upcoming-ribbon-link:hover,
.hero-upcoming-ribbon-link:focus,
.hero-upcoming-ribbon-link:active,
.hero-upcoming-ribbon-link:visited {
  color: #fff;
  text-decoration: none;
}

.hero-upcoming-body {
  padding: 0.85rem 0.85rem 0.8rem;
}

.hero-upcoming-title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  color: #f8fbff;
}

.hero-upcoming-sub {
  font-size: 0.77rem;
  line-height: 1.3;
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 0.55rem;
  padding-right: 2.2rem;
}

.hero-upcoming-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hero-upcoming-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #eaf2ff;
  background: rgba(59, 130, 246, 0.17);
  border: 1px solid rgba(191, 219, 254, 0.2);
}

.hero-upcoming-tag:hover,
.hero-upcoming-tag:focus {
  color: #ffffff;
  border-color: rgba(147, 197, 253, 0.42);
  background: rgba(59, 130, 246, 0.26);
}

.hero-quick-modal {
  border: 1px solid rgba(147, 197, 253, 0.26);
  border-radius: 1rem;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(59, 130, 246, 0.14), transparent 48%),
    radial-gradient(120% 140% at 100% 100%, rgba(14, 165, 233, 0.12), transparent 44%),
    #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.hero-quick-modal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.5);
  border: 1px solid rgba(147, 197, 253, 0.35);
  margin-bottom: 0.35rem;
}

.hero-quick-modal-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.9rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.hero-quick-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-quick-modal-pill {
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(203, 213, 225, 0.7);
  color: #0f172a;
}

@media (max-width: 767px) {
  .hero-quick-modal-grid {
    grid-template-columns: 1fr;
  }
}





/* =========================================================
   CATEGORY GRID (HERO ALT)
========================================================= */

.hero-categories-grid {
  position: relative;
  margin-top: 0;
  padding-top: 0;
  padding-inline: .25rem;
  z-index: 2;
}

.hero-categories-grid .card {
  background: #fff;
  border: 2px solid rgba(255,255,255,.85);
  transform: scale(1.04);
}


/* =========================================================
   CATEGORY IMAGE HANDLING
========================================================= */

.card-img-square {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.card-img-square img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #f9f9f9;
  border-radius: 4px;
}

[data-theme="dark"] .card-img-square img {
  background: #1e1e1e;
}


/* =========================================================
   RESPONSIVE CATEGORY GRID
========================================================= */

@media (max-width: 1599px) {
  .hero-categories-grid .col-lg-2 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 1199px) {
  .hero-categories-grid .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 991px) {
  .hero-categories-grid .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}



/* =========================================================
   HERO INTERACTION LOCK — CRITICAL
========================================================= */

/* Video oynarken alt içerik tıklanamaz */
.hero-media.is-playing ~ .hero-categories-grid {
  pointer-events: none;
}


/* Pause her şeyin üstünde */
.hero-pause-btn {
  z-index: 99999;
  pointer-events: auto;
}

/* =========================================================
   HERO LOGIN — TABLET & MOBILE MODE
========================================================= */

@media (max-width: 991px) {

  /* Sol promo kartlar kapanır */
  .hero-cards-left {
    display: none !important;
  }

  /* Login hero ortasına gelir */
  .hero-login {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(92%, 420px);
    padding: 1.5rem;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .hero-upcoming-services {
    display: none;
  }

  .hero-quick-tour-banner {
    display: none;
  }
}

/* Dikey tablet: sadece login kartı kalsın */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .hero-cards-left,
  .hero-upcoming-services,
  .hero-quick-tour-banner {
    display: none !important;
  }

  .hero-login {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(92%, 420px);
    padding: 1.25rem;
  }
}

/* Küçük yatay tablet / yüksek zoom: promo kartlar erken gizlensin */
@media (min-width: 992px) and (max-width: 1260px) {
  .hero-cards-left {
    width: 164px;
  }

  .hero-card-item img {
    width: 58px;
  }

  .hero-card-body h6 {
    font-size: .69rem;
  }

  .hero-quick-tour-banner {
    width: 164px;
    padding: 0.6rem 0.65rem;
  }

  .hero-quick-tour-title {
    font-size: .78rem;
  }

  .hero-quick-tour-sub {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-login {
    width: 94%;
    padding: 1.75rem 1.25rem;
    border-radius: 1.25rem;
  }
}

/* =========================================================
   HERO LOGIN — FORM POLISH
========================================================= */

.hero-login .form-control {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
}

.hero-login .btn-primary {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  border: none;
}

.hero-login .js-login-form {
  padding: 0.62rem 0.72rem !important;
  border-radius: 0.75rem !important;
}

.hero-login .js-login-form .mb-2 {
  margin-bottom: 0.35rem !important;
}

.hero-login .js-login-form .d-flex.small {
  margin-top: 0.05rem;
}

.hero-login .js-login-form .btn {
  padding-top: 0.44rem;
  padding-bottom: 0.44rem;
}

.hero-login .js-login-form .form-control {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.hero-login .login-links {
  align-items: center;
  gap: 0.6rem;
}

.hero-login .login-links a {
  white-space: nowrap;
}

.home-categories-section {
  position: relative;
  margin-top: 1rem;
}

/* =========================================================
   HOME PREMIUM LAYER (layout korunur, görünüm yükselir)
========================================================= */

.fn-home-hero {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 36px 70px rgba(2, 6, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  margin-top: 0.35rem;
}

.fn-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 220px at 14% 0%, rgba(255, 215, 0, 0.16), transparent 62%),
    radial-gradient(540px 260px at 86% 100%, rgba(78, 140, 255, 0.16), transparent 64%);
  z-index: 2;
}

.fn-home-hero .hero-overlay {
  background: linear-gradient(120deg, rgba(3, 7, 18, 0.7), rgba(3, 7, 18, 0.48));
}

.fn-home-hero .hero-media.is-playing ~ .hero-overlay {
  background: linear-gradient(120deg, rgba(3, 7, 18, 0.56), rgba(3, 7, 18, 0.32));
}

.fn-home-hero .fn-hero-promo-card {
  border: 1px solid rgba(120, 184, 255, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(10, 24, 49, 0.78), rgba(13, 35, 66, 0.68));
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.26),
    inset 0 1px 0 rgba(191, 219, 254, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.fn-home-hero .fn-hero-promo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow:
    0 16px 28px rgba(15, 23, 42, 0.22),
    0 10px 20px rgba(37, 99, 235, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.fn-home-hero .fn-hero-promo-card .hero-card-body h6 {
  font-weight: 800;
  color: #dbeafe;
}

.fn-home-hero .fn-hero-login {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(15, 23, 42, 0.24);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.fn-home-hero .fn-hero-login .js-login-form {
  background: rgba(15, 23, 42, 0.28) !important;
  border: 1px solid rgba(191, 219, 254, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fn-home-hero .fn-hero-login .js-login-form .form-control {
  background: rgba(15, 23, 42, 0.35);
  color: #f8fafc;
  border-color: rgba(191, 219, 254, 0.26);
}

.fn-home-hero .fn-hero-login .js-login-form .form-control::placeholder {
  color: rgba(226, 232, 240, 0.84);
}

.fn-home-hero .fn-hero-login .js-login-form .form-check-label,
.fn-home-hero .fn-hero-login .js-login-form .d-flex.small a {
  color: #e5edff !important;
}

.fn-home-hero .fn-hero-login .hero-google-note {
  color: #dbeafe !important;
  font-weight: 500;
}

.fn-home-hero .fn-hero-login .js-login-form .btn-outline-dark {
  color: #e5e7eb;
  border-color: rgba(191, 219, 254, 0.4);
  background: rgba(15, 23, 42, 0.36);
}

.fn-home-hero .fn-hero-login .js-login-form .btn-outline-dark:hover {
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.72);
  background: rgba(15, 23, 42, 0.58);
}

.fn-home-hero .fn-hero-login .google-brand-icon {
  background: linear-gradient(45deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.fn-home-hero .fn-hero-login .hero-google-note-tip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(191, 219, 254, 0.5);
  background: rgba(15, 23, 42, 0.34);
  color: #dbeafe;
  cursor: help;
}

.fn-home-categories .hero-category-card {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.84));
  box-shadow:
    0 20px 42px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.fn-home-categories .hero-category-card .card-img-square {
  padding-top: 0;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border-radius: 18px 18px 0 0;
}

.fn-home-categories .hero-category-card .card-img-square img {
  object-fit: cover !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.fn-home-categories .hero-category-card .card-body {
  padding: 0.7rem 0.75rem 0.65rem !important;
}

.fn-home-categories .hero-category-card .card-body p {
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.fn-home-categories .card-glow-wrapper:hover .hero-category-card {
  transform: translateY(-3px);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.16),
    0 12px 22px rgba(37, 99, 235, 0.1),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.fn-home-hero .fn-hero-promo-card.card-glow::before {
  background: linear-gradient(45deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.05));
  filter: blur(10px);
}

.fn-home-hero .fn-hero-promo-card.card-glow:hover::before {
  opacity: 0.2;
}

.fn-home-categories .card-glow-wrapper::before {
  background: linear-gradient(45deg, rgba(15, 23, 42, 0.14), rgba(30, 64, 175, 0.08));
  filter: blur(10px);
}

.fn-home-categories .card-glow-wrapper:hover::before {
  opacity: 0.26;
}

.fn-home-categories .hero-category-card .card-body h6 {
  color: #111827;
  font-weight: 800;
}

.fn-home-categories .hero-category-card .btn-success {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(145deg, #1d4ed8, #3b82f6);
  padding-block: 0.42rem;
}

.howto-divider {
  height: 0;
  margin: 3.6rem auto 1.8rem;
  max-width: 1240px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.fn-home-howto-banner {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.fn-home-howto-banner::before {
  background: linear-gradient(130deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.32));
}

.fn-home-howto-banner .howto-title {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  letter-spacing: 0.015em;
  text-transform: none;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.fn-home-howto-tabs {
  max-width: 1240px;
  margin: -0.4rem auto 0;
  border-radius: 0 0 22px 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-top: 0;
  background:
    radial-gradient(780px 260px at 6% 0%, rgba(78, 140, 255, 0.08), transparent 60%),
    radial-gradient(760px 240px at 94% 100%, rgba(255, 215, 0, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.fn-home-howto-tabs .container.py-4 {
  padding-top: 1.15rem !important;
  padding-bottom: 1.35rem !important;
}

.fn-home-howto-tabs .nav.nav-pills .nav-link {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #1f2937;
  font-weight: 700;
  text-transform: none;
}

.fn-home-howto-tabs .nav.nav-pills .nav-link.active {
  color: #fff;
  border-color: rgba(78, 140, 255, 0.56);
  background: linear-gradient(145deg, #2563eb, #4f46e5);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
}

[data-theme="dark"] .fn-home-hero {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 36px 78px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .fn-home-hero .fn-hero-promo-card {
  border-color: rgba(147, 197, 253, 0.32);
  background: linear-gradient(145deg, rgba(12, 23, 43, 0.85), rgba(17, 24, 39, 0.8));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .fn-home-hero .fn-hero-promo-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.5),
    0 14px 26px rgba(96, 165, 250, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .fn-home-hero .fn-hero-promo-card .hero-card-body h6 {
  color: #f3f4f6;
}

[data-theme="dark"] .fn-home-hero .fn-hero-login {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(17, 24, 39, 0.46);
  box-shadow: 0 32px 62px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .fn-home-hero .fn-hero-login .js-login-form {
  background: rgba(2, 6, 23, 0.56) !important;
  border-color: rgba(191, 219, 254, 0.22);
}

[data-theme="dark"] .fn-home-hero .fn-hero-login .js-login-form .form-check-label,
[data-theme="dark"] .fn-home-hero .fn-hero-login .js-login-form .d-flex.small a {
  color: #e5edff !important;
}

[data-theme="dark"] .fn-home-hero .fn-hero-login .js-login-form .btn-outline-dark {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.52);
  background: rgba(15, 23, 42, 0.66);
}

[data-theme="dark"] .fn-home-hero .fn-hero-login .js-login-form .btn-outline-dark:hover {
  color: #f8fafc;
  border-color: rgba(125, 211, 252, 0.72);
  background: rgba(15, 23, 42, 0.86);
}

[data-theme="dark"] .fn-home-hero .fn-hero-login .hero-google-note {
  color: #bfdbfe !important;
}

[data-theme="dark"] .fn-home-hero .fn-hero-login .hero-google-note-tip {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(30, 41, 59, 0.58);
  color: #dbeafe;
}

[data-theme="dark"] .hero-upcoming-services {
  border-color: rgba(191, 219, 254, 0.2);
  background: rgba(2, 6, 23, 0.42);
}

[data-theme="dark"] .hero-upcoming-tag {
  background: rgba(30, 58, 138, 0.28);
  border-color: rgba(147, 197, 253, 0.22);
}

[data-theme="dark"] .fn-home-categories .hero-category-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(17, 24, 39, 0.84);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.44);
}

[data-theme="dark"] .fn-home-categories .card-glow-wrapper:hover .hero-category-card {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.48),
    0 16px 28px rgba(96, 165, 250, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .fn-home-categories .hero-category-card .card-body h6 {
  color: #f3f4f6;
}

[data-theme="dark"] .howto-divider {
  border-top-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .fn-home-howto-tabs {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(760px 260px at 12% 0%, rgba(78, 140, 255, 0.2), transparent 58%),
    radial-gradient(760px 240px at 88% 100%, rgba(255, 215, 0, 0.16), transparent 62%),
    rgba(17, 24, 39, 0.7);
}

[data-theme="dark"] .fn-home-howto-tabs .nav.nav-pills .nav-link {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #e5e7eb;
}

@media (max-width: 991px) {
  .fn-home-hero {
    border-radius: 18px;
  }

  .fn-home-howto-banner,
  .fn-home-howto-tabs {
    border-radius: 16px;
  }

  .fn-home-howto-tabs {
    margin-top: 0.6rem;
  }

  .hero-categories-grid {
    margin-top: 0;
    padding-top: 0;
  }
}
