/*
Theme Name: MAYHEM Fantasy Sports
Theme URI: https://example.com/mayhem-fantasy-sports
Author: MAYHEM Fantasy Sports
Author URI: https://example.com
Description: Custom Elementor-first WordPress theme for MAYHEM Fantasy Sports and The Road to MAYHEM championship platform.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: mayhem-fantasy-sports
*/

:root {
  --mayhem-black: #070707;
  --mayhem-charcoal: #101010;
  --mayhem-panel: #151515;
  --mayhem-gold: #c99a2e;
  --mayhem-gold-bright: #e0b84c;
  --mayhem-white: #f4f2ed;
  --mayhem-gray: #a7a7a7;
  --mayhem-border: rgba(201,154,46,.34);
  --mayhem-danger: #d84a3d;
  --mayhem-success: #3dbb68;
  --mayhem-radius: 2px;
  --mayhem-max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mayhem-black);
  color: var(--mayhem-white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.mayhem-container {
  width: min(100% - 32px, var(--mayhem-max));
  margin-inline: auto;
}

.site-main { min-height: 60vh; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto !important;
  white-space: normal;
  left: 10px;
  top: 10px;
  z-index: 100000;
  background: #fff;
  color: #111;
  padding: 12px 16px;
}

/* Elementor friendliness */
.elementor-page .site-main,
.elementor-page .entry-content { width: 100%; max-width: none; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--mayhem-max); }

/* Basic WordPress content fallback */
.entry-content,
.entry-header,
.archive-header { width: min(100% - 32px, 1100px); margin-inline: auto; }
.entry-content { padding-block: 56px; }
.entry-title { font-size: clamp(2rem, 5vw, 4rem); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }

/* Header */
.mayhem-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7,7,7,.94);
  border-bottom: 1px solid var(--mayhem-border);
  backdrop-filter: blur(10px);
}
.mayhem-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.mayhem-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.mayhem-brand__mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--mayhem-gold);
  color: var(--mayhem-gold-bright);
  font-weight: 900;
  font-size: 24px;
  transform: skew(-4deg);
}
.mayhem-brand__text { display: flex; flex-direction: column; line-height: .92; }
.mayhem-brand__name {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.mayhem-brand__sub {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mayhem-gold-bright);
}
.mayhem-nav { margin-left: auto; }
.mayhem-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.mayhem-nav a {
  display: inline-block;
  padding: 26px 0 23px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e9e6df;
  border-bottom: 2px solid transparent;
  transition: .2s ease;
}
.mayhem-nav a:hover,
.mayhem-nav .current-menu-item > a,
.mayhem-nav .current_page_item > a {
  color: var(--mayhem-gold-bright);
  border-bottom-color: var(--mayhem-gold-bright);
}
.mayhem-status {
  margin-left: 10px;
  border: 1px solid var(--mayhem-border);
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mayhem-status__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e83a2d;
  margin-right: 7px;
  box-shadow: 0 0 12px rgba(232,58,45,.8);
}
.mayhem-menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mayhem-border);
  background: transparent;
  color: var(--mayhem-white);
  cursor: pointer;
}

/* Footer */
.mayhem-footer {
  border-top: 1px solid var(--mayhem-border);
  background: #050505;
  padding: 34px 0;
}
.mayhem-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  align-items: center;
  gap: 24px;
}
.mayhem-footer__tagline {
  color: var(--mayhem-gray);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mayhem-footer__nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.mayhem-footer__nav a { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #ccc; }
.mayhem-footer__powered { text-align: right; color: #8f8f8f; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* Buttons */
.mayhem-btn,
.elementor-button {
  border-radius: var(--mayhem-radius) !important;
}
.mayhem-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--mayhem-gold);
  background: linear-gradient(180deg, #d9aa3d 0%, #a97916 100%);
  color: #080808;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mayhem-btn--ghost { background: transparent; color: var(--mayhem-white); }

@media (max-width: 1050px) {
  .mayhem-nav { display: none; position: absolute; inset: 72px 0 auto 0; background: #090909; border-bottom: 1px solid var(--mayhem-border); }
  .mayhem-nav.is-open { display: block; }
  .mayhem-nav ul { width: min(100% - 32px, var(--mayhem-max)); margin-inline: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 20px; }
  .mayhem-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .mayhem-menu-toggle { display: inline-grid; place-items: center; }
  .mayhem-status { margin-left: 0; }
}

@media (max-width: 760px) {
  .mayhem-header__inner { min-height: 64px; }
  .mayhem-nav { inset: 64px 0 auto 0; }
  .mayhem-brand__name { font-size: 16px; }
  .mayhem-brand__sub { font-size: 8px; }
  .mayhem-status { display: none; }
  .mayhem-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .mayhem-footer__powered { text-align: center; }
}
