/* ===== CSS VARIABLES ===== */
:root {
  /* Dark Theme (Default) */
  --primary-dark: #0a0a0a;
  --secondary-dark: #111111;
  --accent-color: #8b0000;
  --accent-glow: #ff0000;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --border-color: #333333;
  --success-color: #00aa00;
  
  /* Extended variables for theme system */
  --bg-primary: var(--primary-dark);
  --bg-secondary: var(--secondary-dark);
  --bg-card: #252525;
  --text-muted: #888888;
  --code-bg: #1a1a1a;
  --code-text: #00ff00;
  --step-bg: rgba(0, 0, 0, 0.3);
  --card-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  /* Light Theme Overrides */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --code-bg: #f8f9fa;
  --code-text: #198754;
  --step-bg: rgba(0, 0, 0, 0.05);
  --card-bg: rgba(0, 0, 0, 0.03);
  
  /* Keep accent colors but adjust for light mode */
  --accent-color: #8b0000;
  --accent-glow: #ff0000;
  --success-color: #198754;
}

/* ===== BASE STYLES ===== */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header .sitename {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent-color);
  text-shadow: 0 0 15px var(--accent-glow);
  margin: 0;
}

.navmenu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu > ul > li {
  position: relative;
  white-space: nowrap;
  padding: 0 12px;
}

.navmenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navmenu a i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
  transition: 0.3s;
}

.navmenu li:hover > a {
  color: var(--accent-color);
  text-shadow: 0 0 5px var(--accent-glow);
}

/* ===== DROPDOWN MENUS ===== */
.navmenu .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  border-radius: 0;
}

.navmenu .dropdown ul li {
  min-width: 180px;
  padding: 0;
}

.navmenu .dropdown ul a {
  padding: 10px 20px;
  font-size: 0.85rem;
  text-transform: none;
  color: var(--text-primary);
  border: none;
}

.navmenu .dropdown ul a i {
  font-size: 12px;
}

.navmenu .dropdown ul a:hover,
.navmenu .dropdown ul .active:hover,
.navmenu .dropdown ul li:hover > a {
  color: var(--accent-color);
  background: rgba(139, 0, 0, 0.1);
}

.navmenu .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
}

/* Light mode specific dropdown styles */
[data-theme="light"] .navmenu .dropdown ul {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navmenu .dropdown ul a {
  color: #212529;
}

[data-theme="light"] .navmenu .dropdown ul a:hover {
  background: #f8f9fa;
  color: #000000;
}

/* ===== SOCIAL LINKS ===== */
.header-social-links a {
  color: var(--text-primary);
}

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

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.theme-toggle span {
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--accent-color) 0%, #600000 100%);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.page-header .tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  font-style: italic;
}

/* ===== GUIDE SECTIONS ===== */
.guide-section {
  background-color: var(--bg-card);
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.guide-section h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.guide-section h3 {
  color: var(--text-primary);
  margin: 1.5rem 0 1rem 0;
}

.guide-section p {
  color: var(--text-secondary);
}

.method-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-color);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.method-card:hover {
  transform: translateY(-2px);
}

.method-card h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.method-card p {
  color: var(--text-secondary);
}

.step-by-step {
  margin: 1.5rem 0;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--step-bg);
  border-radius: 6px;
  border-left: 3px solid var(--accent-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.step-number {
  background: var(--accent-color);
  color: black;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

.step-content strong {
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.25rem;
}

.step-content p {
  margin: 0;
  color: var(--text-secondary);
}

.code-block {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1rem;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  margin: 1rem 0;
  border-left: 3px solid var(--accent-color);
  overflow-x: auto;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.troubleshooting-item {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.troubleshooting-item h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.troubleshooting-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.troubleshooting-item li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.troubleshooting-item li:before {
  content: "▶";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.endpoint-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.endpoint-card h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.back-to-kb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  text-decoration: none;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.back-to-kb:hover {
  background: var(--accent-color);
  color: black;
  text-decoration: none;
}

code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== EXISTING STYLES (Updated for theme system) ===== */
.hero {
  background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230a0a0a"/><path d="M0 0L100 100M100 0L0 100" stroke="%23333" stroke-width="0.5"/></svg>');
  background-size: cover;
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--accent-glow);
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.btn-get-started {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 12px 30px;
  border-radius: 0;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.btn-get-started:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1199px) {
  .navmenu ul {
    display: none;
  }

  .mobile-nav-toggle {
    display: block !important;
  }
}

@media (min-width: 1200px) {
  .mobile-nav-toggle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 10px;
    right: 10px;
    padding: 8px 15px;
  }
  
  .theme-toggle span {
    display: none;
  }
}

/* Enhanced Privacy Policy Styles */
.privacy-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-of-type {
  border-bottom: none;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.privacy-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.privacy-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.privacy-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.privacy-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.feature-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tech-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.tech-details li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.tech-details li:last-child {
  border-bottom: none;
}

.tech-details strong {
  color: var(--text-primary);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.legal-item {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.legal-item h5 {
  margin: 0 0 1rem 0;
  color: var(--accent-color);
}

.legal-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.privacy-promise {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(139, 0, 0, 0.1) 100%);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

.privacy-promise blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 1.5rem 0;
  padding: 0 2rem;
  position: relative;
}

.privacy-promise blockquote:before,
.privacy-promise blockquote:after {
  content: '"';
  font-size: 2rem;
  color: var(--accent-color);
  position: absolute;
}

.privacy-promise blockquote:before {
  top: -10px;
  left: 0;
}

.privacy-promise blockquote:after {
  bottom: -20px;
  right: 0;
}

.promise-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.promise-badges .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

