/* SideHUD.com - Core Stylesheet */
:root {
  --bg-dark: #0a0e17;
  --bg-card: #131c2e;
  --bg-card-hover: #1a2740;
  --bg-input: #0f1624;
  --border-color: #24344d;
  --border-focus: #06b6d4;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --neon-cyan: #06b6d4;
  --neon-pink: #ec4899;
  --neon-purple: #a855f7;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1rem;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
}

.brand-badge {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link.active, .nav-link:hover {
  color: var(--neon-cyan);
  text-decoration: none;
}

/* Breadcrumbs */
.breadcrumb-bar {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb-bar ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-bar li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-dim);
}

/* Main Container */
.main-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  flex: 1;
  width: 100%;
}

/* Page Intro & Estimate Disclaimer */
.hero-section {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

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

.disclaimer-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #fbbf24;
  margin-bottom: 1.5rem;
}

.badge-estimate {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Card System */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Calculator Grid (Mobile First) */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-title {
    font-size: 2.35rem;
  }
}

/* Inputs & Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.input-with-presets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-preset {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset:hover, .btn-preset.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.text-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease;
}

.text-input:focus {
  border-color: var(--border-focus);
}

.input-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Platform Selectors */
.platform-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.platform-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.platform-btn:hover, .platform-btn.active {
  background: rgba(236, 72, 153, 0.15);
  border-color: var(--neon-pink);
  color: var(--text-main);
}

.platform-btn small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 2px;
}

/* Slider Controls */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-val-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-val-highlight {
  color: var(--neon-cyan);
  font-weight: 700;
}

input[type=range] {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--neon-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

/* Results Display Box */
.results-box {
  background: linear-gradient(180deg, #18233a 0%, #131c2e 100%);
  border: 1px solid #2e4363;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.primary-result-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.primary-result-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--neon-cyan);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.result-detail-list {
  list-style: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.result-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.result-detail-label {
  color: var(--text-muted);
}

.result-detail-value {
  font-weight: 700;
  color: var(--text-main);
}

/* TV & Console Checklist Section */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.check-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: #3b5073;
}

.check-item.checked {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

.check-item input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
  cursor: pointer;
}

.check-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.check-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Reserved Ad Containers (CLS Protection) */
.ad-slot-reserved {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  margin: 1.5rem auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ad-slot-reserved::before {
  content: "SPONSORED";
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* Standard IAB Fixed Dimensions */
.ad-leaderboard {
  min-height: 90px;
  max-width: 728px;
}

.ad-rectangle {
  min-height: 250px;
  max-width: 300px;
}

.ad-fluid {
  min-height: 250px;
  max-width: 100%;
}

/* Static Editorial & FAQ Content (SEO & Indexing) */
.editorial-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.editorial-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.editorial-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--neon-cyan);
}

.editorial-section p, .editorial-section li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.editorial-section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--neon-cyan);
}

.faq-card.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.faq-card.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: #080c14;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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