/* =============================================
   SYSTEM.CSS — the-system.html Specific Styles
   Inherits root scale (16px) from base.css
   ============================================= */

/* =============================================
   SYSTEM HERO
   ============================================= */
.system-hero {
  background-color: var(--brand-navy);
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(201, 166, 70, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(to right, rgba(15, 34, 64, 0.9), rgba(15, 34, 64, 0.6));
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

[data-theme="dark"] .system-hero {
  background-color: var(--brand-navy);
}

/* Gold Overline Label */
.system-hero .section-overline-master {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--body-font);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: none;
}

.system-hero .section-overline-master::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background-color: var(--accent-gold);
}

/* Massive H1 */
.system-hero h1 {
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* Hero Subtitle */
.system-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  max-width: 40rem;
  line-height: 1.8;
}

/* Hero Content — above watermark */
.system-hero .container {
  position: relative;
  z-index: 2;
}

/* =============================================
   HERO SEAL WATERMARK — Methodology Match
   Matches the-system.html: right side,
   half-offscreen, 800px width, opacity 0.05
   ============================================= */
.system-hero .system-hero-watermark {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  /* 800px / 16 = 50rem */
  width: 50rem;
  pointer-events: none;
  z-index: 1;
}

.system-hero .system-hero-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.07;
  filter: brightness(0) invert(1) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
  transform: rotate(-5deg);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.system-hero .system-hero-watermark:hover img {
  opacity: 0.12;
  transform: rotate(0deg) scale(1.02);
}

.system-hero .container {
  position: relative;
  z-index: 2;
}

/* =============================================
   THE THREE PILLARS SECTION
   ============================================= */
.pillars-section {
  /* Inherit 160px 10% from base section rule */
  background-color: var(--bg-color);
  transition: background-color 0.4s ease;
  position: relative; /* Anchor for watermark */
  overflow: hidden; /* Prevent watermark overflow */
}

/* Watermark Tree — Matching index.html aesthetics */
.watermark-tree-pillars {
  position: absolute;
  right: -12%;
  bottom: 0%;
  height: 79%;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    filter 0.4s ease;
}

[data-theme="dark"] .watermark-tree-pillars {
  opacity: 0.05;
  filter: invert(1) brightness(2);
}

.pillars-section h2 {
  margin-bottom: 0;
}

/* Gold Diamond Divider (under section title) */
/* 300px / 16 ≈ 15.789rem */
.pillars-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 4rem;
  max-width: 15.789rem;
}

.pillars-divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.4;
}

/* 10px / 16 ≈ 0.526rem */
.pillars-divider-diamond {
  width: 0.526rem;
  height: 0.526rem;
  background-color: var(--accent-gold);
  transform: rotate(45deg);
  margin: 0 1rem;
  opacity: 0.7;
}

/* 3-Column Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* Individual Pillar Card */
.pillar-card {
  position: relative;
  z-index: 2; /* Ensures cards are above the watermark */
  padding: 3rem 2.5rem;
  border: 1px solid transparent;
  background-color: var(--card-bg);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.3s ease,
    background-color 0.4s ease;
  overflow: hidden;
}

.pillar-card:hover {
  border-color: rgba(201, 166, 70, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

[data-theme="dark"] .pillar-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Large Semi-Transparent Gold Number */
.pillar-number {
  position: absolute;
  /* -10px / 16 ≈ -0.526rem */
  top: -0.526rem;
  /* 15px / 16 ≈ 0.789rem */
  right: 0.789rem;
  font-family: var(--heading-font);
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.pillar-card:hover .pillar-number {
  opacity: 0.14;
}

/* Pillar Title */
.pillar-title {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Gold Accent Line */
/* 40px / 16 ≈ 2.105rem */
.pillar-accent-line {
  width: 2.105rem;
  height: 2px;
  background-color: var(--accent-gold);
  margin-bottom: 1.5rem;
  transition: width 0.4s ease;
}

/* 70px / 16 ≈ 3.684rem */
.pillar-card:hover .pillar-accent-line {
  width: 3.684rem;
}

/* Description */
.pillar-description {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Bullet Points */
.pillar-points {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.pillar-points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.pillar-points li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-size: 0.55rem;
  line-height: 1.8;
}

/* =============================================
   FRAMEWORK DIAGRAM — Clean White Paper
   ============================================= */
.framework-section {
  background-color: var(
    --bg-color
  ); /* O sarımtırak ton gitti, saf beyaz geldi */
  transition: background-color 0.4s ease;
}

[data-theme="dark"] .framework-section {
  background-color: var(--bg-color);
}

.framework-section .section-overline-master {
  color: #c9a646;
  border-bottom-color: rgba(201, 166, 70, 0.4);
}

.framework-section h2 {
  color: var(--brand-navy);
}

[data-theme="dark"] .framework-section h2 {
  color: #ffffff;
}

/* Diagram Container */
.fw-diagram {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Tier Block */
.fw-tier {
  width: 100%;
  border: 1px solid rgba(15, 34, 64, 0.15);
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(15, 34, 64, 0.02);
  transition:
    border-color 0.4s ease,
    background 0.4s ease;
}

.fw-tier:hover {
  border-color: rgba(201, 166, 70, 0.5);
  background: rgba(201, 166, 70, 0.04);
}

[data-theme="dark"] .fw-tier {
  border-color: rgba(201, 166, 70, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .fw-tier:hover {
  border-color: rgba(201, 166, 70, 0.45);
  background: rgba(201, 166, 70, 0.05);
}

/* Engine Tier — Emphasis */
.fw-tier-engine {
  border-color: rgba(201, 166, 70, 0.35);
  background: rgba(201, 166, 70, 0.06);
}

.fw-tier-engine:hover {
  border-color: #c9a646;
  background: rgba(201, 166, 70, 0.1);
}

[data-theme="dark"] .fw-tier-engine {
  border-color: rgba(201, 166, 70, 0.4);
  background: rgba(201, 166, 70, 0.05);
}

[data-theme="dark"] .fw-tier-engine:hover {
  border-color: #c9a646;
  background: rgba(201, 166, 70, 0.08);
}

/* Tier Label */
.fw-tier-label {
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #c9a646;
  margin-bottom: 1.5rem;
}

/* Tier Items Grid */
.fw-tier-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Individual Item */
.fw-item {
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
  letter-spacing: 0.5px;
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(15, 34, 64, 0.12);
  background: rgba(255, 255, 255, 0.5);
  transition:
    border-color 0.3s ease,
    color 0.3s ease,
    background 0.3s ease;
}

.fw-item:hover {
  border-color: rgba(201, 166, 70, 0.5);
  background: rgba(201, 166, 70, 0.08);
  color: var(--brand-navy);
}

[data-theme="dark"] .fw-item {
  color: rgba(244, 241, 232, 0.9);
  border-color: rgba(201, 166, 70, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .fw-item:hover {
  border-color: rgba(201, 166, 70, 0.35);
  color: #f4f1e8;
  background: rgba(201, 166, 70, 0.05);
}

/* Connector between Tiers */
.fw-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
}

.fw-connector-line {
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(201, 166, 70, 0.2),
    rgba(201, 166, 70, 0.6)
  );
}

.fw-arrow {
  display: block;
  opacity: 0.8;
}

/* =============================================
   SYSTEM PAGE — MOBILE OVERRIDES (≤768px)
   ============================================= */
@media (max-width: 768px) {
  /* System Hero */
  .system-hero {
    min-height: 65vh;
    /* 80px / 16 ≈ 4.211rem */
    padding: 4.211rem 5%;
  }

  .system-hero h1 {
    font-size: 2.5rem;
  }

  .system-hero p {
    font-size: 1.05rem;
  }

  .system-hero-watermark {
    right: -25%;
    width: 80%;
  }

  /* Pillars Grid — Single Column Stack */
  .pillars-section {
    /* 80px / 16 ≈ 4.211rem */
    padding: 4.211rem 5%;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pillar-card {
    padding: 2.5rem 2rem;
  }

  .pillar-number {
    font-size: 5rem;
    top: -0.263rem;
    right: 0.526rem;
  }

  /* Framework Diagram — Mobile */
  .framework-section {
    padding: 4.211rem 5%;
  }

  .fw-tier-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .fw-tier {
    padding: 2rem 1.25rem;
  }

  .fw-item {
    font-size: 0.78rem;
    padding: 0.6rem 0.4rem;
  }
}
