:root {
  --primary-color: #22c55e;
  /* --primary-text: accessible text variant of --primary-color.
     Dark  theme: #22c55e (9.8:1 on #111) — passes WCAG AA.
     Light theme: #c2410c (5.6:1 on white) — passes WCAG AA.
     Use var(--primary-text) for ANY text/icon; use var(--primary-color) for
     decorative borders, backgrounds, or large ornamental headings only. */
  --primary-text: #22c55e;
  --bg-dark: #111;
  --bg-image-dark: url("/assets/Images/AstralForge_Background_Dark.webp");
  --bg-image-light: url("/assets/Images/AstralForge_Background_Light.webp");
  --bg-blur: 2px;
  --hero-blur: 0px;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: 2px;
}

html,
body {
  height: 100%;
  background: #000;
  overflow-x: hidden;
}

body {
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: #fff;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
  padding-top: 100px;
}

body {
  top: 0 !important;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget-icon {
  display: none !important;
}

body.has-alert {
  padding-top: 144px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-image-dark) center center / cover no-repeat;
  filter: blur(var(--bg-blur));
  z-index: -2;
  transform: scale(1.03) translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
  transform: translateZ(0);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header.has-alert {
  top: 44px;
}

.site-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  background: rgba(34, 197, 94, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-alert__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.site-alert__label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.site-alert__message {
  opacity: 0.95;
}

.site-alert__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-alert--maintenance {
  background: rgba(245, 158, 11, 0.2);
}

.site-alert--hotfix {
  background: rgba(34, 197, 94, 0.2);
}

.site-alert--info {
  background: rgba(59, 130, 246, 0.2);
}

header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  height: 40px;
}

nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-container {
  position: relative;
  margin-right: 10px;
}

.search-input {
  padding: 8px 16px 8px 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  width: 200px;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  width: 250px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-top: 8px;
  display: none;
  z-index: 1001;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(34, 197, 94, 0.15);
}

.search-result-item a {
  color: #fff;
  text-decoration: none;
}

.search-result-title {
  font-weight: 500;
  color: var(--primary-text);
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary-text);
}

/* ================= ACCESSIBLE FOCUS STYLES (WCAG 2.4.11) ================= */
/* 3px solid outline with offset ensures 3:1 contrast against surrounding UI */

*:focus-visible {
  outline: 3px solid var(--primary-text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Dark-bg elements: white focus ring is more legible than green */
nav a:focus-visible,
header *:focus-visible {
  outline-color: #fff;
}

/* Light theme: --primary-text is overridden to #c2410c (orange, 5.6:1 on white) */

/* ================= ACCESSIBLE FOCUS STYLES END ========================== */

/* ================= THEME TOGGLE ================= */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--primary-text);
  outline-offset: 3px;
}

.theme-toggle-track {
  width: 36px;
  height: 18px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
}

.theme-toggle-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* ================= LIGHT THEME OVERRIDES ================= */

html[data-theme="light"] {
  color-scheme: light;
  /* Override primary to orange — accessible on white (5.6:1) */
  --primary-color: #ea580c;
  --primary-text: #c2410c;
}

html[data-theme="light"] body {
  color: #1b1b1b;
  background: #f6f4f1;
}

html[data-theme="light"] body::before {
  background: var(--bg-image-light) center center / cover no-repeat;
  filter: blur(var(--bg-blur)) brightness(1.08) saturate(0.85);
}

html[data-theme="light"] body::after {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

html[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .headerlogo a {
  color: #1b1b1b;
}

html[data-theme="light"] .headerlogo a:hover {
  color: #c2410c;
}

html[data-theme="light"] nav a {
  color: #1b1b1b;
}

html[data-theme="light"] nav a:hover {
  color: #c2410c;
}

html[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .nav-dropdown-menu a {
  color: #333;
}

html[data-theme="light"] .nav-dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1b1b1b;
}

html[data-theme="light"] .nav-dropdown > a::after {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polygon points="5,7 1,3 9,3" fill="%23222222"/></svg>') no-repeat center;
  background-size: contain;
}

html[data-theme="light"] .nav-dropdown-label {
  color: #333;
}

html[data-theme="light"] .nav-dropdown-label::after {
  opacity: 0.6;
}

html[data-theme="light"] .nav-dropdown-item:hover .nav-dropdown-label::after {
  opacity: 1;
}

html[data-theme="light"] .nav-dropdown-label:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1b1b1b;
}

html[data-theme="light"] .nav-submenu {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .nav-submenu a {
  color: #333;
}

html[data-theme="light"] .nav-submenu a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1b1b1b;
}

html[data-theme="light"] .hero {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

html[data-theme="light"] .glass-card,
html[data-theme="light"] .about,
html[data-theme="light"] .hub-card,
html[data-theme="light"] .readme-layout,
html[data-theme="light"] .gallery-section {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .search-result-item {
  color: #333;
}

html[data-theme="light"] .carousel-dots .dot {
  background: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .carousel-dots .dot:hover {
  background: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .readme-nav a,
html[data-theme="light"] .readme-content p,
html[data-theme="light"] .requirements-list li {
  color: #333;
}

html[data-theme="light"] .readme-content .warning {
  color: #b40000;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.75);
  color: #1b1b1b;
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .theme-toggle-track {
  background: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(16px);
  background: #1b1b1b;
}

html[data-theme="light"] .btn-primary {
  background-color: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

html[data-theme="light"] .btn-primary:hover {
  background-color: rgba(234, 88, 12, 0.2);
  border-color: rgba(234, 88, 12, 0.5);
  color: #9a3412;
}

html[data-theme="light"] .search-input {
  background: rgba(255, 255, 255, 0.9);
  color: #1b1b1b;
  border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .search-input::placeholder {
  /* rgba(27,27,27,0.6) ≈ #767676 = 4.5:1 (borderline); use #595959 = 7:1 */
  color: #595959;
}

html[data-theme="light"] .search-input:focus {
  background: #fff;
  border-color: #c2410c;
}

html[data-theme="light"] .search-results {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .search-result-item a {
  color: #1b1b1b;
}

html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero p {
  color: #1b1b1b;
  text-shadow: none;
}

html[data-theme="light"] .about,
html[data-theme="light"] .MediaSection,
html[data-theme="light"] .gallery-section {
  background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .gallery-section h2 {
  color: #1b1b1b;
}

html[data-theme="light"] .gallery-text-block {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .gallery-text-block p {
  color: #333;
}

html[data-theme="light"] .feature-text h3 {
  color: #1b1b1b;
}

html[data-theme="light"] .feature-text {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .feature-text p,
html[data-theme="light"] .section-text,
html[data-theme="light"] .utility-card p,
html[data-theme="light"] .note {
  color: #3a3a3a;
}

html[data-theme="light"] .feature-text a {
  /* #9a3412 = 7.3:1 on white — passes WCAG AA */
  color: #9a3412;
}

html[data-theme="light"] .feature-text a:hover {
  color: #7c2d12;
  border-bottom-color: #9a3412;
  text-shadow: 0 0 8px rgba(154, 52, 18, 0.2);
}

html[data-theme="light"] .readme-section h3.sub-heading {
  color: #1b1b1b;
}

html[data-theme="light"] .link-list a {
  color: #0b5ed7;
}

html[data-theme="light"] .code-block {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .code-block code {
  color: #1b1b1b;
}

html[data-theme="light"] .utility-card {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] footer {
  background: #f0ede8;
  color: #555;
}

html[data-theme="light"] .contributors-list,
html[data-theme="light"] .contributors-card ul,
html[data-theme="light"] .contributors-amount,
html[data-theme="light"] .contributors-row,
html[data-theme="light"] .contributors-top {
  color: #3a3a3a;
}

html[data-theme="light"] .contributors-card,
html[data-theme="light"] .contributors-row {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .contributors-row--header {
  color: #1b1b1b;
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .contributors-note {
  color: rgba(27, 27, 27, 0.65);
}

html[data-theme="light"] .contributors-btn {
  color: #1b1b1b;
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .contributors-btn:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .project-banner {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 60%),
    var(--banner-image) center center / cover no-repeat;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .project-stat {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .project-stat__value {
  color: #c2410c;
}

html[data-theme="light"] .project-stat__label {
  color: rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .project-banner__eyebrow {
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .project-banner__title {
  color: #1b1b1b;
  text-shadow: none;
}

html[data-theme="light"] .project-banner__subtitle {
  color: rgba(0, 0, 0, 0.7);
}

/* ================= NAV DROPDOWN ================= */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Dropdown panel */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  min-width: 180px;
  padding: 10px 0;

  background: rgba(0, 0, 0, 0.589);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Dropdown links */
.nav-dropdown-menu a {
  padding: 12px 20px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polygon points="5,7 1,3 9,3" fill="white"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.8;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Show on hover */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
}

/* Nested dropdown styles */
.nav-dropdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.nav-dropdown-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: -16px;
  width: 16px;
  height: 100%;
}

.nav-dropdown-label {
  padding: 12px 20px;
  color: #ccc;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.nav-dropdown-label::after {
  content: "›";
  margin-left: 12px;
  font-size: 1.3rem;
  font-weight: normal;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-label::after {
  opacity: 1;
  transform: translateX(2px);
}

.nav-dropdown-label:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-submenu {
  position: absolute;
  left: calc(100% - 2px);
  top: 0;
  min-width: 200px;
  padding: 10px 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-left: 0;
  z-index: 1001;
}

.nav-dropdown-item:hover .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Keep submenu open when hovering over it */
.nav-submenu:hover {
  opacity: 1;
  pointer-events: auto;
}

.nav-submenu a {
  padding: 10px 20px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding-left: 24px;
}

.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(var(--hero-blur));
  -webkit-backdrop-filter: blur(var(--hero-blur));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

  position: relative;
  z-index: 1;
  margin-top: -100px;
}

body.has-alert .hero {
  margin-top: -144px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.hero p {
  max-width: 800px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.4);
}

.container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.glass-card {
  position: relative;
  width: 450px;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: scale(1.03);
}

.glass-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover::before {
  opacity: 1;
}

.card-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.glass-card:hover .card-label {
  opacity: 1;
}

.about {
  background: var(--bg-dark);
  padding: 80px 20px;
  text-align: center;
}

.about img {
  margin: 0 auto 30px;
  width: min(320px, 60%);
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.2rem);
}


/* ================= CREATOR SPOTLIGHT ================= */

.creator-spotlight {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.creator-spotlight .section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 60px;
  color: #fff;
}

.creator-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(34, 197, 94, 0.15);
}

.creator-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgba(8, 8, 8, 0.9);
  background-image: var(--creator-avatar-url);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 2px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.creator-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.08) contrast(1.06);
  transition: transform 0.4s ease;
}

.creator-card:hover .creator-avatar {
  transform: scale(1.05);
}

.creator-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.creator-name {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-color, #22c55e);
  margin: 0;
  font-weight: 700;
}

.creator-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.creator-bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creator-bio p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.creator-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.creator-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.creator-link svg {
  width: 24px;
  height: 24px;
}

.creator-link.discord {
  color: #5865F2;
}

.creator-link.discord:hover {
  background: #5865F2;
  color: white;
  border-color: #5865F2;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.creator-link.kofi {
  color: #FF5E5B;
}

.creator-link.kofi:hover {
  background: #FF5E5B;
  color: white;
  border-color: #FF5E5B;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 94, 91, 0.4);
}

.creator-link.youtube {
  color: #FF0000;
}

.creator-link.youtube:hover {
  background: #FF0000;
  color: white;
  border-color: #FF0000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Light theme adjustments */
html[data-theme="light"] .creator-spotlight .section-title {
  color: #1b1b1b;
}

html[data-theme="light"] .creator-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .creator-card:hover {
  box-shadow: 0 12px 48px rgba(234, 88, 12, 0.2);
}

html[data-theme="light"] .creator-name {
  color: #c2410c;
}

html[data-theme="light"] .creator-tagline {
  color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .creator-bio p {
  color: rgba(0, 0, 0, 0.8);
}

html[data-theme="light"] .creator-link {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .creator-link.discord {
  color: #5865F2;
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.3);
}

html[data-theme="light"] .creator-link.discord:hover {
  background: #5865F2;
  color: white;
  border-color: #5865F2;
}

html[data-theme="light"] .creator-link.kofi {
  color: #FF5E5B;
  background: rgba(255, 94, 91, 0.1);
  border-color: rgba(255, 94, 91, 0.3);
}

html[data-theme="light"] .creator-link.kofi:hover {
  background: #FF5E5B;
  color: white;
  border-color: #FF5E5B;
}

html[data-theme="light"] .creator-link.youtube {
  color: #FF0000;
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
}

html[data-theme="light"] .creator-link.youtube:hover {
  background: #FF0000;
  color: white;
  border-color: #FF0000;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .creator-card {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 35px 25px;
    text-align: center;
  }

  .creator-image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .creator-links {
    justify-content: center;
  }
}

.MediaSection {
  background: #1C1C1C;
  padding: 60px 0;
  text-align: center;
}

.gallery-section {
  background: #1C1C1C;
  padding: 80px 20px;
  text-align: center;
}

.gallery-section h2 {
  color: #fff;
  margin-bottom: 40px;
}

/* ================= CAROUSEL ================= */

.gallery-carousel {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 20px;
  position: relative;
}

.carousel-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  margin-bottom: 24px;
}

.carousel-scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome, Safari */
}

.carousel-item {
  flex: 0 0 300px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-item:hover img {
  transform: scale(1.1);
}

.carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.carousel-item:hover::before {
  opacity: 1;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dots .dot.active {
  background: rgba(255, 255, 255, 0.75);
  width: 24px;
  border-radius: 5px;
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.mediagrid {
  display: grid;
  gap: 8px;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
}

.mediagrid div:not(.gallery-text-block) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  cursor: pointer;
}

.mediagrid div:nth-child(2) {
  grid-column: span 2;
}

.mediagrid div:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.mediagrid div:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.mediagrid div:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.mediagrid div:nth-child(9) {
  grid-column: span 2;
  grid-row: 4;
}

.mediagrid div:nth-child(10) {
  grid-column: 3;
  grid-row: 4;
}

.gallery-text-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default !important;
}

.gallery-text-block p {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

.mediagrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
  border-radius: 12px;
}

.mediagrid div:hover img {
  transform: scale(1.08);
  filter: brightness(1.2);
}

.mediagrid div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34, 197, 94, 0);
  transition: background 0.3s ease;
  z-index: 1;
  pointer-events: none;
  border-radius: 12px;
}

.mediagrid div:hover::before {
  background: rgba(34, 197, 94, 0.1);
}

/* ================= FEATURES SECTION ================= */

.features {
  padding: 100px 20px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  color: #fff;
}

.feature-text p {
  font-size: 1rem;
  color: #ccc;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.feature-text p:last-child {
  margin-bottom: 0;
}

.feature-text a {
  color: var(--primary-color, #22c55e);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.feature-text a:hover {
  color: #34d370;
  border-bottom-color: var(--primary-color, #22c55e);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.feature-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feature-image:hover img {
  transform: scale(1.05);
}

/* ================= COMMUNITY PULSE ================= */

.community-pulse {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.community-pulse__header {
  max-width: 760px;
  margin-bottom: 24px;
}

.community-pulse__header h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.community-pulse__header p {
  color: rgba(255, 255, 255, 0.75);
}

.community-pulse__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.community-pulse__card {
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.community-pulse__card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.community-pulse__card p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}

.community-pulse__card a {
  color: var(--primary-color, #22c55e);
  text-decoration: none;
  font-weight: 600;
}

.community-pulse__card a:hover {
  text-decoration: underline;
}

.community-pulse__supporters {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 20px;
}

.community-pulse__supporters h3 {
  margin-bottom: 12px;
}

.community-supporter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.community-supporter-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.community-supporter-name {
  color: #fff;
  font-weight: 600;
}

.community-supporter-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

/* ===== Readme Typography ===== */
.readme-section h3.sub-heading {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #fff;
}

.readme-section h4.mini-heading {
  margin-top: 24px;
  margin-bottom: 6px;
  font-size: 1.3rem;
  color: var(--primary-text);
}

/* ===== Link Lists ===== */
.link-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 20px;
}

.link-list li {
  margin-bottom: 8px;
}

.link-list a {
  color: #6fb6ff;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* ===== Code Block ===== */
.code-block {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-block code {
  color: #dcdcdc;
}

/* ===== Notes ===== */
.note {
  margin-top: 14px;
  color: #aaa;
  font-size: 0.9rem;
}

.sub-heading {
  color: var(--primary-text);
  font-size: 1.3rem;
  margin-top: 15px;
  margin-bottom: 15px;
}

.warnig {
  /* #ff000088 fails contrast; use solid accessible red instead */
  color: #ef4444;
}

.preinstall-warning {
  margin: 20px 0 30px;
  padding: 14px 18px;
  border-radius: 12px;

  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.35);
  color: #ff6b6b;

  font-size: 0.95rem;
}

.section-text {
  color: #cfcfcf;
  max-width: 760px;
  margin-bottom: 20px;
}

.utility-card {
  margin-bottom: 26px;
  padding: 22px 26px;
  border-radius: 18px;

  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.utility-card h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: var(--primary-text);
}

.utility-card p {
  color: #cfcfcf;
  margin-bottom: 12px;
}

/* ================= CONTRIBUTORS ================= */
.contributors-list {
  margin: 12px 0 24px;
  padding-left: 20px;
  color: #cfcfcf;
}

.contributors-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 30px;
}

.contributors-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contributors-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.contributors-btn--patreon {
  background: rgba(255, 255, 255, 0.14);
}

.contributors-btn--kofi {
  background: rgba(255, 255, 255, 0.1);
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 16px 0 32px;
}

.contributors-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.contributors-tier-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.contributors-card h3 {
  margin-bottom: 6px;
}

.contributors-amount {
  color: #cfcfcf;
  font-weight: 600;
  margin-bottom: 10px;
}

.contributors-card ul {
  margin: 0;
  padding-left: 18px;
  color: #cfcfcf;
}

.contributors-table {
  display: grid;
  gap: 8px;
  margin: 12px 0 32px;
}

.contributors-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfcfcf;
}

.contributors-row--header {
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contributors-top {
  margin: 12px 0 20px;
  padding-left: 20px;
  color: #cfcfcf;
}

.contributors-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ================= FOOTER ================= */
footer {
  background: #000;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

footer .social-share {
  margin: 10px auto 0;
  padding: 0;
  gap: 10px;
  justify-content: center;
  background: transparent;
  border: none;
}

footer .social-share-label {
  display: none;
}

footer .share-btn {
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer .share-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ================= PROJECT BANNER ================= */

.project-banner {
  margin: 20px 0 40px;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(130deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 60%),
    var(--banner-image) center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.project-banner__inner {
  display: grid;
  gap: 18px;
}

.project-banner__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.project-banner__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 6px;
}

.project-banner__subtitle {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
}

.project-banner__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.project-stat {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-stat__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--banner-accent, #22c55e);
}

.project-stat__label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.project-banner__stats[data-stats-state="loading"] {
  opacity: 0.92;
}

.project-banner__stats[data-stats-state="error"] .project-stat__value {
  color: #fca5a5;
}

.modlist-size[data-modlist-state="loading"] {
  opacity: 0.92;
}

.modlist-size[data-modlist-state="error"] {
  color: #fecaca;
}

/* ================= FAQ ================= */

.faq-section {
  margin: 40px 0 60px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-header p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
  margin-top: 10px;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.faq-filter {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-filter.is-active,
.faq-filter:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.6);
}

.faq-items {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 16px;
  color: rgba(255, 255, 255, 0.75);
}

.faq-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-feedback-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.faq-vote {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.faq-vote:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.faq-vote--active[data-faq-vote="helpful"] {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.faq-vote--active[data-faq-vote="unhelpful"] {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.faq-vote-count {
  font-weight: 600;
}

.faq-empty {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
}

/* ================= KNOWN ISSUES ================= */

.issue-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0 30px;
}

.issue-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
}

.issue-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.issue-card__summary {
  color: rgba(255, 255, 255, 0.75);
}

.issue-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.issue-status--in-progress {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.issue-status--resolved {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.issue-workaround {
  margin-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.issue-workaround summary {
  cursor: pointer;
  color: var(--primary-text);
  font-weight: 600;
}

/* ================= CONTRIBUTION FORM ================= */

.contribution-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0 30px;
}

.contribution-form,
.contribution-preview {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
}

.contribution-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.contribution-field label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.contribution-field input,
.contribution-field textarea,
.contribution-field select {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.contribution-field textarea {
  min-height: 120px;
  resize: vertical;
}

.contribution-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.contribution-copy {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(34, 197, 94, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.contribution-preview__body {
  white-space: pre-wrap;
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 12px;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-text {
    padding: 25px;
  }

  .feature-text p {
    max-width: 100%;
  }

  .community-pulse__grid {
    grid-template-columns: 1fr;
  }

  .community-supporter-list {
    grid-template-columns: 1fr;
  }
}

.gallery-lightbox-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  width: 95%;
  max-width: 1400px;
  margin: 60px auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .search-input {
    width: 150px;
  }

  .search-input:focus {
    width: 200px;
  }

  nav {
    margin-top: 10px;
    flex-wrap: wrap;
    width: 100%;
  }

  /* Mobile nested dropdown adjustments */
  .nav-submenu {
    position: relative;
    left: 0;
    margin-left: 10px;
    margin-top: 5px;
    width: calc(100% - 20px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }

  .nav-dropdown-item:hover .nav-submenu {
    transform: translateX(0);
  }

  .btn-primary {
    width: 100%;
    max-width: 300px;
  }

  .feature-text,
  .feature-image,
  .community-pulse__card,
  .community-pulse__supporters {
    border-radius: 18px;
  }

  .mediagrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mediagrid div:nth-child(2) {
    grid-column: span 1;
  }
}

.headerlogo {
  text-transform: uppercase;
  color: var(--primary-text);
  font-size: 12px;
}

.headerlogo a {
  color: #fff;
  text-decoration: none;
}

.headerlogo a:hover {
  color: var(--primary-text);
}

/* Footer Styles */
.site-footer {
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: center;
}

.footer-text a {
  color: var(--primary-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: #fff;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.footer-link svg {
  width: 20px;
  height: 20px;
}

.footer-link.discord {
  color: #5865F2;
}

.footer-link.discord:hover {
  background: #5865F2;
  color: white;
  border-color: #5865F2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.footer-link.youtube {
  color: #FF0000;
}

.footer-link.youtube:hover {
  background: #FF0000;
  color: white;
  border-color: #FF0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.footer-link.kofi {
  color: #FF5E5B;
}

.footer-link.kofi:hover {
  background: #FF5E5B;
  color: white;
  border-color: #FF5E5B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 94, 91, 0.4);
}

.footer-link.patreon {
  color: #FF424D;
}

.footer-link.patreon:hover {
  background: #FF424D;
  color: white;
  border-color: #FF424D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 66, 77, 0.4);
}

.footer-link.nexus {
  color: #DA8E35;
}

.footer-link.nexus:hover {
  background: #DA8E35;
  color: white;
  border-color: #DA8E35;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 142, 53, 0.4);
}

/* Light theme footer */
html[data-theme="light"] .site-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .footer-text {
  /* rgba(0,0,0,0.7) ≈ #4D4D4D = 7.2:1 on white — WCAG AAA */
  color: rgba(0, 0, 0, 0.75);
}

html[data-theme="light"] .footer-text a:hover {
  color: #000;
}

/* ─── Light theme: fix status badge contrast ─────────────────────
   Dark-mode badge colours (#fbbf24, #86efac) fail on light bgs; 
   force high-contrast text instead.                              */
html[data-theme="light"] .issue-status--in-progress {
  /* #fbbf24 on light bg ≈ 1.9:1 → FAILS; use #92400e = 6.1:1 */
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.45);
}

html[data-theme="light"] .issue-status--resolved {
  /* #86efac on light bg ≈ 1.8:1 → FAILS; use #166534 = 5.8:1 */
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.45);
}

html[data-theme="light"] .preinstall-warning {
  /* #ff6b6b on white ≈ 2.9:1 → FAILS; use #991b1b = 6.0:1 */
  color: #991b1b;
  background: rgba(255, 60, 60, 0.08);
  border-color: rgba(180, 0, 0, 0.25);
}

html[data-theme="light"] .footer-link {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .community-pulse__header p,
html[data-theme="light"] .community-pulse__card p,
html[data-theme="light"] .community-supporter-meta {
  color: rgba(0, 0, 0, 0.72);
}

html[data-theme="light"] .community-pulse__card,
html[data-theme="light"] .community-pulse__supporters,
html[data-theme="light"] .community-supporter-item {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .community-supporter-name {
  color: #1b1b1b;
}

@media (max-width: 768px) {
  .footer-content {
    gap: 1.25rem;
  }
  
  .footer-social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
