/* ============================================
   DONT-BLINK.FUN — Blog / Content Pages CSS
   Dark gaming aesthetic with readable typography
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #e94560;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff6b81;
}

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

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-eye {
  font-size: 1.6rem;
}

.nav-logo span {
  color: #e94560;
}

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

.nav-links a {
  color: #8b8b9e;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links .lang-switch {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(233, 69, 96, 0.4);
  border-radius: 6px;
  color: #e94560;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-links .lang-switch:hover {
  background: rgba(233, 69, 96, 0.1);
  color: #ff6b81;
}

/* Hamburger menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(22, 33, 62, 1) 0%, rgba(26, 26, 46, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent {
  color: #e94560;
}

.hero .hero-subtitle {
  font-size: 1.15rem;
  color: #8b8b9e;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.85rem;
  color: #6b6b7e;
}

.breadcrumb a {
  color: #6b6b7e;
}

.breadcrumb a:hover {
  color: #8b8b9e;
}

.breadcrumb .sep {
  margin: 0 0.5rem;
  color: #4a4a5e;
}

/* --- Reading Time --- */
.reading-time {
  font-size: 0.85rem;
  color: #6b6b7e;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reading-time .dot {
  width: 4px;
  height: 4px;
  background: #6b6b7e;
  border-radius: 50%;
  display: inline-block;
}

/* --- Content Layout --- */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.content-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 70%;
}

.main-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #fff;
  line-height: 1.3;
}

.main-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #e0e0e0;
}

.main-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #d0d0d0;
}

.main-content p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #c8c8d4;
  font-size: 1.05rem;
}

.main-content ul,
.main-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: #c8c8d4;
}

.main-content li {
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.main-content strong {
  color: #fff;
  font-weight: 600;
}

.main-content em {
  color: #a8a8be;
  font-style: italic;
}

.main-content blockquote {
  border-left: 3px solid #e94560;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(233, 69, 96, 0.05);
  border-radius: 0 8px 8px 0;
  color: #a8a8be;
  font-style: italic;
}

/* --- Table of Contents --- */
.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}

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

.toc li::before {
  content: counter(toc-counter) ".";
  color: #e94560;
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.toc a {
  color: #8b8b9e;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: #fff;
}

/* --- Sidebar --- */
.sidebar {
  width: 30%;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
}

.sidebar-card li {
  margin-bottom: 0.75rem;
}

.sidebar-card li a {
  color: #8b8b9e;
  font-size: 0.9rem;
  display: block;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-card li a:hover {
  color: #e94560;
  padding-left: 0.5rem;
}

.sidebar-card li:last-child a {
  border-bottom: none;
}

/* --- FAQ Section --- */
.faq-list {
  margin: 1.5rem 0;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(233, 69, 96, 0.3);
}

.faq-item summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #e94560;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item[open] summary {
  background: rgba(233, 69, 96, 0.05);
}

.faq-item .faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #a8a8be;
  line-height: 1.8;
  font-size: 0.98rem;
}

/* --- Game CTA (mid-article) --- */
.game-cta {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(233, 69, 96, 0.05) 100%);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 14px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.game-cta h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.game-cta p {
  color: #a8a8be;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.game-cta .btn {
  display: inline-block;
}

/* --- Key Fact Box --- */
.key-fact {
  background: rgba(255, 215, 0, 0.05);
  border-left: 4px solid #ffd700;
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.key-fact strong {
  color: #ffd700;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.key-fact p {
  color: #c8c8d4;
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}

/* --- Info Box --- */
.info-box {
  background: rgba(0, 255, 100, 0.04);
  border: 1px solid rgba(0, 255, 100, 0.15);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box strong {
  color: #00ff64;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-box p {
  color: #c8c8d4;
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: #e94560;
  color: #fff;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
  background: #ff6b81;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-outline {
  background: transparent;
  color: #e94560;
  border: 2px solid #e94560;
}

.btn-outline:hover {
  background: rgba(233, 69, 96, 0.1);
  color: #ff6b81;
}

/* --- Site Footer --- */
.site-footer {
  background: rgba(10, 10, 20, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col p {
  color: #6b6b7e;
  font-size: 0.9rem;
  line-height: 1.7;
}

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

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

.footer-col a {
  color: #6b6b7e;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #e94560;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  text-align: center;
  color: #4a4a5e;
  font-size: 0.85rem;
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {

  /* Header */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(16, 20, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(233, 69, 96, 0.15);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Overlay when menu is open */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero .hero-subtitle {
    font-size: 1rem;
  }

  /* Content layout */
  .content-section {
    padding: 1.5rem;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .main-content {
    max-width: 100%;
  }

  .main-content h2 {
    font-size: 1.45rem;
  }

  .main-content h3 {
    font-size: 1.15rem;
  }

  /* Sidebar hidden on mobile */
  .sidebar {
    display: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* TOC */
  .toc {
    padding: 1.25rem 1.5rem;
  }

  /* CTA */
  .game-cta {
    padding: 1.5rem;
  }

  .game-cta h3 {
    font-size: 1.2rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    padding: 0.75rem 1.5rem 0;
    font-size: 0.8rem;
  }
}

/* --- Small screens --- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .main-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* --- Utility --- */
.text-accent { color: #e94560; }
.text-green  { color: #00ff64; }
.text-gold   { color: #ffd700; }
.text-muted  { color: #8b8b9e; }
.text-subtle { color: #6b6b7e; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
