/* ============================================================
   FILE: assets/css/main.css
   Global stiller, CSS değişkenleri, reset, typography, grid
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Renkler */
  --clr-primary:    #CC0000;
  --clr-primary-dk: #990000;
  --clr-dark:       #2c2c2c;
  --clr-dark-2:     #141414;
  --clr-dark-3:     #1E1E1E;
  --clr-gray-1:     #9B9B9B;
  --clr-gray-2:     #C4C4C4;
  --clr-white:      #FFFFFF;

  /* Kısayollar (header.php içindeki var isimleriyle uyumlu) */
  --clr-red:   #CC0000;
  --clr-dark:  #0A0A0A;
  --clr-dark2: #141414;
  --clr-dark3: #1E1E1E;
  --clr-gray:  #9B9B9B;
  --clr-gray2: #C4C4C4;
  --clr-white: #FFFFFF;

  /* Tipografi */
  --ff-main:      'Montserrat', sans-serif;
  --ff-body:      'Open Sans', sans-serif;
  --ff-ar:        'Cairo', sans-serif;
  --fs-xs:        11px;
  --fs-sm:        13px;
  --fs-base:      15px;
  --fs-md:        18px;
  --fs-lg:        22px;
  --fs-xl:        28px;
  --fs-2xl:       36px;
  --fs-3xl:       48px;
  --fs-hero:      clamp(32px, 5vw, 72px);

  /* Spacing */
  --section-gap:  96px;
  --container-w:  1280px;
  --gap:          24px;

  /* Geçiş */
  --trans:        0.35s cubic-bezier(.4, 0, .2, 1);
  --trans-slow:   0.6s cubic-bezier(.4, 0, .2, 1);

  /* Border radius */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,.3);
  --shadow-md:    0 8px 32px rgba(0,0,0,.4);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.5);
  --shadow-red:   0 8px 32px rgba(204,0,0,.25);

  /* Header */
  --hdr-h:        70px;
  --topbar-h:     38px;
  --hdr-total:    108px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background-color: #2c2c2c;
  color: var(--clr-gray-2);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.lang-ar {
  font-family: var(--ff-ar);
  direction: rtl;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-main);
  color: var(--clr-white);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 38px); font-weight: 800; }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: clamp(15px, 2vw, 20px); }
p  { color: var(--clr-gray-1); line-height: 1.8; }

/* ── SECTION COMMONS ───────────────────────────────────────── */
.section { padding: var(--section-gap) 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-red);
  background: rgba(204, 0, 0, .1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--ff-main);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-title .red { color: var(--clr-red); }
.section-sub {
  color: var(--clr-gray-1);
  font-size: var(--fs-base);
  line-height: 1.75;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-red);
  color: var(--clr-white);
  font-family: var(--ff-main);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.btn-primary:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--clr-red);
  color: var(--clr-red);
  font-family: var(--ff-main);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: transparent;
  transition: background var(--trans), color var(--trans);
}
.btn-outline:hover {
  background: var(--clr-red);
  color: var(--clr-white);
}

.btn-lg { padding: 16px 36px !important; font-size: 14px !important; }
.btn-sm { padding: 9px 18px !important; font-size: 12px !important; }

/* ── PAGE HERO ─────────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin-top: var(--hdr-total);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,1) 0%,
    rgba(10,10,10,.65) 60%,
    rgba(10,10,10,.3) 100%
  );
}
.page-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 44px;
}
.page-hero-content { max-width: 640px; margin-bottom: 24px; }
.page-hero-title {
  font-family: var(--ff-main);
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.2;
  margin: 12px 0;
}
.page-hero-sub { color: var(--clr-gray-2); font-size: 15px; }

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--clr-gray-1);
}
.breadcrumb a {
  color: var(--clr-gray-1);
  text-decoration: none;
  transition: color var(--trans);
}
.breadcrumb a:hover { color: var(--clr-red); }
.breadcrumb i { font-size: 10px; color: #444; }
.breadcrumb span { color: var(--clr-red); font-weight: 600; }

/* ── CTA BAND ──────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #110000 0%, var(--clr-dark-2) 100%);
  border-top: 1px solid rgba(204,0,0,.2);
  padding: 80px 0;
}
.cta-content { text-align: center; }
.cta-content h2 {
  font-family: var(--ff-main);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 12px;
}
.cta-content p { color: var(--clr-gray-1); margin-bottom: 32px; }

/* ── DIVIDERS ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--clr-dark-3);
  margin: 0;
}

/* ── UTILITY ───────────────────────────────────────────────── */
.text-red   { color: var(--clr-red) !important; }
.text-white { color: var(--clr-white) !important; }
.text-gray  { color: var(--clr-gray-1) !important; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-none  { display: none; }
.w-full  { width: 100%; }
.mt-auto { margin-top: auto; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1280px) { .container { padding: 0 20px; } }
@media (max-width: 768px)  { :root { --section-gap: 64px; } }
@media (max-width: 480px)  { :root { --section-gap: 48px; } .container { padding: 0 16px; } }