/* Modern Dark Minimalist Theme - Fast, Responsive, SEO-Ready */
:root {
  --bg-main: #0a0b10;
  --bg-surface: #12141d;
  --bg-card: #171a26;
  --bg-card-hover: #1e2233;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(244, 63, 94, 0.45);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent-primary: #f43f5e;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 5%, rgba(244, 63, 94, 0.07) 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.07) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent-primary);
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.search-box {
  position: relative;
  flex: 0 1 260px;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 22px 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

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

.breadcrumbs .sep {
  opacity: 0.4;
}

/* Hero Section */
.hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
  margin-bottom: 16px;
}

.hero h1, .article-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Article Content Typography */
.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.article-content {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-content p {
  margin-bottom: 1.4em;
  text-align: left !important;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2em;
  margin-bottom: 0.75em;
  letter-spacing: -0.015em;
  text-align: left !important;
}

.article-content h2 {
  font-size: 1.5rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content h3 {
  font-size: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em 1.5em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content a {
  color: #fb7185;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-primary);
  background: rgba(244, 63, 94, 0.05);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
  font-style: italic;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

/* Grid & Cards */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 24px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.post-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a78bfa;
  margin-bottom: 10px;
}

.post-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #fff;
}

.post-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.read-more {
  color: #fb7185;
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 60px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover,
.page-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

/* Prev/Next Nav */
.post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0 48px;
}

.post-nav-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.post-nav-item:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.post-nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-nav-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 11, 16, 0.9);
  padding: 40px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0;
  }
  .search-box {
    flex: 1 1 100%;
    order: 3;
  }
  .article-card {
    padding: 20px;
  }
}


/* Contextual In-Text Internal Linking Block */
.inline-interlink {
  margin: 28px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
}

.inline-interlink-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fb7185;
  margin-bottom: 10px;
  display: block;
}

.inline-interlink-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-interlink-list li {
  margin: 0 !important;
  padding-left: 18px;
  position: relative;
  font-size: 0.96rem;
  line-height: 1.45;
}

.inline-interlink-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

.inline-interlink-list a {
  color: #f8fafc !important;
  text-decoration: none !important;
  font-weight: 600;
  border-bottom: 1px dashed rgba(251, 113, 133, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.inline-interlink-list a:hover {
  color: #fb7185 !important;
  border-bottom-color: #fb7185;
}

/* Cross-section Hub Pills */
.hub-links-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 28px 0 36px;
}

.hub-links-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a78bfa;
  margin-bottom: 14px;
}

.hub-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.hub-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.hub-pill:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--bg-card-hover);
  color: #c4b5fd;
  transform: translateY(-2px);
}


/* Videochat App Container Wrapper */
.videochat-widget-section {
  margin: 24px 0 36px;
}

.videochat-widget-card {
  background: var(--bg-surface);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.65), 0 0 24px rgba(244, 63, 94, 0.08);
  overflow: hidden;
}

#app_container {
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 768px) {
  .videochat-widget-card {
    padding: 8px;
  }
  #app_container {
    min-height: 420px;
  }
}


/* Table of Contents (TOC) */
.toc-box {
  background: rgba(18, 20, 29, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 28px 0;
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 16px;
}

.toc-list li {
  margin: 0 !important;
  font-size: 0.9rem;
  line-height: 1.4;
}

.toc-list a {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  display: inline-block;
  padding: 3px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toc-list a:hover {
  color: #fb7185 !important;
  transform: translateX(3px);
}

/* Sitemap Hub Links */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.sitemap-link {
  display: block;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.sitemap-link:hover {
  border-color: var(--accent-primary);
  color: #fff;
  background: var(--bg-card-hover);
}


/* Videochat Dual-Tab Switcher */
.chat-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-tabs-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.chat-tab-btn:hover {
  color: #fff;
  border-color: rgba(244, 63, 94, 0.4);
}

.chat-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), #e11d48);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.chat-tab-pane {
  display: none;
  width: 100%;
}

.chat-tab-pane.active {
  display: block;
}

.chat-tab-pane iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  border-radius: var(--radius-md);
  background: #0d0f17;
}

@media (max-width: 768px) {
  .chat-tab-pane iframe {
    min-height: 500px;
  }
  .chat-tab-btn {
    padding: 8px 14px;
    font-size: 0.84rem;
  }
}


/* Safe Roulette Interactive Launch Screen */
.safe-roulette-box {
  background: radial-gradient(circle at 50% 0%, rgba(244, 63, 94, 0.16), rgba(13, 15, 23, 0.98) 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.safe-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.safe-avatars-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.safe-avatar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.safe-avatar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.safe-avatar-info strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.safe-avatar-info span {
  color: #4ade80;
  font-size: 0.76rem;
}

.safe-roulette-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.safe-roulette-sub {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 560px;
  margin: 0 auto 24px;
}

.safe-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.safe-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 99px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.safe-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.5);
}

.safe-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.safe-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-primary);
}

.safe-features-line {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Safe Floating Bottom-Right Widget (No adult video, 100% RKN/Yandex safe) */
.safe-floating-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 990;
  background: rgba(18, 20, 29, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  max-width: 320px;
}

.safe-floating-toast a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.safe-floating-toast a span {
  display: block;
  color: #fb7185;
  font-size: 0.78rem;
  margin-top: 2px;
}

.safe-toast-close {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 4px;
}

.legal-disclaimer {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
