/* Xaffle Guides Styles */

/* Import base variables from base.css */
:root {
  /* Additional guides-specific variables */
  --sidebar-width: 280px;
  --content-max-width: 1200px;
  --nav-height: 64px;
  --guides-spacing: 24px;
  
  /* Guides color overrides */
  --guides-bg: var(--bg-primary);
  --guides-text: var(--text-primary);
  --guides-border: var(--border-color);
  --guides-accent: var(--xaffle-turquoise);
}

/* Dark theme support */
.dark-theme,
.dark-mode {
  --guides-bg: var(--xaffle-dark-blue);
  --guides-text: #f7fafc;
  --guides-border: #2d3748;
  --guides-accent: var(--xaffle-turquoise);
  --bg-secondary: #1a202c;
  --bg-tertiary: #2d3748;
  --text-secondary: #cbd5e0;
  --hover-bg: #2d3748;
  --input-bg: rgba(255, 255, 255, 0.08);
}

/* Base styles */
.guides-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--guides-bg);
  color: var(--guides-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Navigation */
.guides-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--guides-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  min-width: 100%;
  padding: 0 15px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--guides-text);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.8;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--xaffle-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Search Container */
.nav-center {
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  background-color: var(--input-bg);
  border: 1px solid var(--guides-border);
  border-radius: 20px;
  color: var(--guides-text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--guides-accent);
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

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

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--guides-border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--hover-bg);
  border-color: var(--guides-accent);
}

.theme-icon {
  width: 18px;
  height: 18px;
  color: var(--guides-text);
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.sun-icon {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
}

.moon-icon {
  transform: translate(-50%, -50%) rotate(-180deg);
  opacity: 0;
}

.dark-theme .sun-icon,
.dark-mode .sun-icon {
  transform: translate(-50%, -50%) rotate(180deg);
  opacity: 0;
}

.dark-theme .moon-icon,
.dark-mode .moon-icon {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
}

.dashboard-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--xaffle-gradient);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dashboard-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.3);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--guides-text);
  transition: all 0.3s ease;
}

/* Main Layout */
.guides-container {
  display: flex;
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

/* Sidebar */
.guides-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--guides-border);
  overflow-y: auto;
  position: fixed;
  left: 0;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  z-index: 100;
  transition: transform 0.3s ease;
}

/* Sidebar header removed - cleaner design */

/* Sidebar Navigation */
.sidebar-nav {
  padding: 24px 16px 24px;
}

.nav-section {
  margin-bottom: 32px;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--guides-border);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin-bottom: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background-color: var(--hover-bg);
  color: var(--guides-text);
}

.nav-item.active {
  color: #29b6f6 !important;
  background-color: rgba(41, 182, 246, 0.1) !important;
  border-radius: 8px;
}

.nav-item.active:hover {
  color: #29b6f6 !important;
  background-color: rgba(41, 182, 246, 0.1) !important;
}

/* Removed left border indicator - using full background like dashboard */

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-item.external {
  position: relative;
}

.external-icon {
  width: 12px;
  height: 12px;
  margin-left: auto;
  opacity: 0.6;
}

/* Main Content */
.guides-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  background-color: var(--guides-bg);
}

.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 40px var(--guides-spacing);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 32px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin: 0 12px;
  color: var(--text-secondary);
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--guides-accent);
}

/* Content Header */
.content-header {
  margin-bottom: 48px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--guides-text);
  line-height: 1.2;
}

.page-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Content Body */
.content-body {
  margin-bottom: 64px;
}

/* Welcome Grid */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.welcome-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.welcome-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--guides-accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--xaffle-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.welcome-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--guides-text);
}

.welcome-card p {
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.card-link {
  color: var(--guides-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.card-link:hover {
  color: var(--xaffle-blue);
}

/* Page Navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--guides-border);
}

.page-nav-item {
  flex: 1;
}

.page-nav-item.next {
  text-align: right;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-center {
    max-width: 300px;
    margin: 0 20px;
  }
  
  .content-wrapper {
    padding: 32px 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-center {
    display: none;
  }
  
  .dashboard-btn span {
    display: none;
  }
  
  .guides-sidebar {
    transform: translateX(-100%);
  }
  
  .guides-sidebar.active {
    transform: translateX(0);
  }
  
  .guides-main {
    margin-left: 0;
  }
  
  .content-wrapper {
    padding: 24px 16px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .page-nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .page-nav-item.next {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 16px;
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .dashboard-btn {
    padding: 8px 12px;
  }
  
  .content-wrapper {
    padding: 20px 12px;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .page-description {
    font-size: 1rem;
  }
  
  .welcome-card {
    padding: 20px;
  }
}

/* Smooth animations */
* {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.theme-toggle:focus,
.nav-item:focus,
.search-input:focus,
.dashboard-btn:focus {
  outline: 2px solid var(--guides-accent);
  outline-offset: 2px;
}

/* Smooth scrollbar styling */
.guides-sidebar::-webkit-scrollbar {
  width: 6px;
}

.guides-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.guides-sidebar::-webkit-scrollbar-thumb {
  background: var(--guides-border);
  border-radius: 3px;
}

.guides-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Content animations */
.content-body {
  animation: fadeInUp 0.5s ease-out;
}

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

/* 404 Error Page Styles */
.error-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.error-content {
  margin-bottom: 60px;
}

.error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--xaffle-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  stroke-width: 2;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--guides-text);
  margin: 0 0 16px 0;
}

.error-message {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.error-btn.primary {
  background: var(--xaffle-gradient);
  color: white;
}

.error-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(64, 224, 208, 0.3);
}

.error-btn.secondary {
  background: transparent;
  color: var(--guides-text);
  border-color: var(--guides-border);
}

.error-btn.secondary:hover {
  background-color: var(--hover-bg);
  border-color: var(--guides-accent);
  transform: translateY(-2px);
}

.error-btn .btn-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.suggested-content {
  text-align: left;
}

.suggested-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--guides-text);
  margin: 0 0 24px 0;
  text-align: center;
}

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

.suggestion-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.suggestion-card:hover {
  transform: translateY(-2px);
  border-color: var(--guides-accent);
  box-shadow: 0 8px 25px rgba(64, 224, 208, 0.15);
}

.dark-theme .suggestion-card:hover,
.dark-mode .suggestion-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(64, 224, 208, 0.1);
}

.suggestion-icon {
  width: 48px;
  height: 48px;
  background: var(--xaffle-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.suggestion-icon svg {
  width: 24px;
  height: 24px;
  color: white;
  stroke-width: 2;
}

.suggestion-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--guides-text);
  margin: 0 0 4px 0;
}

.suggestion-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Mobile responsiveness for 404 page */
@media (max-width: 768px) {
  .error-title {
    font-size: 2rem;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .suggestion-grid {
    grid-template-columns: 1fr;
  }
  
  .suggestion-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Guide Content Styles */
.guide-content {
  max-width: none;
}

.guide-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--guides-text);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--guides-accent);
  display: inline-block;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 32px 0;
}

/* Info Box */
.info-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(64, 224, 208, 0.1);
  border: 1px solid rgba(64, 224, 208, 0.3);
  border-radius: 12px;
  margin: 24px 0;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--xaffle-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  color: white;
  stroke-width: 2;
}

.info-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--guides-text);
  margin: 0 0 8px 0;
}

.info-content p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Step List */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--xaffle-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--guides-text);
  margin: 0 0 8px 0;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 8px 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: '•';
  color: var(--guides-accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  padding: 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--guides-accent);
  box-shadow: 0 8px 25px rgba(64, 224, 208, 0.15);
}

.dark-theme .feature-card:hover,
.dark-mode .feature-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(64, 224, 208, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--xaffle-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
  stroke-width: 2;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--guides-text);
  margin: 0 0 12px 0;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.status-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-item.active .status-indicator {
  background-color: #10b981;
}

.status-item.inactive .status-indicator {
  background-color: #6b7280;
}

.status-item.warning .status-indicator {
  background-color: #f59e0b;
}

.status-item.suspended .status-indicator {
  background-color: #ef4444;
}

.status-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--guides-text);
  margin: 0 0 4px 0;
}

.status-content p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.tip-card {
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.tip-card:hover {
  transform: translateY(-2px);
  border-color: var(--guides-accent);
  box-shadow: 0 8px 25px rgba(64, 224, 208, 0.15);
}

.dark-theme .tip-card:hover,
.dark-mode .tip-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(64, 224, 208, 0.1);
}

.tip-icon {
  width: 40px;
  height: 40px;
  background: var(--xaffle-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tip-icon svg {
  width: 20px;
  height: 20px;
  color: white;
  stroke-width: 2;
}

.tip-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--guides-text);
  margin: 0 0 8px 0;
}

.tip-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.875rem;
}

/* Table of Contents Navigation */
.toc-nav {
  position: fixed;
  top: calc(var(--nav-height) + 20px);
  right: 20px;
  width: 280px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  z-index: 100;
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
}

.toc-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--guides-text);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--guides-border);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-link {
  display: block;
  padding: 6px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.toc-link:hover {
  background-color: var(--hover-bg);
  color: var(--guides-text);
}

.toc-link.active {
  background-color: rgba(41, 182, 246, 0.1);
  color: #29b6f6;
}

/* Step Images */
.step-image {
  margin: 16px 0;
  text-align: center;
}

.step-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--guides-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark-theme .step-image img,
.dark-mode .step-image img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.step-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dark-theme .step-image img:hover,
.dark-mode .step-image img:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.image-caption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
}

/* Enhanced step content with images */
.step-content-with-image {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-text {
  flex: 1;
}

/* Hide TOC on screens that don't have enough space */
@media (max-width: 1400px) {
  .toc-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .guide-section {
    margin-bottom: 32px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .step-item {
    flex-direction: column;
    gap: 12px;
  }
  
  .step-number {
    align-self: flex-start;
  }
  
  .feature-grid,
  .status-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .info-box {
    flex-direction: column;
    text-align: center;
  }
}

/* Print styles */
@media print {
  .guides-nav,
  .guides-sidebar,
  .page-nav {
    display: none;
  }
  
  .guides-main {
    margin-left: 0;
  }
}
