/* =========================================================
   TRAINING WAY
   Page-specific styles
   Shared layout, navbar, footer, colors and utilities
   are handled by ../css/global.css
   ========================================================= */

/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.training-way {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   TRAINING HERO
   ========================================================= */

.training-hero {
  width: 100%;
  min-height: 65vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 4rem 0;
}

.training-content {
  width: min(100%, 850px);
  text-align: center;

  padding: 3.5rem 3rem;

  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));

  border: 1px solid var(--border-subtle);
  border-radius: 28px;

  box-shadow: var(--shadow-lg);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  position: relative;
  overflow: hidden;
}

/* =========================================================
   DECORATIVE LIGHT
   ========================================================= */

.training-content::before {
  content: '';

  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);

  width: 420px;
  height: 420px;

  background: radial-gradient(circle, rgba(201, 184, 163, 0.12), transparent 70%);

  pointer-events: none;
}

.training-content::after {
  content: '';

  position: absolute;
  inset: 1px;

  border-radius: 27px;

  border: 1px solid rgba(255, 255, 255, 0.025);

  pointer-events: none;
}

/* =========================================================
   EYEBROW
   ========================================================= */

.training-eyebrow {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;

  margin-bottom: 1.5rem;
  padding: 0.45rem 0.9rem;

  border: 1px solid rgba(201, 184, 163, 0.28);
  border-radius: 999px;

  background: rgba(201, 184, 163, 0.06);

  color: var(--accent);

  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   TITLE
   ========================================================= */

.training-content h1 {
  position: relative;
  z-index: 1;

  max-width: 750px;
  margin: 0 auto 1.25rem;

  color: var(--text-primary);

  font-size: clamp(2.3rem, 6vw, 4.5rem);
  font-weight: 700;

  line-height: 1.05;
  letter-spacing: -0.045em;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

.training-description {
  position: relative;
  z-index: 1;

  max-width: 650px;
  margin: 0 auto;

  color: var(--text-secondary);

  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
}

.training-description strong {
  color: var(--text-primary);

  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* =========================================================
   INSTRUCTION STEPS
   ========================================================= */

.training-instructions {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 1rem;

  margin-top: 3rem;
}

/* =========================================================
   INDIVIDUAL STEP
   ========================================================= */

.instruction-step {
  min-height: 120px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.75rem;

  padding: 1.5rem 1rem;

  border: 1px solid var(--border-subtle);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.025);

  color: var(--text-secondary);

  text-align: center;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.instruction-step:hover {
  transform: translateY(-4px);

  border-color: rgba(201, 184, 163, 0.28);

  background: rgba(201, 184, 163, 0.045);

  box-shadow: var(--shadow-md);
}

/* =========================================================
   STEP NUMBER
   ========================================================= */

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 12px;

  background: linear-gradient(135deg, rgba(201, 184, 163, 0.16), rgba(201, 184, 163, 0.04));

  border: 1px solid rgba(201, 184, 163, 0.2);

  color: var(--accent);

  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

/* =========================================================
   TRAINING CONTENT TEXT
   ========================================================= */

.training-content p {
  line-height: 1.8;
}

/* =========================================================
   CONSOLE / CODE FEEL
   ========================================================= */

.training-description strong,
.step-number {
  font-family: 'JetBrains Mono', monospace;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 800px) {
  .training-way {
    padding: 2rem 1.25rem 5rem;
  }

  .training-hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .training-content {
    padding: 3rem 2rem;
  }

  .training-instructions {
    grid-template-columns: 1fr;
  }

  .instruction-step {
    min-height: 100px;

    flex-direction: row;
    justify-content: flex-start;

    text-align: left;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {
  .training-way {
    padding: 1.5rem 1rem 4rem;
  }

  .training-hero {
    padding: 2rem 0;
  }

  .training-content {
    padding: 2.25rem 1.25rem;

    border-radius: 22px;
  }

  .training-content::after {
    border-radius: 21px;
  }

  .training-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .training-content h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .training-description {
    font-size: 0.95rem;
  }

  .training-instructions {
    margin-top: 2rem;
    gap: 0.75rem;
  }

  .instruction-step {
    padding: 1rem;

    gap: 0.85rem;

    font-size: 0.9rem;
  }

  .step-number {
    width: 38px;
    height: 38px;

    flex-shrink: 0;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .instruction-step {
    transition: none;
  }

  .instruction-step:hover {
    transform: none;
  }
}
