/* Hotelierly-inspired Dark Theme for Affiliate Sites */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1e293b;
  --bg-elevated: #21262d;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-soft: #14532d;
  --border: #30363d;
  --border-subtle: #21262d;
  --warning-bg: #fff8e1;
  --warning-text: #92400e;
  --error: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(34,197,94,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  position: relative;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  position: relative;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9375rem;
}

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

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 0;
  position: relative;
}

.stat { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section:nth-child(even) { background: var(--bg-secondary); }

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Article Cards */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
}

.article-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-card h3 a:hover { color: var(--accent); }

.article-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Affiliate Banner */
.affiliate-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.affiliate-banner h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.affiliate-banner p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.affiliate-banner a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin: 0.5rem;
  transition: all 0.2s;
}

.affiliate-banner a:hover {
  background: var(--accent-hover);
}

/* Article Page Styles */
.article-header {
  padding: 4rem 2rem 3rem;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(34,197,94,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  position: relative;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--bg-primary);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.article-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-body li::marker { color: var(--accent); }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.comparison-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.comparison-table tr:hover {
  background: var(--bg-secondary);
}

/* CTA Box */
.cta-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cta-box strong {
  color: var(--accent);
  font-weight: 700;
}

.cta-box a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.cta-box a:hover { text-decoration: underline; }

/* Affiliate Disclosure */
.affiliate-disclosure {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 2rem 0;
}

.affiliate-disclosure strong {
  color: var(--text-secondary);
}

/* Table of Contents */
.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.toc h3 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.toc li {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.toc a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

/* Page Content (disclosure, etc.) */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: var(--bg-primary);
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--accent);
  font-weight: 700;
}

.page-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

.cookie-banner.hidden { display: none; }

.cookie-banner-content {
  flex: 1;
  min-width: 260px;
}

.cookie-banner-content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cookie-banner-content p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-content a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-banner-content a:hover { text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.cookie-btn-essential:hover {
  background: var(--bg-elevated);
}

.cookie-btn-accept {
  background: var(--accent);
  color: #000;
}

.cookie-btn-accept:hover {
  background: var(--accent-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1rem; }
  .section { padding: 2.5rem 1rem; }
  .section h2 { font-size: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.75rem; }
  .article-body { padding: 2rem 1rem; }
  .navbar { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .stats { gap: 1.5rem; }
  .cookie-banner { padding: 1rem; flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
