/* ============================================================
   COMPONENTS.CSS — Reusable UI components:
   buttons, game cards, pillar cards, team cards,
   timeline markers, royalty strip, contact links,
   background effects (grid, orbs, noise), and badges.
   ============================================================ */


/* ── Buttons ─────────────────────────────────────────────── */

/* Base button — shared styles for all variants */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.75em 1.6em;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — solid red fill */
.btn--primary {
  background: var(--clr-red);
  color: var(--clr-white);
  border-color: var(--clr-red);
}

.btn--primary:hover {
  background: var(--clr-red-dark);
  border-color: var(--clr-red-dark);
  box-shadow: var(--shadow-red);
}

/* Ghost — transparent with red border */
.btn--ghost {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-border);
}

.btn--ghost:hover {
  border-color: var(--clr-red);
  color: var(--clr-red);
}

/* Size modifiers */
.btn--sm {
  font-size: var(--fs-xs);
  padding: 0.5em 1.1em;
}

.btn--lg {
  font-size: var(--fs-md);
  padding: 0.85em 2em;
}


/* ── Hero Background Effects ─────────────────────────────── */

/* Perspective grid that recedes into the horizon */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(42, 42, 64, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 42, 64, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

/* Noise texture overlay for film-grain feel */
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* Soft glowing orbs in the hero background */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(232,40,74,0.22) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  bottom: 0;
  right: -60px;
  background: radial-gradient(circle, rgba(244,196,48,0.1) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite reverse;
}


/* ── Game Cards ──────────────────────────────────────────── */

/* Card wrapper — dark panel with hover lift */
.game-card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-red);
  box-shadow: var(--shadow-card), var(--shadow-red);
}

/* Status badge — top-left corner of the card */
.game-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 4px;
}

.game-card__badge--live {
  background: var(--clr-live);
  color: #0a0a0f;
}

.game-card__badge--beta {
  background: var(--clr-beta);
  color: #0a0a0f;
}

/* Thumbnail area — fills with screenshot or gradient placeholder */
.game-card__thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--clr-bg);
}

/* Screenshot image fills the thumbnail */
.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.game-card:hover .game-card__img {
  transform: scale(1.06);
}

/* Gradient placeholder thumbs — used for games without itch screenshots */
.game-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fangs of the Broken — dark crimson gradient */
.game-card__thumb--fangs {
  background: linear-gradient(135deg, #1a0a0f 0%, #5c1020 50%, #e8284a22 100%);
}

/* Beyond Boundaries — deep teal/indigo gradient */
.game-card__thumb--beyond {
  background: linear-gradient(135deg, #0a0f1a 0%, #102050 50%, #2244aa33 100%);
}

/* Hover overlay with CTA button — visible on card hover */
.game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}

.game-card:hover .game-card__overlay {
  opacity: 1;
}

/* Card body — text content below the thumbnail */
.game-card__body {
  padding: var(--space-md);
}

/* Meta row: genre left, price right */
.game-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.game-card__genre {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-red);
}

.game-card__price {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--clr-gold);
  letter-spacing: 0.05em;
}

.game-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--clr-white);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-xs);
}

.game-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* Tag pills row */
.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.game-card__tags li {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  padding: 0.2em 0.7em;
}


/* ── About — Pillar Cards ─────────────────────────────────── */

.pillar {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: border-color var(--transition-base),
              transform var(--transition-base);
}

.pillar:hover {
  border-color: var(--clr-red);
  transform: translateY(-3px);
}

.pillar__icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--clr-white);
  letter-spacing: 0.03em;
  margin-bottom: 0.4em;
}

.pillar__text {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}


/* ── Studio — Background accent blob ─────────────────────── */

/* Large decorative red glow blob behind the studio section */
.studio__bg-accent {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,40,74,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Make studio content sit above the background accent */
.studio .container { position: relative; z-index: 1; }


/* ── Timeline Markers ─────────────────────────────────────── */

/* Circular step marker */
.timeline__marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-bg-3);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color var(--transition-base),
              background-color var(--transition-base);
}

/* Step number inside marker */
.timeline__marker span {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  line-height: 1;
}

/* Gold marker — used for the final "earn forever" step */
.timeline__marker--gold {
  background: var(--clr-gold-dim);
  border-color: var(--clr-gold);
}

.timeline__marker--gold span {
  color: var(--clr-gold);
}

/* Hover: highlight entire step row's marker */
.timeline__item:hover .timeline__marker {
  background: var(--clr-red-glow);
  border-color: var(--clr-red);
}

.timeline__item:hover .timeline__marker span {
  color: var(--clr-red);
}

/* Text content beside each marker */
.timeline__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--clr-white);
  letter-spacing: 0.04em;
  margin-bottom: 0.3em;
  line-height: 1.2;
}

.timeline__text {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.65;
}


/* ── Royalty Strip ───────────────────────────────────────── */

/* Each cell in the 4-column info strip */
.royalty-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  align-items: center;
  text-align: center;
  padding: var(--space-sm);
  border-right: 1px solid var(--clr-border);
}

.royalty-strip__item:last-child { border-right: none; }

.royalty-strip__val {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--clr-gold);
  letter-spacing: 0.03em;
  line-height: 1;
}

.royalty-strip__label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
}


/* ── Team Cards ──────────────────────────────────────────── */

.team-card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

.team-card:hover {
  border-color: var(--clr-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Avatar circle with initials */
.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--clr-red-dark);
  border: 2px solid var(--clr-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--clr-white);
  margin-inline: auto;
  margin-bottom: var(--space-md);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
}

.team-card:hover .team-card__avatar {
  background: var(--clr-red);
  box-shadow: 0 0 20px var(--clr-red-glow);
}

.team-card__role {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--clr-gold);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.team-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}


/* ── Contact Links ───────────────────────────────────────── */

/* Platform tile link */
.contact__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  min-width: 220px;
  transition: border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
  text-align: left;
}

.contact__link:hover {
  border-color: var(--clr-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.contact__link-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.contact__link-text {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.contact__link-text strong {
  font-size: var(--fs-base);
  color: var(--clr-white);
  font-weight: 600;
}

.contact__link-text em {
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* Red glow blob behind the contact section */
.contact__glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(232,40,74,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
