/* Modern Audio Player Documentation - Premium Styles */

:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #27384f;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  /* Gradients */
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--secondary) 100%
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 8px 16px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Sidebar */
  --sidebar-width: 280px;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow);
}

.sidebar .logo {
  padding: 32px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gradient);
  color: var(--white);
}

.sidebar .logo h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.sidebar .logo .subtitle {
  font-size: 0.9375rem;
  opacity: 0.95;
  margin-bottom: 8px;
  font-weight: 500;
}

.sidebar .logo .version {
  font-size: 0.875rem;
  opacity: 0.85;
  font-weight: 500;
}

.nav-menu {
  list-style: none;
  padding: 16px 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-menu a:hover {
  background: var(--gray-50);
  color: var(--primary);
  border-left-color: var(--primary);
}

.nav-menu a.active {
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 100%
  );
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Main Content */
.content {
  margin-left: var(--sidebar-width);
  padding: 40px 60px 80px;
  max-width: 1400px;
}

/* Typography */
h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-top: 60px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 32px;
  margin-bottom: 16px;
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 24px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Sections */
.section {
  margin-bottom: 80px;
}

/* Boxes */
.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--primary);
}

.info-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.warning-box {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.05) 0%,
    rgba(239, 68, 68, 0.05) 100%
  );
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.tip-box {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.05) 0%,
    rgba(5, 150, 105, 0.05) 100%
  );
  border: 1px solid #10b981;
  border-left: 4px solid #10b981;
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

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

.feature-intro {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
}

.feature-intro:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-intro h4 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-intro p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* Steps */
.step-container {
  margin: 32px 0;
}

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}

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

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

/* Lists */
ul,
ol {
  margin: 16px 0;
  padding-left: 28px;
}

li {
  margin: 8px 0;
  line-height: 1.7;
}

/* Code */
code {
  background: var(--gray-100);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
  font-weight: 500;
}

pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
  box-shadow: var(--shadow-lg);
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

thead {
  background: var(--gradient);
  color: var(--white);
}

th {
  padding: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.9375rem;
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: var(--gray-50);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Requirements */
.requirements {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.requirements h3 {
  margin-top: 0;
  color: var(--primary);
}

.requirements ul {
  list-style: none;
  padding: 0;
}

.requirements li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}

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

.requirements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.125rem;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.faq-item h4 {
  margin: 0 0 12px 0;
  color: var(--primary);
}

.faq-item p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
  }

  .content {
    padding: 32px 40px 60px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
    padding: 24px 20px 40px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .feature-grid-intro {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
  }

  .power-stats-docs {
    grid-template-columns: 1fr;
  }

  .power-content h2 {
    font-size: 2rem;
  }

  .but-divider span {
    font-size: 1.25rem;
    padding: 10px 30px;
  }

  .customization-power-docs {
    padding: 40px 20px;
  }
}

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

.animation-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
}

.animation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.animation-card-default {
  border-left: 4px solid var(--primary);
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.05) 0%,
    transparent 100%
  );
}

.animation-card h4 {
  margin-top: 0;
  color: var(--primary);
}

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

.recommendation {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--primary);
}

.recommendation h4 {
  margin-top: 0;
  color: var(--primary);
}

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

.shortcut-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.shortcut-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.shortcut-key {
  background: var(--gradient);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 0.9375rem;
  min-width: 60px;
  text-align: center;
  box-shadow: var(--shadow);
}

.shortcut-action {
  flex: 1;
  color: var(--gray-700);
  font-weight: 500;
}

/* Subsection */
.subsection {
  margin: 40px 0;
}

/* Small text */
.small {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Footer */
.footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 2px solid var(--gray-200);
  text-align: center;
  color: var(--gray-600);
}

.footer p {
  margin-bottom: 8px;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* Customization Power Section (Documentation) */
.customization-power-docs {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  margin: 80px 0;
}

.but-divider {
  text-align: center;
  margin-bottom: 40px;
}

.but-divider span {
  background: var(--gradient);
  color: var(--white);
  padding: 12px 40px;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: var(--shadow-lg);
  display: inline-block;
}

.power-content {
  max-width: 1000px;
  margin: 0 auto;
}

.power-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.power-intro {
  font-size: 1.25rem;
  color: var(--gray-700);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 50px;
}

.power-intro strong {
  color: var(--primary);
  font-weight: 700;
}

.power-stats-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.power-stat-docs {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--gray-200);
}

.power-stat-docs .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.power-stat-docs .stat-label {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 600;
}

.control-highlights-docs {
  display: grid;
  gap: 16px;
  margin-bottom: 50px;
}

.control-highlight-docs {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.control-highlight-docs:hover {
  transform: translateX(8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.control-highlight-docs .control-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.control-highlight-docs span {
  color: var(--gray-700);
  line-height: 1.6;
}

.control-highlight-docs strong {
  color: var(--gray-900);
  font-weight: 700;
}

.no-limits-banner-docs {
  background: var(--gradient);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.no-limits-banner-docs h3 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: var(--white);
}

.no-limits-banner-docs p {
  font-size: 1.125rem;
  opacity: 0.95;
  line-height: 1.7;
  margin: 0;
}

/* Print Styles */
@media print {
  .sidebar {
    display: none;
  }

  .content {
    margin-left: 0;
  }
}
.sidebar .logo h2 {
  color: #ffffff !important;
}
/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 60px;
  background: var(--gradient);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex !important;
  }
}

.mobile-nav-toggle:hover {
  width: 40px;
  box-shadow: var(--shadow-xl);
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
/* Screenshot Containers */
.screenshot-container {
  margin: 2rem 0;
  text-align: center;
}

.screenshot-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.screenshot-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Screenshot Grid (for side-by-side comparisons) */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.screenshot-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}