/*
Theme Name: Modern Retro T3ch
Theme URI: https://rghwarehouse.com
Author: ModernRetroT3ch
Author URI: https://rghwarehouse.com
Description: Custom theme for ModernRetroT3ch — Xbox 360 RGH modding specialists. Vice City / Cyberpunk aesthetic.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-retro-t3ch-theme
Tags: custom
*/

/* =============================================
   TABLE OF CONTENTS
   1.  CSS Variables — Vice City Palette
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Header — Wrapper
   6.  Header — Logo
   7.  Header — Navigation
   8.  Header — Dropdown Menus
   9.  Header — Call CTA Button
   10. Header — Hamburger Toggle
   11. Header — Mobile Drawer
   12. Header — Scroll State
   13. Footer — Wrapper
   14. Footer — Top (Brand + Columns)
   15. Footer — Brand & Tagline
   16. Footer — Social Icons
   17. Footer — Navigation Columns
   18. Footer — Contact Column
   19. Footer — Bottom Bar
   20. Responsive — Tablet (≤1024px)
   21. Responsive — Mobile (≤768px)
   22. Responsive — Small Mobile (≤480px)
   ============================================= */


/* =============================================
   1. CSS Variables — Vice City / Cyberpunk Palette
   ============================================= */
:root {
  /* ── Backgrounds ── */
  --color-bg:          #0D0121;   /* deepest — page base */
  --color-bg-alt:      #100827;   /* alt sections */
  --color-surface:     #160B30;   /* cards, inputs */
  --color-surface-2:   #1C1040;   /* elevated cards */

  /* ── Neon Accent Colours ── */
  --color-accent:      #FF2D78;   /* hot pink — primary CTA */
  --color-accent-dark: #D91F61;
  --color-accent-glow: rgba(255, 45, 120, 0.4);
  --color-cyan:        #00D4FF;   /* neon cyan */
  --color-cyan-glow:   rgba(0, 212, 255, 0.3);
  --color-purple:      #BF5FFF;   /* neon purple */
  --color-purple-glow: rgba(191, 95, 255, 0.25);
  --color-discord:     #5865F2;   /* Discord brand */

  /* ── Text ── */
  --color-text:        #F0E6FF;
  --color-text-muted:  #9B8BB5;
  --color-text-dim:    #5E4D7A;
  --color-white:       #FFFFFF;

  /* ── Borders ── */
  --color-border:      rgba(191, 95, 255, 0.18);
  --color-border-hi:   rgba(191, 95, 255, 0.4);

  /* ── Header ── */
  --announce-height:   46px;
  --header-height:     110px;
  --header-bg:         rgba(13, 1, 33, 0.82);
  --header-border:     rgba(191, 95, 255, 0.15);

  /* ── Footer ── */
  --footer-bg:         #080016;
  --footer-bottom-bg:  #050010;

  /* ── Typography ── */
  --font-sans:         'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-headline:     'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-size-sm:      0.875rem;
  --font-size-base:    1rem;
  --font-size-lg:      1.125rem;

  /* ── Spacing ── */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* ── Radii ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   18px;
  --radius-pill: 999px;

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* ── Shadows / Glows ── */
  --shadow-header:   0 1px 0 var(--header-border), 0 4px 30px rgba(0,0,0,0.6);
  --shadow-dropdown: 0 12px 40px rgba(0,0,0,0.7), 0 1px 0 rgba(191,95,255,0.1);
  --glow-pink:       0 0 20px rgba(255, 45, 120, 0.5), 0 0 60px rgba(255, 45, 120, 0.2);
  --glow-cyan:       0 0 16px rgba(0, 212, 255, 0.45);
  --glow-purple:     0 0 20px rgba(191, 95, 255, 0.4);
}


/* =============================================
   2. Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle retro-grid overlay on entire page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 45, 120, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 120, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}


/* =============================================
   3. Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}


/* =============================================
   4. Layout Utilities
   ============================================= */
.container,
.header-inner,
.footer-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

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

.header-spacer {
  height: calc(var(--header-height) + var(--announce-height));
}


/* =============================================
   5. Header — Wrapper
   ============================================= */
.site-header {
  position: fixed;
  top: var(--announce-height);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  overflow: hidden;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}


/* =============================================
   6. Header — Logo
   ============================================= */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo a {
  display: flex;
  align-items: center;
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.logo-img:hover {
  opacity: 0.85;
  filter: drop-shadow(0 0 12px var(--color-accent-glow));
}


/* Brand wordmark — large, centered between logo and discord */
.header-brandname {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  padding: 0 var(--space-md);
}
.header-brandname__top,
.header-brandname__line { display: none; }

.header-brandname__main {
  font-family: 'Orbitron', 'Exo 2', 'Teko', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 1.5px #FF2D6E;
  text-shadow:
    0 0 3px #00D4FF,
    0 0 8px #00D4FF,
    0 0 18px rgba(0, 212, 255, 0.75),
    0 0 6px #FF2D6E,
    0 0 20px rgba(255, 45, 110, 0.7),
    0 0 45px rgba(255, 45, 110, 0.4),
    0 2px 10px rgba(0, 0, 80, 0.7);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 768px) { .header-brandname { display: none; } }
@media (max-width: 768px) {
  .logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
  }
}
@media (max-width: 430px) {
  .logo-img {
    height: 32px;
    max-width: 100px;
  }
}


/* =============================================
   7. Header — Navigation
   ============================================= */
.header-nav {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast), text-shadow var(--transition-fast);
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible {
  color: var(--color-cyan);
  background: rgba(0, 212, 255, 0.07);
  text-shadow: var(--glow-cyan);
}

.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
  color: var(--color-accent);
  background: rgba(255, 45, 120, 0.08);
  text-shadow: 0 0 10px var(--color-accent-glow);
}

/* Dropdown chevron */
.nav-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition-fast);
  margin-left: 2px;
}

.nav-menu > li.menu-item-has-children:hover > a::after,
.nav-menu > li.menu-item-has-children:focus-within > a::after {
  transform: rotate(-135deg) translateY(-2px);
}


/* =============================================
   8. Header — Dropdown Menus
   ============================================= */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 210px;
  background: rgba(22, 11, 48, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  transform: translateX(-50%) translateY(-4px);
}

.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-menu .sub-menu li a:hover {
  color: var(--color-accent);
  background: rgba(255, 45, 120, 0.1);
  text-shadow: 0 0 8px var(--color-accent-glow);
}


/* =============================================
   8b. Announce Bar — Cycling Neon Gradient
   ============================================= */
@keyframes mrt-bar-shift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 50%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes mrt-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: var(--announce-height);
  overflow: hidden;
  background: linear-gradient(-45deg,
    #FF2D78, #BF5FFF, #00D4FF, #ff9d00, #FF2D78, #00D4FF, #BF5FFF, #FF2D78
  );
  background-size: 600% 600%;
  animation: mrt-bar-shift 35s ease infinite;
  display: flex;
  align-items: center;
}

.announce-bar__track {
  display: flex;
  align-items: center;
  animation: mrt-marquee 28s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.announce-bar__track:hover { animation-play-state: paused; }

.announce-bar__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.announce-bar__dot { opacity: 0.5; font-size: 1rem; }

@media (max-width: 768px) {
  .announce-bar__inner { gap: 1.25rem; font-size: 0.75rem; }
}


/* =============================================
   9. Header — Discord CTA Button
   ============================================= */
.header-cta {
  flex-shrink: 0;
  margin-left: auto;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #fff;
  background: var(--color-discord);
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-discord);
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.4);
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  outline-offset: 3px;
  text-decoration: none;
}

.btn-call:hover {
  background: #4752c4;
  border-color: #4752c4;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.55);
  transform: translateY(-1px);
  color: #fff;
}

.btn-call:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.35);
}


/* =============================================
   10. Header — Hamburger Toggle
   ============================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 45, 120, 0.1);
  border-color: rgba(255, 45, 120, 0.4);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.nav-toggle.is-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   11. Header — Mobile Drawer
   ============================================= */
.mobile-nav {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: rgba(13, 1, 33, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-xl);
}

.mobile-nav.is-open {
  max-height: 600px;
  padding: var(--space-md) var(--space-xl) var(--space-lg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.mobile-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.mobile-menu li a:hover {
  color: var(--color-cyan);
  background: rgba(0, 212, 255, 0.07);
}

.mobile-menu .sub-menu {
  padding-left: var(--space-md);
  margin-top: var(--space-xs);
}

.btn-call--mobile {
  width: 100%;
  justify-content: center;
}


/* =============================================
   12. Header — Scroll State
   ============================================= */
.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  background: rgba(13, 1, 33, 0.97);
}


/* =============================================
   13. Footer — Wrapper
   ============================================= */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}


/* =============================================
   14. Footer — Top (Brand + Columns)
   ============================================= */
.footer-top {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-top .footer-container {
  display: flex;
  gap: var(--space-3xl);
  align-items: flex-start;
}


/* =============================================
   15. Footer — Brand & Tagline
   ============================================= */
.footer-brand {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}


/* =============================================
   16. Footer — Social Icons
   ============================================= */
.footer-social {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--color-text-dim);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  outline-offset: 3px;
}

.social-link:hover {
  color: var(--color-accent);
  background: rgba(255, 45, 120, 0.1);
  border-color: rgba(255, 45, 120, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--color-accent-glow);
}


/* =============================================
   17. Footer — Navigation Columns
   ============================================= */
.footer-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-col-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-menu li a {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.footer-menu li a:hover {
  color: var(--color-cyan);
}


/* =============================================
   18. Footer — Contact Column
   ============================================= */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
}

.footer-contact li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-cyan);
}

.footer-contact li a {
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.footer-contact li a:hover {
  color: var(--color-cyan);
}


/* =============================================
   19. Footer — Bottom Bar
   ============================================= */
.footer-bottom {
  background: var(--footer-bottom-bg);
  border-top: 1px solid rgba(191, 95, 255, 0.1);
  padding: var(--space-lg) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
}

.footer-legal-links a {
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-purple);
}


/* =============================================
   20. Responsive — Tablet (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--space-xl);
  }

  .footer-top .footer-container {
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .footer-brand {
    width: 100%;
    max-width: 400px;
  }

  .footer-social {
    flex-direction: row;
  }
}


/* =============================================
   21. Responsive — Mobile (≤768px)
   ============================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .container,
  .header-inner,
  .footer-container {
    padding-inline: var(--space-lg);
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-nav,
  .header-cta {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
  }

  .footer-top {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}


/* =============================================
   22. Responsive — Small Mobile (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .container,
  .header-inner,
  .footer-container {
    padding-inline: var(--space-md);
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    max-width: 100%;
  }
}
