/* ============================================================
   CrobertTV – Red Tech Theme
   ============================================================ */
:root {
  --bg: #0c0a0a;
  --bg-elevated: #141010;
  --bg-card: #1a1414;
  --border: #3a2222;
  --text: #f2e8e8;
  --text-muted: #b89a9a;
  --accent: #dc2626;
  --accent-hover: #ef4444;
  --accent-glow: rgba(220, 38, 38, 0.28);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 34, 34, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 34, 34, 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.logo-text span { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(220, 38, 38, 0.12);
}

.main-nav a.btn-nav {
  background: var(--accent);
  color: #fff !important;
  margin-left: 8px;
}

.main-nav a.btn-nav:hover {
  background: var(--accent-hover);
}

/* CMS "More" dropdown – keeps main menu clean */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.has-active .nav-dropdown-toggle {
  color: var(--text);
  background: rgba(220, 38, 38, 0.1);
}
.nav-dropdown-toggle svg {
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--text);
  background: rgba(220, 38, 38, 0.12);
}


.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.2s;
}

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

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

.hero p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent-hover);
  border: 1px solid rgba(220, 38, 38, 0.45);
}

.btn-outline:hover {
  background: rgba(220, 38, 38, 0.1);
}

.section { padding: 48px 0; }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(220, 38, 38, 0.12);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.05rem;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.content-block h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.content-block p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 16px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: 0.15s;
}

.social-card:hover {
  border-color: var(--accent);
  background: rgba(220, 38, 38, 0.06);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.social-icon.ebay { background: #e53238; color: #fff; }
.social-icon.facebook { background: #1877f2; color: #fff; }
.social-icon.youtube { background: #ff0000; color: #fff; }
.social-icon.twitch { background: #9146ff; color: #fff; }
.social-icon.kick { background: #53fc18; color: #000; }
.social-icon.linktree { background: #43e55e; color: #1a1a1a; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-icon.tiktok { background: #010101; color: #fff; }
.social-icon.x { background: #000; color: #fff; }
.social-icon.discord { background: #5865f2; color: #fff; }
.social-icon.paypal { background: #003087; color: #fff; }
.social-icon.website { background: var(--accent); color: #fff; }
.social-icon.other { background: #374151; color: #fff; }

.social-card span { font-weight: 500; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.form-msg.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.form-msg.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 40px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand .logo-img {
  width: 28px;
  height: 28px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-meta p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.footer-meta a {
  color: var(--accent-hover);
  text-decoration: none;
}

.footer-meta .copy {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .main-nav a.btn-nav { margin-left: 0; text-align: center; }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 12px;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }


  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.mt-0 { margin-top: 0; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.accent { color: var(--accent); }


/* CMS / custom HTML content */
.custom-html,
.cms-page-body,
.cms-full-html {
  line-height: 1.7;
  color: var(--text);
}
.custom-html h1, .cms-page-body h1, .cms-full-html h1 { font-size: 2rem; margin: 0 0 16px; }
.custom-html h2, .cms-page-body h2, .cms-full-html h2 { font-size: 1.45rem; margin: 28px 0 12px; }
.custom-html h3, .cms-page-body h3, .cms-full-html h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.custom-html p, .cms-page-body p, .cms-full-html p { margin: 0 0 14px; color: var(--text-muted); }
.custom-html ul, .custom-html ol,
.cms-page-body ul, .cms-page-body ol,
.cms-full-html ul, .cms-full-html ol { margin: 0 0 16px 1.25rem; color: var(--text-muted); }
.custom-html li, .cms-page-body li, .cms-full-html li { margin-bottom: 6px; }
.custom-html a, .cms-page-body a, .cms-full-html a { color: var(--accent-hover); }
.custom-html img, .cms-page-body img, .cms-full-html img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}
.custom-html blockquote, .cms-page-body blockquote, .cms-full-html blockquote {
  border-left: 3px solid var(--accent);
  margin: 16px 0;
  padding: 8px 16px;
  color: var(--text-muted);
  background: rgba(220, 38, 38, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.custom-html table, .cms-page-body table, .cms-full-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.custom-html th, .custom-html td,
.cms-page-body th, .cms-page-body td,
.cms-full-html th, .cms-full-html td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.custom-html iframe, .cms-page-body iframe, .cms-full-html iframe {
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}
.cms-full-html {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.html-editor-full {
  min-height: 420px !important;
  font-size: 0.9rem !important;
  line-height: 1.5;
  tab-size: 2;
}


/* Image slideshow */
.ctv-slideshow {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16 / 9;
}
.ctv-slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.ctv-slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.ctv-slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.ctv-slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}
.ctv-slideshow-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 0.95rem;
}
.ctv-slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctv-slideshow-btn:hover { background: rgba(220, 38, 38, 0.85); }
.ctv-slideshow-btn.prev { left: 12px; }
.ctv-slideshow-btn.next { right: 12px; }
.ctv-slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.ctv-slideshow-dot {
  pointer-events: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}
.ctv-slideshow-dot.is-active,
.ctv-slideshow-dot:hover {
  background: var(--accent);
}
