/* NSFW AI Scout - Global Styles */
/* Mobile-first, dark theme, modern adult aesthetic */

:root {
  --bg-primary: #0a0a0f;
  --bg-card: #14141f;
  --bg-card-hover: #1a1a2a;
  --accent: #7c3aed;
  --accent-hover: #9333ea;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e1e2e;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --gradient-score: linear-gradient(90deg, #22c55e 0%, #eab308 50%, #ef4444 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-top: 2rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav a:hover, .nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 1rem;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav a {
    padding: 0.75rem 1rem;
  }
}

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

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.badge-icon {
  font-size: 1rem;
}

/* Main Content */
main {
  padding: 2rem 0 4rem;
}

.content {
  max-width: 800px;
}

.content.full-width {
  max-width: none;
}

/* App Cards */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.app-card-rank {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.app-card-image {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.app-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.app-card-badge.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
}

.app-card-content {
  padding: 1.25rem;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.app-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.app-card-score {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.app-card-score-value {
  color: var(--success);
}

.app-card-score-max {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.app-card-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.app-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.app-card-feature {
  padding: 0.25rem 0.5rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.app-card-cta {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s;
}

.app-card-cta:hover {
  background: var(--accent-hover);
  color: white;
}

/* Featured App Card (larger) */
.app-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .app-card-featured {
    grid-template-columns: 1fr 1fr;
  }
  
  .app-card-featured .app-card-image {
    aspect-ratio: auto;
    min-height: 300px;
  }
  
  .app-card-featured .app-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Score Bars */
.score-bars {
  margin: 1rem 0;
}

.score-bar {
  margin-bottom: 0.75rem;
}

.score-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.score-bar-label {
  color: var(--text-secondary);
}

.score-bar-value {
  color: var(--text-primary);
  font-weight: 600;
}

.score-bar-track {
  height: 0.5rem;
  background: var(--bg-primary);
  border-radius: 0.25rem;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 0.25rem;
  transition: width 0.5s ease-out;
}

.score-bar-fill.high { background: var(--success); }
.score-bar-fill.medium { background: var(--warning); }
.score-bar-fill.low { background: var(--danger); }

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.comparison-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

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

.comparison-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  position: sticky;
  top: 0;
}

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

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

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.table-score {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.table-score-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.table-score-dot.high { background: var(--success); }
.table-score-dot.medium { background: var(--warning); }
.table-score-dot.low { background: var(--danger); }

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

.table-cross {
  color: var(--danger);
}

.table-cta {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.table-cta:hover {
  background: var(--accent-hover);
  color: white;
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Pros/Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros, .cons {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.pros h4, .cons h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pros h4 { color: var(--success); }
.cons h4 { color: var(--danger); }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
}

.pros li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: bold;
}

.cons li::before {
  content: "✗ ";
  color: var(--danger);
  font-weight: bold;
}

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

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

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

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links h5 {
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-disclaimer {
  max-width: 600px;
  line-height: 1.5;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Article styles */
article h2 {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

code {
  background: var(--bg-card);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* 18+ Badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

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

/* Internal links styling */
.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.internal-links h4 {
  margin-bottom: 1rem;
}

.internal-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .internal-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.internal-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.internal-links a:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
}

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

.animate-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Print styles */
@media print {
  .header, .footer, .nav, .btn, .cta {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .app-card {
    break-inside: avoid;
  }
}
