/*
Theme Name: ROA Esports
Theme URI: https://www.roa-esports.com/
Author: ROA eSports
Description: Eigenständiges WordPress-Theme für ROA Esports mit Frontpage, Teams, Spielern, Streamern, Sponsoren, APIs und verwaltbaren Inhaltsseiten.
Version: 1.0.0
Text Domain: roa-esports
*/

:root {
  --roa-site-bg: #131313;
  --roa-site-bg-deep: #08090b;
  --roa-site-surface: rgba(255, 255, 255, 0.045);
  --roa-site-border: rgba(255, 255, 255, 0.09);
  --roa-site-text: rgba(255, 255, 255, 0.78);
  --roa-site-muted: rgba(255, 255, 255, 0.56);
  --roa-site-white: #ffffff;
  --roa-site-accent: #e11d2f;
  --roa-site-accent-rgb: 225, 29, 47;
  --roa-site-container: 1180px;
  --roa-site-heading: "Montserrat", Arial, Helvetica, sans-serif;
  --roa-site-body: Arial, Helvetica, sans-serif;
  --roa-site-ease: 180ms ease;
  --roa-theme-header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--roa-site-bg-deep);
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(var(--roa-site-accent-rgb), 0.10), transparent 30%),
    linear-gradient(180deg, #090a0c 0%, var(--roa-site-bg) 32%, var(--roa-site-bg) 100%);
  color: var(--roa-site-text);
  font-family: var(--roa-site-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.roa-theme-shell {
  width: min(var(--roa-site-container), calc(100% - 40px));
  margin: 0 auto;
}

.roa-theme-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  border-bottom: 1px solid rgba(var(--roa-site-accent-rgb), 0.20);
  background: rgba(8, 9, 11, 0.92);
  backdrop-filter: blur(18px);
}

body.admin-bar .roa-theme-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 782px) {
  body.admin-bar .roa-theme-header {
    top: var(--wp-admin--admin-bar--height, 46px);
  }
}

.roa-theme-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.roa-theme-brand,
.custom-logo-link,
.roa-theme-brand-image {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.roa-theme-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--roa-site-accent-rgb), 0.42);
  background: rgba(var(--roa-site-accent-rgb), 0.12);
  color: #fff;
  font-family: var(--roa-site-heading);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.roa-theme-brand strong {
  color: #fff;
  font-family: var(--roa-site-heading);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-logo {
  width: auto;
  max-width: 210px;
  max-height: 48px;
  object-fit: contain;
}

.roa-theme-brand-image img {
  width: auto;
  max-width: 210px;
  max-height: 48px;
  display: block;
  object-fit: contain;
}

.roa-theme-brand-image-footer img,
.roa-theme-footer-brand .custom-logo {
  max-width: 310px;
  max-height: 86px;
}

.roa-theme-nav ul,
.roa-theme-footer-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roa-theme-nav li {
  position: relative;
}

.roa-theme-nav .menu-item-has-children > a,
.roa-theme-nav .page_item_has_children > a {
  padding-right: 18px;
}

.roa-theme-nav .menu-item-has-children > a::after,
.roa-theme-nav .page_item_has_children > a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-62%) rotate(45deg);
  opacity: .75;
}

.roa-theme-nav a,
.roa-theme-footer-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--roa-site-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--roa-site-ease);
}

.roa-theme-nav a:hover,
.roa-theme-footer-nav a:hover {
  color: var(--roa-site-accent);
}

.roa-theme-nav :is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a {
  color: #fff;
}

.roa-theme-nav > div > ul > :is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a::before,
.roa-theme-nav > ul > :is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: linear-gradient(90deg, var(--roa-site-accent), transparent);
}

.roa-theme-nav .sub-menu,
.roa-theme-nav .children {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  z-index: 60;
  width: min(260px, 82vw);
  display: grid;
  gap: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 90% 0%, rgba(var(--roa-site-accent-rgb), .16), transparent 34%),
    rgba(10, 11, 13, .96);
  box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 2px 0 rgba(var(--roa-site-accent-rgb), .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--roa-site-ease), visibility var(--roa-site-ease), transform var(--roa-site-ease);
}

.roa-theme-nav .sub-menu::before,
.roa-theme-nav .children::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -17px;
  width: 100%;
  height: 17px;
}

.roa-theme-nav li:hover > .sub-menu,
.roa-theme-nav li:focus-within > .sub-menu,
.roa-theme-nav li:hover > .children,
.roa-theme-nav li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.roa-theme-nav .sub-menu .sub-menu,
.roa-theme-nav .children .children {
  top: -10px;
  left: calc(100% + 12px);
}

.roa-theme-nav .sub-menu li,
.roa-theme-nav .children li {
  width: 100%;
}

.roa-theme-nav .sub-menu a,
.roa-theme-nav .children a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: rgba(255,255,255,.74);
  line-height: 1.25;
  white-space: normal;
  border-left: 2px solid transparent;
  transition: color var(--roa-site-ease), background var(--roa-site-ease), border-color var(--roa-site-ease);
}

.roa-theme-nav .sub-menu a:hover,
.roa-theme-nav .sub-menu a:focus,
.roa-theme-nav .children a:hover,
.roa-theme-nav .children a:focus {
  color: #fff;
  background: rgba(var(--roa-site-accent-rgb), .10);
  border-left-color: var(--roa-site-accent);
}

.roa-theme-main {
  min-height: 64vh;
  padding-top: var(--roa-theme-header-height);
}

.roa-theme-content-page {
  padding: clamp(80px, 9vw, 132px) 0;
}

.roa-theme-content-card {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--roa-site-border);
  background:
    radial-gradient(circle at 88% 0%, rgba(var(--roa-site-accent-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  box-shadow: inset 0 2px 0 rgba(var(--roa-site-accent-rgb), 0.36), 0 24px 70px rgba(0, 0, 0, 0.22);
}

.roa-theme-content-card h1,
.roa-theme-content-card h2,
.roa-theme-content-card h3 {
  color: #fff;
  font-family: var(--roa-site-heading);
  line-height: 1.05;
}

.roa-theme-content-card h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 86px);
}

.roa-theme-content-card :where(input, textarea, select) {
  width: 100%;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid var(--roa-site-border);
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
}

.roa-theme-content-card :where(input[type="submit"], button[type="submit"]),
.roa-theme-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(var(--roa-site-button-rgb), 0.40);
  background: linear-gradient(180deg, rgba(var(--roa-site-button-rgb), 0.30), rgba(var(--roa-site-button-rgb), 0.13));
  color: #fff;
  font-family: var(--roa-site-heading);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--roa-site-ease), border-color var(--roa-site-ease), background var(--roa-site-ease), box-shadow var(--roa-site-ease);
}

.roa-theme-content-card :where(input[type="submit"], button[type="submit"]):hover,
.roa-theme-button:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--roa-site-button-hover-rgb), 0.68);
  background: linear-gradient(180deg, rgba(var(--roa-site-button-hover-rgb), 0.42), rgba(var(--roa-site-button-hover-rgb), 0.20));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 24px rgba(var(--roa-site-button-hover-rgb), 0.14);
}

.roa-theme-fallback-footer {
  position: relative;
  padding: 80px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--roa-site-accent-rgb), 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.28));
}

.roa-theme-footer-brand {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.roa-theme-footer-brand p {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
}

.roa-theme-footer-nav {
  margin-top: 54px;
}

.roa-theme-footer-nav ul {
  justify-content: center;
  flex-wrap: wrap;
}

.roa-theme-footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.roa-theme-footer-socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--roa-site-ease), border-color var(--roa-site-ease), background var(--roa-site-ease), box-shadow var(--roa-site-ease);
}

.roa-theme-footer-socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--roa-site-accent-rgb), 0.32);
  background: rgba(var(--roa-site-accent-rgb), 0.10);
  box-shadow: 0 0 24px rgba(var(--roa-site-accent-rgb), 0.10);
}

.roa-theme-footer-socials span {
  font-family: var(--roa-site-heading);
  font-size: 13px;
  font-weight: 900;
}

.roa-theme-fallback-footer small {
  display: block;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.50);
  text-align: center;
}

@media (max-width: 900px) {
  .roa-theme-header {
    position: sticky;
    top: 0;
  }

  body.admin-bar .roa-theme-header {
    top: 0;
  }

  .roa-theme-main {
    padding-top: 0;
  }

  .roa-theme-header-inner {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .roa-theme-nav ul {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .roa-theme-nav {
    width: 100%;
  }

  .roa-theme-nav > ul,
  .roa-theme-nav .menu {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .roa-theme-nav .sub-menu,
  .roa-theme-nav .children,
  .roa-theme-nav .sub-menu .sub-menu,
  .roa-theme-nav .children .children {
    position: static;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0,0,0,.22);
    box-shadow: inset 2px 0 0 rgba(var(--roa-site-accent-rgb), .30);
  }

  .roa-theme-nav .sub-menu::before,
  .roa-theme-nav .children::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .roa-theme-shell {
    width: min(var(--roa-site-container), calc(100% - 28px));
  }

  .roa-theme-content-page {
    padding: 56px 0;
  }

  .roa-theme-nav a,
  .roa-theme-footer-nav a {
    font-size: 11px;
  }
}
