/*
Theme Name: MR O — Iron Editorial
Theme URI: https://bbstats.co
Author: MR O
Author URI: https://bbstats.co
Description: Iron Editorial theme for MR O bodybuilding stats — dark, gold, cinematic.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mro
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --black:          #080808;
  --charcoal:       #111111;
  --card-bg:        #141414;
  --gold:           #C9A84C;
  --gold-light:     #E8C96A;
  --crimson:        #B8001F;
  --white:          #F0EDE8;
  --muted:          #787878;
  --border:         rgba(201,168,76,0.18);
  --border-subtle:  rgba(255,255,255,0.07);
  --silver:         #A8A8A8;
  --bronze:         #9E7B5A;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 400;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =============================================
   NAVIGATION
   ============================================= */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-logo span { color: var(--white); }

#primary-menu {
  display: flex;
  gap: 2.2rem;
}

#primary-menu li a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

#primary-menu li a:hover,
#primary-menu li.current-menu-item a,
#primary-menu li.current_page_item a {
  color: var(--gold);
}

.nav-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
}

.nav-search-form input[type="search"] {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  width: 150px;
}

.nav-search-form input[type="search"]::placeholder { color: var(--muted); }

.nav-search-form button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
}

.nav-search-form button:hover { color: var(--gold); }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
#page { padding-top: 64px; }

/* =============================================
   HERO — HOMEPAGE
   ============================================= */
.hero-section {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(185,0,31,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(201,168,76,0.05) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8,8,8,0) 0%, var(--black) 80%);
  z-index: 1;
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-lines::before {
  content: '';
  position: absolute;
  top: -10%; right: 5%;
  width: 1px; height: 130%;
  background: linear-gradient(180deg, transparent, var(--gold) 40%, transparent);
  opacity: 0.1;
  transform: rotate(8deg);
}

.hero-lines::after {
  content: '';
  position: absolute;
  top: -10%; right: 10%;
  width: 1px; height: 130%;
  background: linear-gradient(180deg, transparent, var(--crimson) 60%, transparent);
  opacity: 0.07;
  transform: rotate(8deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5.5rem, 14vw, 14rem);
  line-height: 0.87;
  letter-spacing: 0.02em;
  color: var(--white);
  animation: fadeUp 0.9s ease 0.35s both;
}

.hero-title em {
  color: var(--gold);
  font-style: normal;
  display: block;
}

.hero-subtitle {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--muted);
  margin-top: 1.4rem;
  max-width: 460px;
  animation: fadeUp 0.9s ease 0.5s both;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.9s ease 0.65s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeUp 0.9s ease 0.8s both;
}

.stat-item { display: flex; flex-direction: column; gap: 0.3rem; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--black);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: var(--black);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* =============================================
   TICKER
   ============================================= */
.news-ticker {
  background: var(--crimson);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}

.ticker-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.3);
  padding: 0 1.2rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-scroll {
  overflow: hidden;
  flex: 1;
}

.ticker-track {
  display: flex;
  gap: 4rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-sep {
  display: inline-block;
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0.5rem;
}

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

.section-title .accent { color: var(--gold); margin-right: 0.4rem; }

.section-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

/* =============================================
   FEATURED CARD
   ============================================= */
.featured-section { padding: 5rem 0 0; }

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
  animation: fadeUp 0.8s ease 0.1s both;
}

.featured-card:hover { border-color: var(--gold); }

.featured-img {
  position: relative;
  overflow: hidden;
  background: #181818;
}

.featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  transition: transform 0.6s ease;
}

.featured-card:hover .featured-img img { transform: scale(1.04); }

.featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--crimson), transparent);
  opacity: 0.25;
  transition: opacity 0.4s;
}

.featured-card:hover .featured-img-overlay { opacity: 0.45; }

.featured-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--border);
}

.featured-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  border: 1px solid var(--crimson);
  padding: 0.28rem 0.65rem;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.featured-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--white);
}

.featured-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 1rem;
}

.featured-winner {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.winner-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.winner-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* =============================================
   CONTESTS GRID
   ============================================= */
.contests-section { padding: 5rem 0; }

.split-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.contests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.contest-card {
  background: var(--card-bg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
  animation: fadeUp 0.6s ease both;
}

.contest-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.contest-card:hover::before { transform: scaleY(1); }
.contest-card:hover { background: #1a1a1a; }

.contest-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.45;
}

.contest-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--white);
  transition: color 0.2s;
}

.contest-card:hover .contest-name { color: var(--gold-light); }

.contest-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: auto;
}

.contest-arrow {
  position: absolute;
  right: 1.4rem; bottom: 1.4rem;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

.contest-card:hover .contest-arrow { opacity: 1; transform: translateX(0); }

/* =============================================
   SIDEBAR
   ============================================= */
.main-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 80px;
}

.sidebar-block {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.sidebar-block-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}

.podium-list { padding: 0.5rem 0; }

.podium-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.podium-item:last-child { border-bottom: none; }
.podium-item:hover { background: rgba(255,255,255,0.03); }

.podium-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  width: 34px;
  text-align: center;
  flex-shrink: 0;
}

.rank-1 { color: var(--gold); }
.rank-2 { color: var(--silver); }
.rank-3 { color: var(--bronze); }
.rank-x { color: #2e2e2e; font-size: 1rem; }

.podium-athlete {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.88;
}

/* Widget area generica */
.widget { margin-bottom: 2rem; }

.widget-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
}

/* Tag cloud */
.tag-cloud-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.65rem;
  display: inline-block;
  margin: 0.2rem;
  transition: all 0.2s;
}

.tag-cloud-link:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.page-numbers {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1rem;
  transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
  border-color: var(--gold);
  color: var(--gold);
}

/* =============================================
   SINGLE POST — EVENT HERO
   ============================================= */
.event-hero {
  position: relative;
  height: 70vh;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.event-hero-photo {
  position: absolute; inset: 0;
}

.event-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(25%) contrast(1.08);
}

.event-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,8,8,1) 0%, rgba(8,8,8,0.55) 40%, rgba(8,8,8,0.1) 100%),
    linear-gradient(90deg, rgba(8,8,8,0.65) 0%, transparent 60%);
}

.event-hero-gold-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
  opacity: 0.5;
}

.event-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 3.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: fadeUp 0.6s ease 0.1s both;
}

.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: 0.4; }

.event-category-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  border: 1px solid var(--crimson);
  padding: 0.28rem 0.65rem;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease 0.25s both;
}

.event-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 9rem);
  line-height: 0.87;
  letter-spacing: 0.03em;
  color: var(--white);
  animation: fadeUp 0.8s ease 0.3s both;
}

.event-title em { color: var(--gold); font-style: normal; }

.event-meta-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 1.3rem;
  animation: fadeUp 0.8s ease 0.45s both;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================
   SINGLE POST — CONTENT LAYOUT
   ============================================= */
.single-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* =============================================
   PODIUM VISUAL
   ============================================= */
.podium-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 230px;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.9s ease 0.5s both;
}

.podium-col {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-athlete-info {
  text-align: center;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.podium-medal { font-size: 1.6rem; line-height: 1; }

.podium-athlete-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.podium-pos {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
}

.podium-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-rank-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  line-height: 1;
}

.podium-col.p1 .podium-block { height: 130px; background: linear-gradient(180deg, rgba(201,168,76,0.18), rgba(201,168,76,0.04)); border-top: 2px solid var(--gold); }
.podium-col.p1 .podium-rank-num { color: var(--gold); }
.podium-col.p1 .podium-athlete-name { color: var(--gold); font-size: 0.95rem; }
.podium-col.p2 .podium-block { height: 90px; background: linear-gradient(180deg, rgba(168,168,168,0.1), rgba(168,168,168,0.02)); border-top: 2px solid var(--silver); }
.podium-col.p2 .podium-rank-num { color: var(--silver); }
.podium-col.p2 .podium-athlete-name { color: var(--silver); }
.podium-col.p3 .podium-block { height: 60px; background: linear-gradient(180deg, rgba(158,123,90,0.1), rgba(158,123,90,0.02)); border-top: 2px solid var(--bronze); }
.podium-col.p3 .podium-rank-num { color: var(--bronze); }
.podium-col.p3 .podium-athlete-name { color: var(--bronze); }

/* =============================================
   RESULTS TABLE (stile post content classico)
   ============================================= */
.results-table-wrap { animation: fadeUp 0.9s ease 0.6s both; }

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table thead tr {
  border-bottom: 1px solid var(--border);
}

.results-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 400;
}

.results-table th:first-child { width: 70px; text-align: center; }

.results-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
  animation: rowIn 0.4s ease both;
}

.results-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.results-table td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
}

.rank-cell {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  width: 70px;
  color: #2a2a2a;
}

.rank-cell.gold { color: var(--gold); }
.rank-cell.silver { color: var(--silver); }
.rank-cell.bronze { color: var(--bronze); }

.athlete-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.88;
}

.row-gold .athlete-name { color: var(--gold); opacity: 1; }
.row-silver .athlete-name { color: var(--silver); opacity: 1; }
.row-bronze .athlete-name { color: var(--bronze); opacity: 1; }

.medal-icon { font-size: 1rem; margin-left: 0.4rem; vertical-align: middle; }

/* =============================================
   ENTRY CONTENT (classic editor output)
   Override: rendiamo le liste numbered belle
   ============================================= */
.entry-content {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(240,237,232,0.85);
}

/* Headings dentro il contenuto */
.entry-content h2,
.entry-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 2rem 0 1rem;
}

.entry-content h3 { font-size: 1.3rem; }

/* Paragrafi */
.entry-content p {
  margin-bottom: 1rem;
}

/* Liste ordinate — classifica atleti */
.entry-content ol {
  list-style: none;
  counter-reset: ranking;
  margin: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.entry-content ol li {
  counter-increment: ranking;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
  position: relative;
}

.entry-content ol li:hover { background: rgba(255,255,255,0.03); }

.entry-content ol li::before {
  content: counter(ranking);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #252525;
  width: 52px;
  text-align: center;
  flex-shrink: 0;
}

/* Top 3 rank colors */
.entry-content ol li:nth-child(1)::before { color: var(--gold); }
.entry-content ol li:nth-child(2)::before { color: var(--silver); }
.entry-content ol li:nth-child(3)::before { color: var(--bronze); }

.entry-content ol li strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  font-style: normal;
}

.entry-content ol li:nth-child(1) strong { color: var(--gold); }
.entry-content ol li:nth-child(2) strong { color: var(--silver); }
.entry-content ol li:nth-child(3) strong { color: var(--bronze); }

/* Barre colorate sui top 3 */
.entry-content ol li:nth-child(1) { border-left: 3px solid var(--gold); }
.entry-content ol li:nth-child(2) { border-left: 3px solid var(--silver); }
.entry-content ol li:nth-child(3) { border-left: 3px solid var(--bronze); }

/* Liste non ordinate */
.entry-content ul {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
}

.entry-content ul li {
  position: relative;
  padding-left: 1rem;
  color: rgba(240,237,232,0.75);
}

.entry-content ul li::before {
  content: '▸';
  position: absolute;
  left: -0.5rem;
  color: var(--gold);
  font-size: 0.75rem;
}

/* =============================================
   SINGLE — SIDEBAR
   ============================================= */
.single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  animation: fadeUp 0.8s ease 0.7s both;
}

.sidebar-card-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}

.sidebar-card-body { padding: 1.4rem; }

.event-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 0.7rem;
}

.info-row:last-child { border-bottom: none; padding-bottom: 0; }

.info-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.info-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-align: right;
}

.info-value.highlight { color: var(--gold); }

/* Share buttons */
.share-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.share-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.7rem;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.share-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Tag buttons */
.tag-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tag-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.6rem;
  background: none;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-btn:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================
   POST NAVIGATION (prev/next)
   ============================================= */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeUp 0.8s ease 0.9s both;
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 260px;
  transition: opacity 0.2s;
}

.post-nav-item:hover { opacity: 0.65; }
.post-nav-item.next { text-align: right; }

.nav-dir {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dir.next { justify-content: flex-end; }

.nav-post-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.1;
}

/* =============================================
   ARCHIVE / CATEGORY PAGE
   ============================================= */
.archive-hero {
  padding: 7rem 2.5rem 3.5rem;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-subtle);
}

.archive-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.archive-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.archive-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.88;
  color: var(--white);
}

.archive-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

.archive-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2.5rem 6rem;
}

.search-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.9;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.search-title em {
  color: var(--gold);
  font-style: normal;
}

.search-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}

.search-form-big {
  display: flex;
  margin-bottom: 4rem;
}

.search-form-big input[type="search"] {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-right: none;
  outline: none;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 1rem 1.5rem;
}

.search-form-big input[type="search"]::placeholder { color: var(--muted); }

.search-form-big button {
  background: var(--gold);
  border: none;
  color: var(--black);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.search-form-big button:hover { background: var(--gold-light); }

/* =============================================
   404 PAGE
   ============================================= */
.not-found-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 10rem 2.5rem 6rem;
  text-align: center;
}

.not-found-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(8rem, 20vw, 18rem);
  line-height: 0.85;
  color: var(--card-bg);
  letter-spacing: 0.05em;
  display: block;
}

.not-found-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.not-found-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* =============================================
   MRO RESULTS LIST — rendered directly from PHP
   Works for ANY post format (ol_bold, h4_inline, ol_plain)
   ============================================= */
.mro-results-wrap { margin: 0 0 2rem; }

ol.mro-results-list {
  list-style: none;
  counter-reset: ranking;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

ol.mro-results-list li {
  counter-increment: ranking;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
  position: relative;
}

ol.mro-results-list li:hover { background: rgba(255,255,255,0.03); }

ol.mro-results-list li::before {
  content: counter(ranking);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #252525;
  width: 52px;
  text-align: center;
  flex-shrink: 0;
}

/* Top 3 rank colors */
ol.mro-results-list li:nth-child(1)::before { color: var(--gold); }
ol.mro-results-list li:nth-child(2)::before { color: var(--silver); }
ol.mro-results-list li:nth-child(3)::before { color: var(--bronze); }

/* Left accent for top 3 */
ol.mro-results-list li:nth-child(1) { border-left: 3px solid var(--gold); }
ol.mro-results-list li:nth-child(2) { border-left: 3px solid var(--silver); }
ol.mro-results-list li:nth-child(3) { border-left: 3px solid var(--bronze); }

ol.mro-results-list li strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.88;
}

/* Row classes for direct PHP rendering */
ol.mro-results-list li.row-gold strong  { color: var(--gold); opacity: 1; }
ol.mro-results-list li.row-silver strong { color: var(--silver); opacity: 1; }
ol.mro-results-list li.row-bronze strong { color: var(--bronze); opacity: 1; }

.medal-icon {
  font-size: 1rem;
  margin-left: 0.3rem;
  flex-shrink: 0;
}

/* Stagger fade-in for list items */
ol.mro-results-list li { opacity: 0; animation: rowIn 0.35s ease both; }
ol.mro-results-list li:nth-child(1)  { animation-delay: 0.05s; }
ol.mro-results-list li:nth-child(2)  { animation-delay: 0.09s; }
ol.mro-results-list li:nth-child(3)  { animation-delay: 0.13s; }
ol.mro-results-list li:nth-child(4)  { animation-delay: 0.17s; }
ol.mro-results-list li:nth-child(5)  { animation-delay: 0.21s; }
ol.mro-results-list li:nth-child(6)  { animation-delay: 0.25s; }
ol.mro-results-list li:nth-child(7)  { animation-delay: 0.29s; }
ol.mro-results-list li:nth-child(8)  { animation-delay: 0.33s; }
ol.mro-results-list li:nth-child(9)  { animation-delay: 0.37s; }
ol.mro-results-list li:nth-child(10) { animation-delay: 0.41s; }
ol.mro-results-list li:nth-child(11) { animation-delay: 0.45s; }
ol.mro-results-list li:nth-child(12) { animation-delay: 0.49s; }
ol.mro-results-list li:nth-child(13) { animation-delay: 0.53s; }
ol.mro-results-list li:nth-child(14) { animation-delay: 0.57s; }
ol.mro-results-list li:nth-child(15) { animation-delay: 0.61s; }
ol.mro-results-list li:nth-child(16) { animation-delay: 0.65s; }
ol.mro-results-list li:nth-child(17) { animation-delay: 0.69s; }
ol.mro-results-list li:nth-child(18) { animation-delay: 0.73s; }
ol.mro-results-list li:nth-child(19) { animation-delay: 0.77s; }
ol.mro-results-list li:nth-child(20) { animation-delay: 0.81s; }
ol.mro-results-list li:nth-child(n+21) { animation-delay: 0.85s; }

/* =============================================
   INLINE SOCIAL SHARE
   ============================================= */
.inline-share {
  margin: 4rem 0 2.5rem;
  padding: 1.8rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--gold);
  position: relative;
}

.inline-share-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.inline-share-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.2;
}

.inline-share-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  background: var(--black);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}

/* unified hover state */
.share-social:hover { color: var(--white); border-color: rgba(255,255,255,0.3); background: #1a1a1a; }

/* per-platform hover colors */
.share-social.share-x:hover      { color: #fff;     border-color: #fff; }
.share-social.share-fb:hover     { color: #4267B2;  border-color: #4267B2; }
.share-social.share-wa:hover     { color: #25D366;  border-color: #25D366; }
.share-social.share-tg:hover     { color: #2CA5E0;  border-color: #2CA5E0; }
.share-social.share-reddit:hover { color: #FF4500;  border-color: #FF4500; }

/* Copy Link — same style as others, gold accent */
.share-social.share-copy {
  color: var(--muted);
  border-color: var(--border-subtle);
  background: var(--black);
}
.share-social.share-copy:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.share-social.share-copy.copied {
  color: #22c55e;
  border-color: #22c55e;
  background: rgba(34,197,94,0.06);
}
#site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-social { display: flex; gap: 1.2rem; }

.footer-social a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--gold); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rowIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .contests-grid { grid-template-columns: repeat(2, 1fr); }
  .split-layout  { grid-template-columns: 1fr; }
  .main-sidebar  { position: static; }
  .archive-grid  { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img  { min-height: 280px; }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
}

@media (max-width: 768px) {
  #site-nav { padding: 0 1.2rem; }
  #primary-menu { display: none; }
  #primary-menu.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(8,8,8,0.97); padding: 1.5rem 1.2rem; gap: 1.4rem; border-bottom: 1px solid var(--border); }
  .nav-search-form { display: none; }
  .nav-toggle { display: flex; }
  .hero-section { padding: 0 1.2rem 3.5rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .section-wrap { padding: 0 1.2rem; }
  .contests-grid { grid-template-columns: 1fr; }
  .archive-grid  { grid-template-columns: 1fr; }
  .event-hero-content { padding: 0 1.2rem 2.5rem; }
  .single-layout { padding: 3rem 1.2rem 5rem; }
  .podium-visual { height: auto; flex-direction: row; }
  .archive-hero { padding: 6rem 1.2rem 2.5rem; }
  #site-footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2.5rem 1.2rem; }
  .post-nav { flex-direction: column; gap: 1.5rem; }
  .post-nav-item.next { text-align: left; }
  .nav-dir.next { justify-content: flex-start; }
}
