
/* CSS Variables for Theme */
:root {
  --bg-page: #313742;
  --bg-container: #0a0d14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-accent: #0066ff;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus-border: #0066ff;
  --button-bg: #0066ff;
  --button-hover: #0052cc;
}

/* Light Mode */
[data-theme="light"] {
  --bg-page: #ffffff;
  --bg-container: #ffffff;
  --bg-card: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-accent: #0066ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --input-focus-border: #0066ff;
  --button-bg: #0066ff;
  --button-hover: #0052cc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===================================
   HEADER TOP BAR (Navigation + Theme Toggle)
   =================================== */

.header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px 12px;
  position: relative;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav-text {
  display: none; /* Hidden on all resolutions - using hamburger menu instead */
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav-link:hover {
  color: var(--border-accent);
}

.nav-separator {
  font-size: 14px;
  color: var(--text-muted);
  user-select: none;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: flex; /* Always visible - hamburger menu on all resolutions */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 102, 255, 0.1);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 102, 255, 0.05);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-toggle:active {
  background: rgba(0, 102, 255, 0.1);
  border-radius: 8px;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-container);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-drawer.active {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.mobile-menu-close:hover {
  color: var(--text-primary);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.mobile-menu-link {
  padding: 16px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.mobile-menu-link:hover {
  background: var(--bg-card-hover);
  color: var(--border-accent);
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* Main Container */
.container {
  max-width: 680px;
  margin: 40px auto;
  background: var(--bg-container);
  border-top: 4px solid var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

[data-theme="light"] .container {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--border-accent);
}

/* Header Section */
.header {
  padding: 24px 40px 16px;
  text-align: center;
  position: relative;
}

.logo-badge-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
  max-width: calc(100% - 120px);
}

/* Light mode: add prominent background card */
[data-theme="light"] .logo-badge-container {
  background: #0a0d14;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.logo {
  max-width: 200px;
  height: auto;
  transition: filter 0.3s ease;
}

/* Optional: slightly darken logo in light mode for better contrast */
[data-theme="light"] .logo {
  filter: brightness(0.95);
}

.badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 16px;
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Light mode: update badge styling */
[data-theme="light"] .badge {
  border: 1px solid var(--border-accent);
  color: var(--border-accent);
  background: rgba(0, 102, 255, 0.1);
  font-weight: 600;
}

.tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}


/* Hero Section */
.hero {
  padding: 0 40px 24px;
  text-align: center;
}

.hero-headline {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subhead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
}

/* Form Section */
.form-section {
  padding: 24px 48px 60px;
}

.form-intro {
  text-align: center;
  margin-bottom: 40px;
}

.form-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.form-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-helper {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.submit-btn {
  width: 100%;
  background: var(--button-bg);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border: 2px solid #00a2ff;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  margin-top: 16px;
}

.submit-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Features Section */
.features {
  background: var(--bg-card);
  padding: 48px;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.features-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.feature-list {
  display: grid;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #0066ff;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.feature-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 64px 40px 32px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-text {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

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

.footer-links span {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Privacy Note */
.privacy-note {
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
  text-align: center;
}

.privacy-note p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

.privacy-note a {
  color: #0066ff;
  text-decoration: none;
}

.privacy-note a:hover {
  text-decoration: underline;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #0066ff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Results Section */
.results-section {
  display: none;
  padding: 48px;
  border-top: 1px solid var(--border-color);
}

.results-section.show {
  display: block;
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-title {
  font-size: 26px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.results-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

.results-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  transition: background-color 0.3s ease;
}

.results-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.results-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.results-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results-content li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.results-content li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: #0066ff;
  font-weight: 700;
}

/* Negatives/Warning list styling */
.results-negatives li:before {
  content: '✗';
  color: #ef4444;
}

.results-negatives h3 {
  color: #fca5a5;
}

.results-negatives li {
  color: #fca5a5;
}

/* Light mode adjustments for negatives */
[data-theme="light"] .results-negatives {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="light"] .results-negatives h3 {
  color: #dc2626;
}

[data-theme="light"] .results-negatives li {
  color: #991b1b;
}

[data-theme="light"] .results-negatives p {
  color: #b91c1c !important;
}

.score-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0066ff, #00a2ff);
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  padding: 20px 32px;
  border-radius: 12px;
  margin: 20px 0;
}

.next-steps-btn {
  width: 100%;
  background: #0066ff;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border: 2px solid #00a2ff;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: all 0.25s;
  margin-top: 24px;
}

.next-steps-btn:hover {
  background: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

/* Error State */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.error-message.show {
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  
  .container {
    margin: 20px auto 0;
    box-shadow: none;
  }
  
  /* Header Top Bar - Stack on Mobile */
  .header-top-bar {
    padding: 10px 24px 6px;
  }
  
  /* Navigation hidden on all resolutions - using hamburger instead */
  .header-nav-text {
    display: none !important;
  }
  
  /* Ensure hamburger is visible on mobile (redundant but ensures consistency) */
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .header-left {
    flex: 0;
    display: flex !important;
  }
  
  .theme-toggle {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .theme-toggle-icon {
    font-size: 13px;
  }
  
  .header {
    padding: 16px 24px 12px;
  }
  
  .logo {
    max-width: 160px;
  }
  
  .hero {
    padding: 0 24px 20px;
  }
  
  .hero-headline {
    font-size: 28px;
  }
  
  .form-section {
    padding: 20px 24px 48px;
  }
  
  .features {
    padding: 40px 24px;
  }
  
  .footer {
    padding: 48px 24px 24px;
  }
  
  .results-section {
    padding: 40px 24px;
  }
  
  .results-content {
    padding: 24px;
  }
  
  .score-badge {
    font-size: 28px;
    padding: 16px 24px;
  }
  
  .loading {
    padding: 32px 24px;
  }
  
  .logo-badge-container {
    max-width: 100%;
    padding: 12px 16px;
  }
  
  .article-hero-image {
    max-height: 400px;
  }
  
  .article-title {
    font-size: 32px;
  }
  
  .article-lead {
    font-size: 17px;
  }
  
  .article-body h2 {
    font-size: 24px;
  }
  
  .article-body p {
    font-size: 16px;
  }
}

/* ===================================
   ARTICLE/BLOG STYLES
   =================================== */

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px 48px;
}

.article-hero {
  margin: 0 0 40px 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.article-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 400;
}

.article-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.article-body {
  color: var(--text-primary);
}

.article-body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 20px 0;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 16px 0;
}

.article-body ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 32px;
}

.article-body li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-body li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--border-accent);
  font-weight: 600;
}

.article-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-accent);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.article-callout h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.article-callout ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-callout li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-callout li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--border-accent);
  font-weight: 700;
}

.article-cta {
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 48px 0;
  transition: all 0.3s ease;
}

.article-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.article-cta h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.article-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--button-bg);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 40px;
  border: 2px solid #00a2ff;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s;
}

.cta-button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.article-author {
  margin-bottom: 32px;
}

.article-author p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.article-author strong {
  color: var(--text-primary);
  font-size: 16px;
}

.article-share {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 12px;
}

.share-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--border-accent);
  border-color: var(--border-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.related-articles {
  padding: 48px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.related-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
  border-color: var(--border-accent);
}

.related-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.related-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Article Mobile Responsive */
@media (max-width: 768px) {
  .article-content {
    padding: 0 24px 40px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .article-lead {
    font-size: 17px;
  }
  
  .article-body h2 {
    font-size: 24px;
  }
  
  .article-body p {
    font-size: 16px;
  }
  
  .article-body ul {
    padding: 16px 20px;
  }
  
  .article-body li {
    font-size: 15px;
  }
  
  .article-cta {
    padding: 32px 24px;
  }
  
  .related-articles {
    padding: 40px 24px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .article-hero-image {
    max-height: 300px;
  }
}

/* ===================================
   SHARE POPUP STYLES
   =================================== */

.share-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.share-popup.show {
  display: flex;
}

.share-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.share-popup-content {
  position: relative;
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  z-index: 1;
}

.share-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.share-popup-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.share-popup-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.share-popup-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.share-url-container {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.share-url-input {
  flex: 1;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Courier New', monospace;
  transition: all 0.2s;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

.share-url-input:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.share-copy-btn {
  padding: 14px 24px;
  background: var(--button-bg);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.share-copy-btn:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.share-copy-success {
  display: none;
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  animation: fadeIn 0.2s ease;
}

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

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

/* Share Popup Mobile */
@media (max-width: 768px) {
  .share-popup-content {
    padding: 32px 24px;
  }
  
  .share-popup-content h3 {
    font-size: 20px;
  }
  
  .share-url-container {
    flex-direction: column;
  }
  
  .share-copy-btn {
    width: 100%;
    padding: 16px;
  }
}

/* ===================================
   BLOG INDEX / ARTICLES GRID
   =================================== */

.articles-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-container);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.15);
  border-color: var(--border-accent);
}

.article-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.article-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--border-accent);
  background: rgba(0, 102, 255, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  width: fit-content;
}

.article-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card-title a:hover {
  color: var(--border-accent);
}

.article-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.article-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--border-accent);
  text-decoration: none;
  transition: all 0.2s;
}

.article-read-more:hover {
  transform: translateX(4px);
}

/* CTA Section for Blog Index */
.cta-section {
  padding: 64px 48px;
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.cta-section-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-section-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Blog Index Mobile Responsive */
@media (max-width: 768px) {
  .articles-section {
    padding: 32px 24px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .article-card-image {
    height: 180px;
  }
  
  .cta-section {
    padding: 48px 24px;
  }
  
  .cta-section-title {
    font-size: 24px;
  }
  
  .cta-section-text {
    font-size: 15px;
  }
}

/* ============================================
   NEWSLETTER SIGNUP FLOATING BUTTON & MODAL
   ============================================ */

/* Floating Newsletter Button */
.newsletter-float-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: var(--button-bg);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.newsletter-float-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
}

.newsletter-float-btn svg {
  width: 20px;
  height: 20px;
}

/* Newsletter Modal Overlay */
.newsletter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Newsletter Modal */
.newsletter-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.newsletter-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.newsletter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-color);
}

.newsletter-modal-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.newsletter-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  line-height: 1;
}

.newsletter-modal-close:hover {
  color: var(--text-primary);
}

/* Modal Content */
.newsletter-modal-content {
  padding: 28px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

.newsletter-modal-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 28px 0;
}

/* Newsletter Form */
.newsletter-signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.newsletter-signup-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-signup-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.newsletter-signup-form input {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.newsletter-signup-form input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  background: var(--input-bg);
}

.newsletter-signup-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--button-bg);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin-top: 8px;
}

.newsletter-submit-btn:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.newsletter-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.newsletter-privacy {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0 0;
}

/* Success Message */
.newsletter-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.newsletter-success.show {
  display: block;
}

.newsletter-success svg {
  color: #10b981;
  margin: 0 auto 20px;
}

.newsletter-success h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.newsletter-success p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* Error Message */
.newsletter-error {
  display: none;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  margin-top: 16px;
}

.newsletter-error.show {
  display: block;
}

.newsletter-error p {
  font-size: 14px;
  color: #ef4444;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .newsletter-float-btn {
    right: 20px;
    bottom: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .newsletter-float-btn span {
    display: none; /* Hide text on mobile, show icon only */
  }
  
  .newsletter-float-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  
  .newsletter-float-btn svg {
    width: 24px;
    height: 24px;
    margin: 0;
  }
  
  .newsletter-modal {
    width: 95%;
    max-width: 400px;
  }
  
  .newsletter-modal-header {
    padding: 20px 24px;
  }
  
  .newsletter-modal-header h3 {
    font-size: 20px;
  }
  
  .newsletter-modal-content {
    padding: 24px;
  }
  
  .newsletter-modal-description {
    font-size: 14px;
  }
  
  .newsletter-signup-form input {
    font-size: 16px; /* Prevent iOS zoom on input focus */
  }
}