/* Musicwire - Clean, fast, dark-mode friendly styles */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --border: #2a2a2a;
  --border-light: #3a3a3a;
  --code-bg: #1e1e1e;
  --code-border: #333;
  --radius: 6px;
  --radius-sm: 4px;
  --mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

h1 {
  font-size: 32px;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 20px;
}

p {
  margin: 0 0 16px 0;
  max-width: 700px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Code blocks */
pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s,
    opacity 0.15s;
  font-size: 14px;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 24px 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px 0;
}

thead {
  border-bottom: 1px solid var(--border);
}

th,
td {
  padding: 12px 16px;
  text-align: left;
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  border-bottom: 1px solid var(--border-light);
}

/* Hero section */
.hero {
  text-align: center;
  padding: 96px 0 80px 0;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

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

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* Price display */
.price {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

.price label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}

/* Loading state */
.loading {
  color: var(--text-muted);
  font-style: italic;
}

/* Error state */
.error {
  color: #ff6b6b;
  font-size: 13px;
}

/* List styles */
ul,
ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 20px;
  }

  pre {
    font-size: 12px;
    padding: 12px;
  }
}

/* Utility */
.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.mt-4 {
  margin-top: 32px;
}
.mt-2 {
  margin-top: 16px;
}
.mb-4 {
  margin-bottom: 32px;
}
.mb-2 {
  margin-bottom: 16px;
}

/* Pricing table */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pricing-card h3 {
  margin-bottom: 8px;
}

.pricing-card .description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Inline code in text */
p code {
  background: var(--code-bg);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Header navigation */
.header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 64px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Doc-specific styles */
.doc-section {
  margin-bottom: 48px;
}

.doc-section h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.endpoint-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.endpoint-item h3 {
  margin-bottom: 8px;
}

.endpoint-item code {
  background: var(--code-bg);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Light mode support (optional) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #505050;
    --text-muted: #808080;
    --accent: #00a885;
    --border: #e0e0e0;
    --border-light: #d0d0d0;
    --code-bg: #f0f0f0;
    --code-border: #ccc;
  }

  pre {
    background: var(--code-bg);
    border-color: var(--code-border);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}
