/* Twitube Documentation Site Styles */
/* Dark theme matching Twitch aesthetic */

:root {
  --bg-primary: #0e0e10;
  --bg-secondary: #18181b;
  --bg-tertiary: #1f1f23;
  --text-primary: #efeff1;
  --text-secondary: #adadb8;
  --text-muted: #848494;
  --twitch-purple: #9147ff;
  --twitch-purple-hover: #772ce8;
  --youtube-red: #ff0000;
  --kick-green: #53fc18;
  --accent-success: #00c853;
  --accent-warning: #ffc107;
  --accent-gold: #ffd700;
  --border-color: #2f2f35;
  --card-bg: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--twitch-purple), var(--youtube-red));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

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

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

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

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--twitch-purple), var(--youtube-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--twitch-purple);
  color: white;
}

.btn-primary:hover {
  background: var(--twitch-purple-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
}

/* Section Styles */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--twitch-purple);
  transform: translateY(-4px);
}

.feature-card .icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Pricing Section */
.pricing-section {
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--twitch-purple);
  box-shadow: 0 0 30px rgba(145, 71, 255, 0.15);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--twitch-purple);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-card .tier {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .price span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

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

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card li::before {
  content: '✓';
  color: var(--accent-success);
  font-weight: 700;
}

.pricing-card li.disabled {
  opacity: 0.5;
}

.pricing-card li.disabled::before {
  content: '—';
  color: var(--text-muted);
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* Comparison Table */
.comparison-table {
  overflow-x: auto;
  margin-top: 40px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table td {
  color: var(--text-secondary);
}

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

.check {
  color: var(--accent-success);
}

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

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

/* Policy Pages */
.policy-page {
  padding: 40px 0;
}

.policy-page h1 {
  font-size: 36px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--twitch-purple), var(--youtube-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.policy-page .last-updated {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

.policy-page h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--twitch-purple);
  text-align: left;
}

.policy-page h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.policy-page p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.policy-page ul,
.policy-page ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.policy-page li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.policy-page a {
  color: var(--twitch-purple);
  text-decoration: none;
}

.policy-page a:hover {
  text-decoration: underline;
}

.policy-page .highlight {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid var(--accent-warning);
  padding: 16px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.policy-page .highlight strong {
  color: var(--text-primary);
}

.policy-page .contact-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-top: 40px;
}

.policy-page code {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

/* Platform Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-twitch {
  background: rgba(145, 71, 255, 0.2);
  color: var(--twitch-purple);
}

.badge-youtube {
  background: rgba(255, 0, 0, 0.2);
  color: var(--youtube-red);
}

.badge-kick {
  background: rgba(83, 252, 24, 0.2);
  color: var(--kick-green);
}

.badge-pro {
  background: linear-gradient(135deg, var(--twitch-purple), var(--youtube-red));
  color: white;
}

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

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

  .nav-links {
    gap: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  nav .container {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
