/* ========================================
   COMPONENTS — Reusable UI Elements
   ======================================== */

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.nav--scrolled {
  background: rgba(0, 30, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}

.nav__logo .dot {
  color: var(--color-orange);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: width var(--duration-base) var(--ease-out);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9em 2.2em;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  border: 2px solid var(--color-orange);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-orange);
  box-shadow: var(--shadow-glow-orange);
}

.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid var(--color-gold);
}

.btn--outline:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.7;
}

/* ---- LIVE Badge ---- */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35em 1em;
  border-radius: var(--radius-sm);
}

.badge-live::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---- Circular Image Placeholder ---- */
.circle-frame {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(66, 122, 67, 0.15);
  margin: 0 auto;
  transition: border-color var(--duration-base) var(--ease-out);
}

.circle-frame:hover {
  border-color: var(--color-gold);
}

.circle-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-frame__placeholder {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-sm);
}

/* ---- Image Placeholder (rectangular) ---- */
.img-placeholder {
  background: rgba(66, 122, 67, 0.15);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.img-placeholder__text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Audio Player ---- */
.audio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--duration-base) var(--ease-out);
}

.audio-card:hover {
  border-color: var(--border-accent);
}

.audio-card__label {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-md);
}

.audio-card audio {
  width: 100%;
  max-width: 300px;
}

/* ---- Video Player ---- */
.video-frame {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.video-frame__overlay h3 {
  font-size: var(--text-2xl);
  text-align: center;
}

/* ---- Stat / Number ---- */
.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Step / Number marker ---- */
.step-marker {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-orange);
  display: inline-block;
  margin-bottom: var(--space-md);
}

/* ---- Tag / Label ---- */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-sm);
}
