/* ==================================================
   AI TOC Marker Guide Page - Modern Design 2025
   Beautiful, user-friendly, mobile-first approach
   ================================================== */

:root {
  /* Primary Colors */
  --primary-color: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #4285f4;
  --primary-gradient: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  
  /* Secondary Colors */
  --secondary-color: #34a853;
  --accent-orange: #ff6b35;
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  
  /* Text Colors */
  --text-dark: #1f2937;
  --text-medium: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --bg-blue-light: #eff6ff;
  --bg-success: #f0fdf4;
  --bg-warning: #fffbeb;
  --bg-danger: #fef2f2;
  
  /* Border & Shadow */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Animation */
  --transition-fast: all 0.15s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
  
  /* Typography */
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-poppins: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
}

/* ==================================================
   Reset & Base Styles
   ================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-inter);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ==================================================
   Typography
   ================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-poppins);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--text-medium);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

code {
  background: var(--bg-gray);
  color: var(--accent-orange);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875em;
  font-weight: 500;
}

kbd {
  background: var(--text-dark);
  color: var(--text-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================================================
   Back to Top & Progress Bar
   ================================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  width: 0%;
  transition: width 0.3s ease;
}

/* ==================================================
   Header & Navigation
   ================================================== */

.guide-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.guide-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.home-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

.home-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 0.875rem;
}

.current-page {
  color: var(--text-medium);
  font-weight: 500;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--primary-gradient);
  color: var(--text-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text-white);
}

/* ==================================================
   Hero Section
   ================================================== */

.guide-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-white);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.guide-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.guide-hero h1 {
  color: var(--text-white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-poppins);
  color: var(--text-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

.hero-image-container {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-gif {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.hero-image-container:hover .hero-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
  transform: scale(0.8);
  transition: var(--transition-normal);
}

.hero-overlay:hover .play-button {
  transform: scale(1);
}

/* ==================================================
   Table of Contents Section
   ================================================== */

.toc-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-white);
}

.toc-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.toc-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.toc-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.toc-header h2 i {
  color: var(--primary-color);
}

.toc-header p {
  color: var(--text-medium);
  font-size: 1.125rem;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.toc-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  border: 2px solid transparent;
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.toc-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  transform: scaleY(0);
  transition: var(--transition-normal);
}

.toc-item:hover {
  background: var(--bg-white);
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.toc-item:hover::before {
  transform: scaleY(1);
}

.toc-item.active {
  background: var(--bg-blue-light);
  border-color: var(--primary-color);
}

.toc-item.active::before {
  transform: scaleY(1);
}

.toc-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.toc-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.toc-content p {
  color: var(--text-medium);
  font-size: 0.875rem;
  margin: 0;
}

/* ==================================================
   Installation Steps
   ================================================== */

.installation-steps {
  padding: var(--space-4xl) 0;
  background: var(--bg-light);
}

.step-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-xl);
  margin-bottom: var(--space-3xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--bg-blue-light) 0%, var(--bg-white) 100%);
  border-bottom: 1px solid var(--border-light);
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-poppins);
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.2;
  z-index: -1;
}

.step-info h2 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.75rem;
}

.step-description {
  color: var(--text-medium);
  font-size: 1.125rem;
  margin: 0;
}

.step-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-2xl);
}

.step-instructions h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}

.step-instructions h3 i {
  color: var(--primary-color);
}

.step-instructions ol {
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.step-instructions li {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--text-medium);
}

.step-instructions strong {
  color: var(--text-dark);
  font-weight: 600;
}

.step-tip, .step-warning, .success-message {
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.step-tip {
  background: var(--bg-success);
  border: 1px solid #bbf7d0;
}

.step-tip i {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-top: 2px;
}

.step-warning {
  background: var(--bg-warning);
  border: 1px solid #fed7aa;
}

.step-warning i {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-top: 2px;
}

.success-message {
  background: linear-gradient(135deg, #fef3c7 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
}

.success-message i {
  color: #f59e0b;
  font-size: 1.5rem;
  margin-top: 2px;
}

.step-image {
  position: relative;
}

.guide-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  cursor: zoom-in;
}

.guide-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.image-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-top: var(--space-md);
  font-style: italic;
}

/* ==================================================
   Help Section
   ================================================== */

.help-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-white);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.help-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-light);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-white);
}

.help-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--text-white);
  font-size: 2rem;
}

.help-card h3 {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.help-card p {
  margin-bottom: var(--space-lg);
  color: var(--text-medium);
}

.help-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--primary-color);
  color: var(--text-white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.help-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text-white);
}

/* ==================================================
   Security Notice
   ================================================== */

.security-notice {
  padding: var(--space-4xl) 0;
  background: var(--bg-light);
}

.notice-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.notice-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.notice-header i {
  color: var(--secondary-color);
  font-size: 2rem;
}

.notice-header h3 {
  color: var(--text-dark);
  margin: 0;
}

.notice-content p {
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.security-features {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.security-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--text-dark);
}

.security-item i {
  color: var(--secondary-color);
}

/* ==================================================
   CTA Section
   ================================================== */

.guide-cta {
  padding: var(--space-4xl) 0;
  background: var(--primary-gradient);
  color: var(--text-white);
  text-align: center;
}

.cta-content h2 {
  color: var(--text-white);
  margin-bottom: var(--space-lg);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--text-white);
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: var(--text-white);
}

/* ==================================================
   Footer
   ================================================== */

.guide-footer {
  background: var(--text-dark);
  color: var(--text-white);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer-left p {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.link-group h4 {
  color: var(--text-white);
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: var(--space-sm);
}

.link-group a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.link-group a:hover {
  color: var(--text-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: var(--space-xl);
  text-align: center;
  color: var(--text-light);
}

.footer-bottom a {
  color: var(--text-white);
  font-weight: 600;
}

/* ==================================================
   Image Modal
   ================================================== */

.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1200px;
  max-height: 80%;
  object-fit: contain;
  border-radius: var(--border-radius);
  animation: modalZoom 0.4s ease-out;
}

@keyframes modalZoom {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--text-white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal:hover {
  color: #ccc;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--text-white);
  padding: var(--space-lg);
  font-style: italic;
}

/* ==================================================
   Responsive Design
   ================================================== */

@media (max-width: 1024px) {
  .guide-hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .step-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-links {
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .guide-header .container {
    padding: var(--space-md);
  }
  
  .guide-hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .toc-grid {
    grid-template-columns: 1fr;
  }
  
  .toc-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .step-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .help-grid {
    grid-template-columns: 1fr;
  }
  
  .security-features {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .back-to-top {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .guide-hero {
    padding: var(--space-xl) 0;
  }
  
  .toc-section, .installation-steps, .help-section, .security-notice, .guide-cta {
    padding: var(--space-2xl) 0;
  }
  
  .toc-card, .step-card, .notice-card {
    padding: var(--space-lg);
  }
  
  .step-header {
    padding: var(--space-lg);
  }
  
  .step-content {
    padding: var(--space-lg);
  }
}

/* ==================================================
   Print Styles
   ================================================== */

@media print {
  .guide-header,
  .back-to-top,
  .progress-container,
  .guide-cta,
  .guide-footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .guide-hero {
    background: none;
    color: black;
  }
  
  .step-card {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
  }
}

/* ==================================================
   Dark Mode Support (Future Enhancement)
   ================================================== */

@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here in the future */
}

/* ==================================================
   Reduced Motion
   ================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ==================================================
   High Contrast Mode
   ================================================== */

@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.3);
  }
}
