/* Subnautica 2 Game Guide Website - DeepDive Guides */
/* CSS Variables - Ocean Theme */
:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0d1f35;
  --bg-card: #1a2a4a;
  --bg-card-hover: #243554;
  --accent-primary: #00d4aa;
  --accent-secondary: #00a388;
  --accent-glow: rgba(0, 212, 170, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #a8b4c8;
  --text-muted: #6b7a94;
  --border-color: #2a3a5a;
  --warning-bg: rgba(255, 193, 7, 0.15);
  --warning-border: #ffc107;
  --tip-bg: rgba(0, 212, 170, 0.15);
  --tip-border: #00d4aa;
  --danger-bg: rgba(220, 53, 69, 0.15);
  --danger-border: #dc3545;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 212, 170, 0.2);
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 20px var(--accent-glow);
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu li a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--accent-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Search Box */
.search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  padding: 1rem 2rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

/* Main Layout */
.main-content {
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

/* Ad Containers */
.ad-container {
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.ad-placeholder {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem;
  text-align: center;
}

.ad-leaderboard {
  width: 100%;
  height: 90px;
}

.ad-rectangle {
  width: 100%;
  height: 250px;
}

.ad-inline {
  width: 100%;
  height: 120px;
}

/* Guide Cards */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: var(--accent-primary);
  border-radius: 2px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guide-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
}

.guide-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
}

.guide-card-image.biome { background: linear-gradient(135deg, #1a4a3a, #0a2a20); }
.guide-card-image.beginner { background: linear-gradient(135deg, #2a3a5a, #1a2a4a); }
.guide-card-image.kyanite { background: linear-gradient(135deg, #3a2a5a, #2a1a4a); }
.guide-card-image.base { background: linear-gradient(135deg, #2a4a4a, #1a3a3a); }
.guide-card-image.eggs { background: linear-gradient(135deg, #4a3a2a, #3a2a1a); }

.guide-card-content {
  padding: 1.5rem;
}

.guide-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.guide-card-content h3 a {
  color: var(--text-primary);
}

.guide-card-content h3 a:hover {
  color: var(--accent-primary);
}

.guide-card-content p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-primary);
}

.popular-guides-list {
  list-style: none;
}

.popular-guides-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.popular-guides-list li:last-child {
  border-bottom: none;
}

.popular-guides-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.popular-guides-list a:hover {
  color: var(--accent-primary);
}

.popular-guides-list span {
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1;
}

/* Amazon Affiliate Box */
.amazon-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.amazon-box h4 {
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.amazon-box p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.amazon-btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.amazon-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

/* Article Page Styles */
.article-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

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

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

.article-header h1 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.toc h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.toc-list li::before {
  content: counter(toc-counter);
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-family: var(--font-heading);
}

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

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

/* Article Content */
.article-content {
  max-width: 800px;
}

.article-content h2 {
  color: var(--accent-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.article-content h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

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

.article-content strong {
  color: var(--text-primary);
}

.article-content .highlight {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  margin: 1.5rem 0;
}

/* Info Boxes */
.info-box {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.tip-box {
  background: var(--tip-bg);
  border-left: 4px solid var(--tip-border);
}

.tip-box::before {
  content: "TIP";
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tip-border);
  display: block;
  margin-bottom: 0.5rem;
}

.warning-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
}

.warning-box::before {
  content: "WARNING";
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--warning-border);
  display: block;
  margin-bottom: 0.5rem;
}

.danger-box {
  background: var(--danger-bg);
  border-left: 4px solid var(--danger-border);
}

.danger-box::before {
  content: "DANGER";
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--danger-border);
  display: block;
  margin-bottom: 0.5rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Related Guides */
.related-guides {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-guides h2 {
  margin-bottom: 1.5rem;
}

.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  transition: var(--transition);
}

.related-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.related-card h4 a {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.related-card h4 a:hover {
  color: var(--accent-primary);
}

.related-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.legal-content h2 {
  color: var(--accent-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

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

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

.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

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

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .sidebar .ad-container {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box button {
    width: 100%;
  }
  
  .guides-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar .ad-container {
    grid-column: span 1;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .toc-list li {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .guide-card-content {
    padding: 1rem;
  }
  
  .toc {
    padding: 1rem;
  }
  
  .info-box {
    padding: 1rem;
  }
}

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

.guide-card {
  animation: fadeIn 0.5s ease forwards;
}

.guide-card:nth-child(1) { animation-delay: 0.1s; }
.guide-card:nth-child(2) { animation-delay: 0.2s; }
.guide-card:nth-child(3) { animation-delay: 0.3s; }
.guide-card:nth-child(4) { animation-delay: 0.4s; }
.guide-card:nth-child(5) { animation-delay: 0.5s; }

/* Print Styles */
@media print {
  .navbar,
  .sidebar,
  .ad-container,
  .search-box,
  .footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .article-content {
    max-width: 100%;
  }
}
