/* ==========================================================================
   RaveOS Design System & Global Stylesheet
   Based on RaveOS branding guidelines:
   - Deep graphite surfaces: #151719, #1e2023, #282a2e
   - RaveOS Green accent: #68ad58, hover: #579349, dark: #285226
   - Clean, technical, functional desktop layout
   ========================================================================== */

:root {
  --bg-base: #151719;
  --bg-surface: #1e2023;
  --bg-card: #24272b;
  --bg-card-hover: #2a2e34;
  --bg-elevated: #2f343b;

  --border-subtle: #2b2f36;
  --border-main: #373d47;
  --border-focus: #68ad58;

  --accent-primary: #68ad58;
  --accent-hover: #7ac069;
  --accent-dark: #285226;
  --accent-muted: rgba(104, 173, 88, 0.15);

  --text-main: #f0f2f5;
  --text-muted: #9ba1a6;
  --text-dim: #6c737c;

  --code-bg: #111214;
  --code-border: #282c34;

  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;

  --font-sans: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Menlo, monospace;

  --container-width: 1140px;
  --header-height: 64px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(30, 32, 35, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.brand-link:hover {
  color: var(--accent-primary);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background-color: var(--accent-muted);
  color: var(--accent-primary);
  border: 1px solid var(--accent-dark);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-item a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-item a:hover {
  color: var(--text-main);
  background-color: var(--bg-card);
}

.nav-item.active a {
  color: var(--accent-primary);
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--accent-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-kick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.nav-kick-btn.is-live-btn {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #0b1409 !important;
  font-weight: 700;
}

.nav-kick-btn.is-live-btn:hover {
  background-color: var(--accent-hover);
  color: #000000 !important;
}

.nav-kick-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-dim);
  display: inline-block;
  transition: all 0.3s ease;
}

.nav-kick-dot.dot-live {
  background-color: #000000;
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  animation: pulse-live 1.8s infinite;
}

.nav-kick-dot.dot-offline {
  background-color: #6c737c;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-main);
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Buttons & UI Elements (Square, functional Qt/Linux style)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #0b1409;
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #000000;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-main);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-muted);
  color: #ffffff;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.badge-green {
  background: var(--accent-muted);
  color: var(--accent-primary);
  border-color: var(--accent-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero .container {
  max-width: 1320px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  color: var(--accent-primary);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-meta-item strong {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Authentic GNOME Console matching image.png */
.gnome-console {
  background-color: #1e1e1e;
  border: 1px solid #333333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.console-topbar {
  background-color: #2b2b2b;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #383838;
}

.console-buttons {
  display: flex;
  gap: 0.45rem;
}

.console-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #4a4a4a;
}

.console-tab-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a1a1aa;
}

.console-inner {
  padding: 1.25rem 1.4rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  background-color: #181818;
}

.ff-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.ff-logo {
  color: #10b981;
  font-family: monospace;
  font-size: 0.58rem;
  line-height: 1.08;
  letter-spacing: -0.2px;
  white-space: pre;
  user-select: none;
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.28);
}

.ff-info {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.ff-user {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.84rem;
}

.ff-dash {
  color: #52525b;
  margin: 0.1rem 0 0.25rem;
  letter-spacing: -1px;
  user-select: none;
}

.ff-row {
  display: flex;
  gap: 0.35rem;
  white-space: nowrap;
  margin: 0.08rem 0;
}

.ff-k {
  color: #10b981;
  font-weight: 600;
}

.ff-arrow {
  color: #71717a;
}

.ff-v {
  color: #f4f4f5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ff-palette {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0.6rem;
  width: 140px;
}

.ff-pal-row {
  display: flex;
  height: 9px;
}

.ff-pal-block {
  flex: 1;
}

.ff-bottom-prompt {
  margin-top: 0.85rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.8rem;
  color: #f4f4f5;
}

.ff-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: #ffffff;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   RaveOS Dynamic Sub-Navigation Tabs
   ========================================================================== */
.rave-tabs-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  backdrop-filter: blur(8px);
}

.rave-tabs-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rave-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--text-muted);
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.rave-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: #4b5563;
}

.rave-tab-btn.active {
  background: var(--accent-muted);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(104, 173, 88, 0.2);
}

.rave-tab-pane {
  display: none;
}

.rave-tab-pane.active {
  display: block;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 650px) {
  .ff-logo {
    display: none;
  }
}

.terminal-fastfetch-wrapper {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.terminal-ascii-logo {
  color: var(--accent-primary);
  font-family: var(--font-mono), monospace;
  font-size: 0.46rem;
  line-height: 1.08;
  white-space: pre;
  user-select: none;
  flex-shrink: 0;
}

.terminal-stats-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 550px) {
  .terminal-ascii-logo {
    display: none;
  }
}

/* ==========================================================================
   Section & Grid Cards
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background-color: var(--accent-primary);
  border-radius: 1px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

/* Card Component (Functional, crisp rectangular panels) */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-main);
  background-color: var(--bg-card);
}

.card-icon {
  width: 36px;
  height: 36px;
  background-color: var(--accent-muted);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  background-color: var(--bg-base);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
}

.card:hover .post-card-thumb {
  transform: scale(1.02);
  border-color: var(--accent-primary);
}

.post-hero-thumb {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background-color: var(--bg-card);
}

/* ==========================================================================
   Wide Post Layout & Typography
   ========================================================================== */
.post-container {
  max-width: 1140px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.back-link:hover {
  color: var(--accent-primary);
  transform: translateX(-3px);
}

.post-header-block {
  margin-bottom: 2.5rem;
}

.post-title-main {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.post-lead-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.post-article-body {
  padding: 3rem 3.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d6d9dc;
}

.post-article-body h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.post-article-body h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-hover);
}

.post-article-body p {
  margin-bottom: 1.5rem;
}

.post-article-body ul, .post-article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-article-body li {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

.post-article-body pre {
  margin: 1.75rem 0;
  padding: 1.5rem;
  font-size: 0.92rem;
}

.post-article-body img {
  margin: 2rem auto !important;
  max-height: 750px;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  display: block;
}

.post-article-body p:has(> img),
.docs-content p:has(> img) {
  text-align: center;
}

.post-footer-actions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .post-article-body {
    padding: 1.75rem 1.25rem;
    font-size: 1rem;
  }

  .post-title-main {
    font-size: 1.9rem;
  }
}

/* ==========================================================================
   Specs / System Architecture Table
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th, td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Download Banner & Release Box
   ========================================================================== */
.download-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

.checksum-box {
  background-color: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.copy-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
}

/* ==========================================================================
   Documentation Layout
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  height: fit-content;
}

.docs-nav-group {
  margin-bottom: 1.5rem;
}

.docs-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.docs-nav-list {
  list-style: none;
}

.docs-nav-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.docs-nav-list a:hover {
  color: var(--text-main);
  background-color: var(--bg-surface);
}

.docs-nav-list a.active {
  color: var(--accent-primary);
  background-color: var(--bg-surface);
  border-left-color: var(--accent-primary);
  font-weight: 600;
}

.docs-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  min-height: 500px;
}

.docs-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.docs-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.docs-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.docs-content p, .docs-content ul, .docs-content ol {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.docs-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-main);
  margin: 2rem auto !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: block;
}

.docs-content li {
  margin-left: 1.5rem;
  margin-bottom: 0.35rem;
}

.docs-content code {
  font-family: var(--font-mono);
  background-color: var(--code-bg);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  color: #f3f4f6;
}

.docs-content pre {
  background-color: var(--code-bg);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.docs-content pre code {
  background-color: transparent;
  border: none;
  padding: 0;
  color: #f0f2f5;
  font-size: 0.88rem;
}

/* Callout Box */
.callout {
  border-left: 4px solid var(--accent-primary);
  background-color: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.callout-info {
  border-left-color: #3b82f6;
}

.callout-warning {
  border-left-color: #f59e0b;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  color: var(--text-dim);
  margin-top: 0.75rem;
  max-width: 320px;
  line-height: 1.5;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .download-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .hero-content h1 {
    font-size: 2.1rem;
  }
}

/* ==========================================================================
   Stream Player & Live Detection
   ========================================================================== */
.stream-player-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-top: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.3s ease;
}

.stream-player-wrapper.is-live {
  border-color: var(--accent-primary);
}

.stream-player-header {
  background-color: var(--bg-card);
  padding: 0.65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stream-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stream-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--text-dim);
  transition: all 0.3s ease;
}

.stream-status-dot.dot-live {
  background-color: #00e676;
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  animation: pulse-live 1.8s infinite;
}

.stream-status-dot.dot-offline {
  background-color: #6c737c;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.player-aspect-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background-color: #000;
}

.player-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Offline Stream Card */
.stream-offline-card {
  padding: 2.75rem 2rem;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #171a1d 100%);
}

.offline-card-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  max-width: 920px;
  margin: 0 auto;
}

.offline-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.offline-avatar {
  border-radius: 50%;
  border: 2px solid var(--border-main);
  background-color: var(--bg-card);
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.offline-badge-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bg-base);
  border: 1px solid var(--border-main);
  color: var(--text-dim);
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.offline-details {
  flex-grow: 1;
}

@media (max-width: 700px) {
  .offline-card-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .offline-details div {
    justify-content: center;
  }
}

/* ==========================================================================
   Cookie Consent Banner & Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-main);
  padding: 1.15rem 0;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.cookie-banner-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 680px;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  max-width: 540px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.cookie-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s ease;
}

.cookie-modal-close:hover {
  color: var(--text-main);
}

.cookie-modal-body {
  padding: 1.5rem;
  max-height: 65vh;
  overflow-y: auto;
}

.cookie-category-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-footer {
  padding: 1rem 1.5rem;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Custom Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #373d47;
  transition: 0.25s ease;
  border-radius: 24px;
  border: 1px solid var(--border-main);
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--accent-primary);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
  background-color: #0b1409;
}

/* ==========================================================================
   Merch Hero Showcase
   ========================================================================== */
.merch-hero-card {
  padding: 2.75rem 2.5rem;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #191c1f 100%);
  margin-bottom: 3.5rem;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.merch-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.merch-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-main);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
}

.merch-product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover .merch-product-img {
  border-color: var(--accent-primary);
  transform: scale(1.02);
}

@media (max-width: 860px) {
  .merch-hero-card {
    padding: 1.75rem 1.25rem;
  }
  .merch-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .merch-hero-img {
    height: 240px;
  }
}

/* Compact Post Cards */
.compact-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.compact-post-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.compact-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-surface);
}

.compact-post-thumb {
  width: 90px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-base);
}

.compact-post-content {
  flex: 1;
  min-width: 0;
}

.compact-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.compact-post-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-post-card:hover .compact-post-title {
  color: var(--accent-primary);
}

.compact-post-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .compact-post-grid {
    grid-template-columns: 1fr;
  }
  .compact-post-thumb {
    width: 75px;
    height: 65px;
  }
}




