/* SHYRO Hosting Documentation - Professional Evolution */
/* Inspirado en GitBook, Stripe Docs y Cloudflare Docs */
/* Optimizado para responsive: mobile, tablet, desktop */

/* ============================================
   CSS RESET & BASE VARIABLES
   ============================================ */
:root {
  --shyro-blue: #2563eb;
  --shyro-blue-light: #3b82f6;
  --shyro-blue-dark: #1d4ed8;
  --shyro-cyan: #06b6d4;
  --shyro-cyan-light: #22d3ee;
  --shyro-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --shyro-glow: 0 0 20px rgba(37, 99, 235, 0.15);
  --shyro-glow-strong: 0 0 30px rgba(37, 99, 235, 0.25);
}

/* Light Theme */
:root,
body.light {
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-tertiary: #f0f2f5;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 32px -12px rgba(0, 0, 0, 0.15);
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --code-bg: #f7f9fc;
  --code-border: #e2e8f0;
  --toc-bg: #fafbfc;
  --hover-bg: #f0f2f5;
  --selection-bg: rgba(37, 99, 235, 0.15);
  --card-hover-transform: translateY(-4px);
}

/* Dark Theme */
body.dark {
  --bg-primary: #0a0c10;
  --bg-secondary: #0f1117;
  --bg-tertiary: #1a1d24;
  --text-primary: #edf2f7;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --border-light: #2d3748;
  --border-medium: #4a5568;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 32px -12px rgba(0, 0, 0, 0.6);
  --sidebar-bg: #0f1117;
  --card-bg: #13161f;
  --code-bg: #0d0f14;
  --code-border: #2d3748;
  --toc-bg: #0f1117;
  --hover-bg: #1a1d24;
  --selection-bg: rgba(37, 99, 235, 0.25);
  --card-hover-transform: translateY(-4px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--selection-bg);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--shyro-blue);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   MAIN LAYOUT - OPTIMIZED SPACING
   ============================================ */
.docs-app {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Left - Premium Refinement */
.docs-sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--shyro-blue);
}

/* Main Content Area */
.docs-main {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Content Wrapper - Better Width Control for Readability */
.docs-content {
  display: flex;
  flex: 1;
  padding: 48px 56px;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.content-wrapper {
  flex: 1;
  min-width: 0;
  max-width: 880px;
}

/* Right Sidebar (TOC) - More Subtle Integration */
.docs-toc {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
  align-self: flex-start;
  background: var(--toc-bg);
  border-radius: 16px;
  padding: 20px 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.docs-toc:hover {
  border-color: var(--shyro-blue-light);
  box-shadow: var(--shadow-sm);
}

.docs-toc::-webkit-scrollbar {
  width: 3px;
}

/* ============================================
   DESKTOP SIDEBAR TOGGLE BUTTONS
   ============================================ */
/* Botón flotante (visible SOLO cuando sidebar está visible) */
.sidebar-toggle-desktop {
  position: fixed;
  left: 280px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 56px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-left: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
}

.sidebar-toggle-desktop:hover {
  background: var(--hover-bg);
  border-color: var(--shyro-blue);
  color: var(--shyro-blue);
}

/* Cuando la sidebar está colapsada, el botón flotante se oculta */
.docs-sidebar.collapsed ~ .sidebar-toggle-desktop {
  display: none;
}

.sidebar-toggle-desktop i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Botón en el header (visible SOLO cuando sidebar está colapsada) */
.sidebar-toggle-header {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  margin-right: 4px;
  flex-shrink: 0;
}

.sidebar-toggle-header:hover {
  border-color: var(--shyro-blue);
  color: var(--shyro-blue);
  background: var(--hover-bg);
}

/* Cuando la sidebar está colapsada, mostrar botón en header */
.docs-sidebar.collapsed ~ .docs-main .sidebar-toggle-header {
  display: flex;
}

.docs-sidebar.collapsed {
  transform: translateX(-100%);
}

.docs-sidebar.collapsed ~ .docs-main {
  margin-left: 0;
}

/* En desktop, el botón del header solo se muestra cuando sidebar colapsada */
@media (min-width: 1025px) {
  .sidebar-toggle-header {
    display: none;
  }
  
  .docs-sidebar.collapsed ~ .docs-main .sidebar-toggle-header {
    display: flex;
  }
}

/* ============================================
   HEADER & TOP BAR - Sticky with Glass Effect
   ============================================ */
.docs-header {
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 90;
  backdrop-filter: blur(10px);
  background: rgba(var(--bg-primary-rgb, 10, 12, 16), 0.95);
  transition: all 0.2s ease;
}

body.light .docs-header {
  background: rgba(255, 255, 255, 0.95);
}

.docs-header:hover {
  border-bottom-color: var(--shyro-blue-light);
}

.header-logo {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.header-logo i {
  color: var(--shyro-blue);
  font-size: 1.2rem;
}

.header-logo .logo-light {
  font-weight: 400;
  color: var(--text-muted);
}

/* Search Bar - Enhanced */
.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.header-search input:focus {
  outline: none;
  border-color: var(--shyro-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--bg-primary);
}

.header-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-search input:focus + i {
  color: var(--shyro-blue);
}

.search-dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-dropdown.show {
  display: block;
}

.search-result {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result:hover {
  background: var(--hover-bg);
  padding-left: 20px;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.search-result-category {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--shyro-blue);
  transform: scale(1.02);
  background: var(--hover-bg);
}

.theme-toggle .fa-sun {
  display: none;
  color: #f59e0b;
}

.theme-toggle .fa-moon {
  display: inline;
  color: var(--text-secondary);
}

body.dark .theme-toggle .fa-sun {
  display: inline;
}

body.dark .theme-toggle .fa-moon {
  display: none;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--shyro-blue);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.header-link:hover {
  background: var(--shyro-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   SIDEBAR NAVIGATION - Premium Hover States
   ============================================ */
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

.logo span:first-of-type {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--shyro-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.logo .logo-light {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1.3rem;
}

.sidebar-close-mobile {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s;
}

.sidebar-close-mobile:hover {
  color: var(--shyro-blue);
  transform: rotate(90deg);
}

.sidebar-search-mobile {
  display: none;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-search-mobile input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.sidebar-search-mobile i {
  position: absolute;
  margin-left: 12px;
  margin-top: 12px;
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
}

.nav-group {
  margin-bottom: 32px;
}

.nav-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--shyro-blue);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-group-title i {
  font-size: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-group:hover .nav-group-title i {
  opacity: 1;
}

.nav-group ul {
  list-style: none;
}

.nav-group li {
  padding: 8px 12px 8px 32px;
  margin: 2px 0;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.nav-group li:hover {
  background: var(--hover-bg);
  color: var(--shyro-blue);
  transform: translateX(4px);
}

.nav-group li.active {
  background: var(--shyro-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.nav-group li.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: white;
  border-radius: 0 2px 2px 0;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   HERO SECTION - Better Visual Hierarchy
   ============================================ */
.docs-hero {
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.docs-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--shyro-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.docs-hero > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.6;
}

/* Featured Cards - Professional Grid with Premium Hover */
.featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--shyro-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: var(--card-hover-transform);
  border-color: var(--shyro-blue-light);
  box-shadow: var(--shadow-lg), var(--shyro-glow);
}

.feature-card i {
  font-size: 1.8rem;
  background: var(--shyro-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.2s;
}

.feature-card:hover i {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   ARTICLE CONTENT - Optimized Typography & Spacing
   ============================================ */
.docs-article {
  background: transparent;
}

.docs-article h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.docs-article h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 56px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.docs-article h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 36px 0 16px;
  color: var(--text-primary);
}

.docs-article p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.docs-article ul,
.docs-article ol {
  margin: 20px 0 20px 24px;
  color: var(--text-secondary);
}

.docs-article li {
  margin: 10px 0;
  line-height: 1.7;
}

.docs-article li strong {
  color: var(--text-primary);
}

.docs-article a {
  color: var(--shyro-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.docs-article a:hover {
  border-bottom-color: var(--shyro-blue);
}

.docs-article code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85em;
  font-family: 'Fira Code', monospace;
  color: var(--shyro-cyan);
}

/* ============================================
   CODE BLOCKS - Professional Design
   ============================================ */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 14px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.code-block:hover {
  border-color: var(--shyro-blue);
  box-shadow: var(--shadow-md);
}

.code-block pre {
  padding: 20px 24px;
  overflow-x: auto;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text-primary);
}

.code-block code {
  font-family: inherit;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(37, 99, 235, 0.9);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

.copy-btn:hover {
  opacity: 1;
  background: var(--shyro-blue);
  transform: scale(1.02);
}

/* ============================================
   ALERTS - Modern Design
   ============================================ */
.alert {
  padding: 18px 20px;
  border-radius: 14px;
  margin: 28px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.alert:hover {
  transform: translateX(4px);
}

.alert i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.alert-info {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid var(--shyro-blue);
  border-color: rgba(37, 99, 235, 0.15);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #f59e0b;
  border-color: rgba(245, 158, 11, 0.15);
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid #10b981;
  border-color: rgba(16, 185, 129, 0.15);
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #ef4444;
  border-color: rgba(239, 68, 68, 0.15);
}

/* ============================================
   ARTICLE NAVIGATION
   ============================================ */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.nav-prev,
.nav-next {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.nav-prev:hover,
.nav-next:hover {
  border-color: var(--shyro-blue);
  color: var(--shyro-blue);
  background: var(--hover-bg);
  transform: translateX(0);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   TABLE OF CONTENTS (RIGHT SIDEBAR) - Subtle
   ============================================ */
.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--shyro-blue);
  padding: 0 16px 12px 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.toc-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.toc-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: block;
  cursor: pointer;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--shyro-blue);
  background: var(--hover-bg);
  padding-left: 12px;
}

.toc-link.active {
  color: var(--shyro-blue);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 500;
}

.toc-link.level-2 {
  padding-left: 24px;
}

.toc-link.level-2:hover {
  padding-left: 28px;
}

/* ============================================
   SUPPORT CARD - Elegant Integration
   ============================================ */
.support-card {
  margin: 48px 0 32px;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--shyro-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.support-card:hover {
  border-color: var(--shyro-blue-light);
  box-shadow: var(--shadow-lg);
}

.support-card:hover::before {
  transform: scaleX(1);
}

.support-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.support-card-header i {
  font-size: 1.6rem;
  color: var(--shyro-blue);
}

.support-card-header span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.support-card-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.support-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.support-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.support-channel:hover {
  transform: translateY(-2px);
  background: var(--hover-bg);
}

.support-channel i {
  font-size: 1.5rem;
  color: var(--shyro-blue);
}

.support-channel strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.support-channel span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.support-btn-discord {
  background: #5865f2;
  color: white;
  border: none;
}

.support-btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.support-btn-ticket {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.support-btn-ticket:hover {
  border-color: var(--shyro-blue);
  color: var(--shyro-blue);
  transform: translateY(-2px);
  background: var(--hover-bg);
}

/* ============================================
   MINIMAL FOOTER - Documentation Style
   ============================================ */
.docs-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-separator {
  color: var(--border-medium);
  opacity: 0.5;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-link i {
  font-size: 0.7rem;
}

.footer-link:hover {
  color: var(--shyro-blue);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--shyro-blue);
  border: none;
  border-radius: 28px;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 300;
  box-shadow: var(--shadow-xl);
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  transform: scale(1.05);
  background: var(--shyro-blue-dark);
  box-shadow: var(--shadow-xl), var(--shyro-glow);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 95;
  transition: opacity 0.3s;
}

/* ============================================
   RESPONSIVE: TABLET (768px - 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .docs-content {
    padding: 32px;
    gap: 32px;
  }

  .content-wrapper {
    max-width: 100%;
  }

  .docs-toc {
    display: none;
  }

  .docs-hero h1 {
    font-size: 2rem;
  }

  .featured-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .sidebar-toggle-desktop,
  .sidebar-toggle-header {
    display: none !important;
  }
}

/* ============================================
   RESPONSIVE: MOBILE (320px - 767px)
   ============================================ */
@media (max-width: 767px) {
  /* Layout */
  .docs-sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 101;
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close-mobile {
    display: block;
  }

  .sidebar-search-mobile {
    display: block;
  }

  .docs-main {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-overlay.active {
    display: block;
  }
  
  .sidebar-toggle-desktop,
  .sidebar-toggle-header {
    display: none !important;
  }

  /* Content */
  .docs-content {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .docs-toc {
    display: none;
  }

  .content-wrapper {
    max-width: 100%;
  }

  /* Header */
  .docs-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .header-logo {
    display: flex;
  }

  .header-search {
    max-width: none;
  }

  .header-link span {
    display: none;
  }

  .header-link {
    padding: 8px 12px;
  }

  /* Hero */
  .docs-hero {
    margin-bottom: 32px;
  }

  .docs-hero h1 {
    font-size: 1.6rem;
  }

  .docs-hero > p {
    font-size: 0.95rem;
  }

  .featured-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 16px;
  }
  
  .feature-card i {
    font-size: 1.4rem;
  }

  /* Article */
  .docs-article h1 {
    font-size: 1.6rem;
  }

  .docs-article h2 {
    font-size: 1.3rem;
    margin: 32px 0 16px;
  }

  .docs-article h3 {
    font-size: 1.1rem;
  }

  .docs-article p,
  .docs-article li {
    font-size: 0.95rem;
  }

  /* Code blocks */
  .code-block pre {
    padding: 14px;
    font-size: 0.7rem;
  }

  .copy-btn {
    padding: 4px 10px;
    font-size: 0.65rem;
  }

  /* Navigation */
  .article-nav {
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
  }

  .nav-prev,
  .nav-next {
    justify-content: center;
    width: 100%;
  }

  /* Alerts */
  .alert {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  
  /* Support Card */
  .support-card {
    padding: 20px;
    margin: 32px 0 24px;
  }

  .support-card-header i {
    font-size: 1.3rem;
  }

  .support-card-header span {
    font-size: 1.1rem;
  }

  .support-channels {
    flex-direction: column;
    gap: 12px;
  }

  .support-channel {
    min-width: auto;
    padding: 10px 14px;
  }

  .support-actions {
    flex-direction: column;
  }

  .support-btn {
    justify-content: center;
    width: 100%;
  }

  /* Footer */
  .footer-links {
    gap: 6px;
    font-size: 0.7rem;
  }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE (320px - 480px)
   ============================================ */
@media (max-width: 480px) {
  .docs-content {
    padding: 16px;
  }

  .docs-header {
    padding: 10px 12px;
  }

  .header-logo {
    font-size: 0.9rem;
  }
  
  .header-logo-img {
    height: 24px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  
  .header-link {
    padding: 6px 10px;
  }

  .docs-hero h1 {
    font-size: 1.4rem;
  }

  .docs-article h1 {
    font-size: 1.4rem;
  }

  .docs-article h2 {
    font-size: 1.2rem;
  }

  .code-block pre {
    padding: 12px;
  }

  .mobile-menu-btn {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
  
  .logo-img {
    height: 28px;
  }
  
  .logo span:first-of-type,
  .logo .logo-light {
    font-size: 1.1rem;
  }
  
  .support-card {
    padding: 16px;
  }
}

/* ============================================
   RESPONSIVE: DESKTOP (1025px - 1366px)
   ============================================ */
@media (min-width: 1025px) and (max-width: 1366px) {
  .docs-content {
    padding: 32px 40px;
    gap: 48px;
  }

  .content-wrapper {
    max-width: 780px;
  }

  .docs-toc {
    width: 240px;
  }
}

/* ============================================
   RESPONSIVE: LARGE DESKTOP (1920px+)
   ============================================ */
@media (min-width: 1920px) {
  .docs-content {
    max-width: 1600px;
    padding: 48px 64px;
    gap: 80px;
  }

  .content-wrapper {
    max-width: 1000px;
  }

  .docs-toc {
    width: 280px;
  }

  .docs-hero h1 {
    font-size: 2.8rem;
  }

  .docs-article {
    font-size: 1.05rem;
  }

  .docs-article h1 {
    font-size: 2.5rem;
  }

  .docs-article h2 {
    font-size: 1.8rem;
  }
}

/* ============================================
   UTILITIES & PRINT
   ============================================ */
@media print {
  .docs-sidebar,
  .docs-header,
  .docs-toc,
  .article-nav,
  .mobile-menu-btn,
  .mobile-overlay,
  .support-card,
  .docs-footer,
  .sidebar-toggle-desktop,
  .sidebar-toggle-header {
    display: none;
  }

  .docs-main {
    margin-left: 0;
  }

  .docs-content {
    padding: 0;
  }

  .code-block {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  .copy-btn {
    display: none;
  }
}

/* Smooth transitions for theme switching */
body,
.docs-sidebar,
.docs-header,
.docs-toc,
.code-block,
.feature-card,
.alert,
.nav-group li,
.search-result,
.support-card {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--shyro-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Prevenir desbordamiento horizontal */
img, video, iframe, .code-block pre {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}

/* ============================================
   TOC HELP CARD - Minimal Support Integration
   ============================================ */
.toc-help-card {
  margin-top: 24px;
  padding: 0 16px;
}

.toc-help-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.toc-help-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc-help-title i {
  font-size: 0.7rem;
  color: var(--shyro-blue);
}

.toc-help-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-help-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-help-link i {
  width: 18px;
  font-size: 0.8rem;
  color: var(--shyro-blue);
}

.toc-help-link:hover {
  background: var(--hover-bg);
  color: var(--shyro-blue);
  transform: translateX(2px);
}

.toc-help-link:hover i {
  color: var(--shyro-blue);
}

/* Modo oscuro - ya usa variables, funciona automáticamente */