/* ============================================================
   BAŞKENT SPOR — GLOBAL STYLES
   main.css | Poppins + Inter | CSS Variables | Typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   :ROOT — DESIGN TOKENS (project_details.xml)
   ============================================================ */
:root {
  /* Color Palette — Kurumsal Bilgi Formu */
  --red:             #D2292A;
  --navy:            #3D5987;
  --black:           #111111;
  --dark-gray:       #2B2B2B;
  --mid-gray:        #6B7280;
  --light-gray:      #D1D5DB;
  --very-light-gray: #E5E7EB;
  --bg-gray:         #F3F4F6;
  --white:           #FFFFFF;

  /* Typography */
  --font-primary:   'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Spacing — 8px grid */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* Design */
  --border-radius: 2px;
  --border:        1px solid var(--dark-gray);
  --transition:    0.25s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);

  /* Layout */
  --navbar-height: 72px;
  --container-max: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-gray);
  color: var(--black);
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageFadeIn 0.4s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

img   { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
address { font-style: normal; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--red); }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.875rem); }
h4 { font-size: clamp(1rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.section         { padding: var(--sp-10) 0; }
.section--gray   { background-color: var(--very-light-gray); }
.section--white  { background-color: var(--white); }
.section--navy   { background-color: var(--navy); }

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

.section__title {
  font-family: var(--font-primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: var(--sp-1);
}
.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--red);
  margin-top: 6px;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: transparent; color: var(--red); }

.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: transparent; color: var(--navy); }

.btn--outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--navy); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-red    { color: var(--red) !important; }
.text-navy   { color: var(--navy) !important; }
.text-white  { color: var(--white) !important; }
.text-center { text-align: center; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }

/* ============================================================
   PAGE HERO BANNER (shared across inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0f1a2e 60%, var(--black) 100%);
  padding: var(--sp-8) 0 var(--sp-6);
  position: relative;
  overflow: hidden;
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 6px;
}
.page-hero__breadcrumb {
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.page-hero__breadcrumb a:hover { color: var(--red); }
.page-hero__breadcrumb span { color: var(--red); }
.page-hero__shape {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero__shape--1 { width: 180px; height: 180px; top: -50px; right: -30px; }
.page-hero__shape--2 { width: 80px; height: 80px; bottom: -20px; left: 10%; border-color: rgba(227,30,36,0.1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --navbar-height: 64px; }
  .section { padding: var(--sp-8) 0; }
  .container { padding: 0 var(--sp-2); }
  .page-hero { padding: var(--sp-6) 0 var(--sp-4); }
}
