/* ============================================================
   BAŞKENT SPOR — ANASAYFA PAGE STYLES
   anasayfa.css | Hero | Alanlarımız | Kalite | Ortaklar
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(210,41,42,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(61,89,135,0.25) 0%, transparent 55%),
    linear-gradient(155deg, #1a2540 0%, #0d1526 40%, #060b14 100%);
  overflow: hidden;
  padding: var(--sp-8) var(--sp-3);
}

/* ---- Geometric Decorations ---- */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.hero__shape {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
}

/* Ring (circle) */
.hero__shape--ring {
  border-radius: 50%;
  background: transparent;
}

/* Diamond (rotated square) */
.hero__shape--diamond { transform: rotate(45deg); }

/* Specific placements */
.hero__shape--1 {
  width: 220px; height: 220px;
  top: -40px; left: -50px;
  border-color: rgba(255,255,255,0.05);
  animation: heroFloat 8s ease-in-out infinite;
}
.hero__shape--2 {
  width: 140px; height: 140px;
  top: 15%; right: 8%;
  border-color: rgba(227,30,36,0.12);
  animation: heroFloat 6s ease-in-out infinite 1s;
}
.hero__shape--3 {
  width: 80px; height: 80px;
  bottom: 18%; left: 10%;
  border-color: rgba(255,255,255,0.08);
  animation: heroFloat 7s ease-in-out infinite 0.5s;
}
.hero__shape--4 {
  width: 180px; height: 180px;
  bottom: -30px; right: -30px;
  border-color: rgba(255,255,255,0.04);
  animation: heroFloat 9s ease-in-out infinite 2s;
}
.hero__shape--5 {
  width: 60px; height: 60px;
  top: 40%; left: 5%;
  border-color: rgba(227,30,36,0.08);
  animation: heroFloat 5s ease-in-out infinite 1.5s;
}
.hero__shape--6 {
  width: 100px; height: 100px;
  top: 10%; left: 35%;
  border-color: rgba(255,255,255,0.06);
  animation: heroFloat 10s ease-in-out infinite 0.8s;
}
.hero__shape--7 {
  width: 50px; height: 50px;
  bottom: 25%; right: 20%;
  border-color: rgba(255,255,255,0.09);
  animation: heroFloat 6.5s ease-in-out infinite 2.5s;
}
.hero__shape--8 {
  width: 160px; height: 160px;
  bottom: 5%; left: 40%;
  border-color: rgba(227,30,36,0.06);
  animation: heroFloat 11s ease-in-out infinite 1.2s;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(var(--base-rotation, 0deg)); }
  25%      { transform: translate(8px, -12px) rotate(var(--base-rotation, 0deg)); }
  50%      { transform: translate(-6px, 8px) rotate(var(--base-rotation, 0deg)); }
  75%      { transform: translate(10px, 6px) rotate(var(--base-rotation, 0deg)); }
}

.hero__shape--diamond { --base-rotation: 45deg; }

/* ---- Hero Content ---- */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(227,30,36,0.35);
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-4);
  backdrop-filter: blur(4px);
  background: rgba(227,30,36,0.06);
}
.hero__badge i { font-size: 0.6rem; }

.hero__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.hero__title-accent { color: var(--red); }

.hero__desc {
  font-family: var(--font-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  margin: 0 auto var(--sp-5);
}

.hero__cta { margin-top: var(--sp-2); }

/* Thin decorative line under hero */
.hero__divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
}

/* Animated subtle grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Diagonal red accent bar */
.hero__accent-bar {
  position: absolute;
  top: 0; right: -60px;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--red) 30%, rgba(210,41,42,0.4) 70%, transparent 100%);
  transform: skewX(-8deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ============================================================
   BAŞLICA ALANLARIMIZ (Areas Carousel)
   ============================================================ */
.areas {
  padding: var(--sp-10) 0;
  background: var(--white);
}

.areas__header {
  margin-bottom: var(--sp-5);
}

.areas__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  position: relative;
  display: inline-block;
}
.areas__title::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  background: var(--red);
  margin-top: 8px;
}

.areas__subtitle {
  font-family: var(--font-secondary);
  color: var(--mid-gray);
  font-size: 0.95rem;
  margin-top: var(--sp-1);
}

/* Area Cards */
.area-card {
  background: var(--very-light-gray);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  min-width: 220px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.area-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.area-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-2);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--light-gray);
  color: var(--navy);
  font-size: 1.5rem;
  transition: all var(--transition);
}
.area-card:hover .area-card__icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.area-card__title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.area-card__desc {
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

/* ============================================================
   ÖNCELİĞİMİZ KALİTE
   ============================================================ */
.quality {
  padding: var(--sp-10) 0;
  background: var(--very-light-gray);
}

.quality__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.quality__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  position: relative;
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.quality__title::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  background: var(--red);
  margin-top: 8px;
}

.quality__desc {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

/* Quality list items */
.quality__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quality__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: all var(--transition);
}
.quality__item:hover {
  border-color: var(--red);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.quality__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(227,30,36,0.08);
  color: var(--red);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.quality__item-text {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* Quality visual card */
.quality__visual {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.quality__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy) 0%, #2a4068 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
}
.quality__image i { font-size: 2.5rem; color: rgba(255,255,255,0.3); }

.quality__visual-caption {
  padding: 14px 18px;
  background: var(--white);
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  color: var(--dark-gray);
  line-height: 1.5;
}

/* ============================================================
   ORTAKLARIMIZ (Partners Infinite Slider)
   ============================================================ */
.partners {
  padding: var(--sp-10) 0;
  background: var(--white);
  overflow: hidden;
}

.partners__header {
  text-align: center;
  margin-bottom: var(--sp-5);
}

.partners__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  position: relative;
  display: inline-block;
}
.partners__title::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  background: var(--red);
  margin: 8px auto 0;
}

.partners__subtitle {
  font-family: var(--font-secondary);
  color: var(--mid-gray);
  font-size: 0.95rem;
  margin-top: var(--sp-1);
}

/* Slider track */
.partners__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partners__track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  animation: partnersScroll 30s linear infinite;
}

.partners__track:hover { animation-play-state: paused; }

@keyframes partnersScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Partner card */
.partner-card {
  flex-shrink: 0;
  width: 180px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  transition: all var(--transition);
}
.partner-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.partner-card__logo {
  width: 100%;
  height: 72px;
  background: #ffffff;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 8px;
}

.partner-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-card__name {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--dark-gray);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .quality__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}

@media (max-width: 768px) {
  .hero { min-height: 75vh; padding: var(--sp-6) var(--sp-2); }

  .hero__shape--1 { width: 120px; height: 120px; }
  .hero__shape--2 { width: 80px; height: 80px; }
  .hero__shape--4 { width: 100px; height: 100px; }
  .hero__shape--6,
  .hero__shape--8 { display: none; }

  .quality__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .quality__visual { order: -1; }

  .partner-card { width: 150px; }
}

@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .hero__badge { font-size: 0.65rem; padding: 5px 12px; }
  .area-card { min-width: 200px; padding: var(--sp-3) var(--sp-2); }
}
