/* Modern Professional Design System - Matching LookPilot App */
:root {
  /* Core Colors - App Aligned */
  --bg-primary: #040810;
  --bg-secondary: #0d1219;
  --bg-surface-hover: #262a36;
  --bg-surface-pressed: #313643;
  --text-primary: #EDE7DE;
  --text-secondary: #C5C0BA;
  --accent-primary: #1072AC;
  --accent-dark: #0B4F77;
  --accent-light: #3C9AD3;
  --accent-glow: rgba(16, 114, 172, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  /* Status Colors */
  --color-success: #22C55E;
  --color-warning: #FACC15;
  --color-error: #EF4444;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 96px;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Modern Animated Gradient Background */
.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(16, 114, 172, 0.1), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(11, 79, 119, 0.08), transparent 25%);
  filter: blur(40px);
}

/* Grid Pattern Overlay (Subtle) */
.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

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

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

.logo img {
  height: 32px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

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

/* User Dropdown in Navbar */
.user-dropdown {
  position: relative;
  margin-left: 16px;
}

.user-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.user-dropdown-trigger:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.user-dropdown-trigger svg {
  transition: transform 0.2s;
}

.user-dropdown.open .user-dropdown-trigger svg {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.user-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.dropdown-item:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.dropdown-item.sign-out {
  color: var(--color-error);
}

.dropdown-item.sign-out:hover {
  color: #ff6b6b;
  background: rgba(239, 68, 68, 0.1);
}

/* Sign In Link (for guests) */
.sign-in-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  transition: color 0.15s;
}

.sign-in-link:hover {
  color: var(--text-primary) !important;
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to bottom right, #EDE7DE 0%, #C5C0BA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

p.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Video/Media Container */
.media-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  aspect-ratio: 16/9;
}

.media-container iframe {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.media-container:hover iframe {
  pointer-events: auto;
}

/* Reviews Section */
.reviews-section {
  padding: var(--section-padding) 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.review-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: normal;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.author-link {
  font-size: 0.8rem;
  color: var(--accent-primary);
  text-decoration: none;
}

/* Pricing & Product Card */
.product-container {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
}

.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 40px;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-period {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.product-features {
  list-style: none;
  margin: 40px 0;
  text-align: left;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.product-features li::before {
  content: "✓";
  color: var(--accent-primary);
  font-weight: bold;
}

/* Auth Forms (Login/Signup) */
.auth-container {
  max-width: 400px;
  width: 100%;
  margin: 80px auto;
  padding: 40px;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-button {
  width: 100%;
  padding: 12px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.form-button:hover {
  background: var(--text-secondary);
}

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.auth-tab {
  flex: 1;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Verify Page Specifics */
.verify-container {
  max-width: 500px;
  width: 100%;
  margin: 80px auto;
  padding: 40px;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  text-align: center;
}

.email-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: inline-block;
}

.email-address {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-family: monospace;
}

.status-message {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.status-checking {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.status-success {
  color: var(--color-success);
  background: rgba(34, 197, 94, 0.1);
}

.status-error {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.1);
}

/* Shared Content Panels (Downloads, Thanks, Cancel, Contact, Partners, Legal) */
.download-container, 
.thanks-container, 
.cancel-container,
.contact-container,
.partners-container,
.legal-container {
  max-width: 800px;
  width: 100%;
  margin: 60px auto;
  padding: 40px;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

/* Guide Container - Clean minimal design */
.guide-container {
  width: 100%;
  max-width: 680px;
  min-width: 0;
  margin: 40px auto 80px;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .guide-container {
    width: 680px;
    padding: 0;
  }
}

/* Center text for some containers */
.download-container,
.thanks-container,
.cancel-container,
.contact-container,
.partners-container {
  text-align: center;
}

.download-icon, .success-icon, .cancel-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.download-title, .thanks-title, .cancel-title, .contact-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.download-subtitle, .thanks-subtitle, .cancel-subtitle, .contact-subtitle {
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin-bottom: 30px;
}

/* New Downloads Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.download-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s ease;
}

.download-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.version-info {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.download-options, .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Remove old download button styles as we now use .btn classes */
.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  width: 100%;
  line-height: 1.4;
}

.action-button.primary {
  color: var(--bg-primary);
  background: var(--text-primary);
}

.action-button.primary:hover {
  background: var(--text-secondary);
}

.action-button.secondary {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
}

.action-button.secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.download-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  margin-left: auto;
}

.windows-protection-info {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0 20px;
  text-align: left;
}

.windows-protection-info h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.windows-protection-info p, .windows-protection-info li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.windows-protection-info strong {
  color: var(--text-primary);
}

.windows-protection-info .note {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding-top: 16px;
}

/* Partners Page */
.partners-header {
  text-align: center;
  margin-bottom: 60px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.partner-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.2s ease;
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

/* Legal & Guides Content */
.legal-content, .guide-content {
  text-align: left;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.guide-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.guide-content h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h3, .guide-content h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p, .guide-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-content ul, .guide-content ul, 
.legal-content ol, .guide-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content li, .guide-content li {
  margin-bottom: 8px;
}

.last-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

/* Guide Specifics */
.guide-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.85em;
  color: var(--text-primary);
}

.guide-content pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.guide-content pre code {
  background: none;
  padding: 0;
  color: #E2E8F0;
  font-size: inherit;
}

.guide-content blockquote {
  border-left: 2px solid var(--border-subtle);
  padding-left: 16px;
  margin: 20px 0;
  font-style: normal;
  color: var(--text-secondary);
  background: transparent;
}

.guide-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
}

.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.guide-content th, .guide-content td {
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  text-align: left;
}

.guide-content th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-weight: 500;
}

.guide-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.guide-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s;
}

.guide-content a:hover {
  opacity: 0.7;
}

.guide-breadcrumb {
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Guide Footer Navigation */
.guide-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.guide-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 0;
  transition: color 0.15s;
}

.guide-footer-link:hover {
  color: var(--text-primary);
}

.guide-footer-link svg {
  opacity: 0.7;
}

.guide-footer-link:hover svg {
  opacity: 1;
}

.guide-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* Guides List & Games Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 32px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.guide-card, .game-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 72px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.guide-card:hover, .game-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Style for disabled/dimmed cards */
.game-card.dimmed {
  opacity: 0.4;
  pointer-events: none;
  border-color: var(--border-subtle);
}

/* Official guide indicator - subtle left accent border */
.game-card.has-official-guide {
  border-left: 3px solid var(--accent-primary);
}

.guide-card h2, .game-card h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-primary);
}

.game-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 8px 0 0 0;
  line-height: 1.5;
}

.read-guide, .platform-guide-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--text-primary);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: auto;
  align-self: flex-start;
  transition: background 0.15s;
}

.read-guide:hover, .platform-guide-btn:hover {
  background: var(--text-secondary);
}

.platform-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.platform-guide-btn.coming-soon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: default;
}

.platform-guide-btn.coming-soon:hover {
  background: transparent;
}

/* Search & Filters */
.search-container {
  max-width: 400px;
  margin: 0 auto 24px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.85rem;
  opacity: 0.6;
  pointer-events: none;
}

.platform-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.platform-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}

.platform-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.platform-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0;
  margin-top: auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

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

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

/* ===========================================
   Comments / Discussion Section
   =========================================== */

.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.comment-form-container {
  margin-bottom: 32px;
}

.comment-auth-prompt {
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.comment-form {
  position: relative;
}

.comment-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  padding-bottom: 52px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
}

.comment-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
}

.comment-form-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.comment-submit {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comments-loading,
.comments-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 32px;
}

.comment {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
}

.comment-reply {
  margin-left: 24px;
  margin-top: 12px;
  border-left: 2px solid var(--border-subtle);
}

.comment-replies {
  margin-top: 8px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 500;
  color: var(--text-primary);
}

.comment-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.comment-edited {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

.comment-body {
  margin-bottom: 12px;
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-deleted {
  padding: 12px 0;
}

.deleted-text {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.7;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  font-family: inherit;
}

.comment-action:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.comment-action.upvote-btn.upvoted {
  color: var(--accent-primary);
}

.comment-action.delete-btn:hover {
  color: #ef4444;
}

.reply-form-container {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.reply-input {
  min-height: 80px;
  padding-bottom: 48px;
}

.reply-form-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}

.comment-edit-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.comment-edit-input:focus {
  outline: none;
}

.comment-edit-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
}

/* Mobile Response */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding-top: 80px;
  }
  
  .navbar-nav {
    display: none; /* Hide nav on mobile for now or implement burger menu */
  }
  
  .comment-reply {
    margin-left: 12px;
  }
}