/* JoinYono.com — Modern Dark Navy Gaming Directory Theme */
/* Color Tokens: Background #0B1020, Cards #141C2F, Primary #10B981, Secondary #38BDF8, Text #F8FAFC, Muted #94A3B8 */

:root {
  --bg-main: #0B1020;
  --bg-card: #141C2F;
  --bg-card-hover: #1A243D;
  --bg-surface: #0F172A;
  --bg-glass: rgba(20, 28, 47, 0.85);
  
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --secondary: #38BDF8;
  --secondary-hover: #0EA5E9;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.08) 0px, transparent 40%),
    radial-gradient(at 85% 25%, rgba(56, 189, 248, 0.08) 0px, transparent 40%);
  background-attachment: fixed;
}

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

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

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Regulatory Banner */
.top-notice-bar {
  background: linear-gradient(90deg, #1e1b4b, #0f172a);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  color: #E2E8F0;
  font-size: 0.825rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 500;
}

.top-notice-bar strong {
  color: var(--secondary);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  height: 2.8rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 2.8rem;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-header-telegram:hover {
  background: var(--secondary);
  color: #0B1020;
}

.btn-mobile-menu {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

/* Hero Search Box */
.search-container {
  max-width: 620px;
  margin: 0 auto;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

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

.search-icon-svg {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  width: 1.25rem;
  height: 1.25rem;
}

.search-submit-btn {
  position: absolute;
  right: 0.5rem;
  background: var(--primary);
  color: #0B1020;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-submit-btn:hover {
  background: var(--primary-hover);
}

/* Section Common */
.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-wrap h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
  color: var(--text-main);
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.category-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.category-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Game Card Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
  position: relative;
}

.game-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6);
}

.game-card-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.game-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon-wrap img, .game-icon-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-meta-wrap {
  flex: 1;
  min-width: 0;
}

.game-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-publisher {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-restricted {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-platform {
  background: rgba(56, 189, 248, 0.1);
  color: var(--secondary);
}

.game-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #0B1020;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #0B1020;
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #FFF;
}

.btn-disabled {
  background: rgba(148, 163, 184, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: not-allowed;
  pointer-events: none;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

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

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

.breadcrumbs-separator {
  color: var(--text-dim);
}

/* Game Detail Page Specifics */
.game-detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.detail-icon-wrap {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1e293b;
  box-shadow: var(--shadow-card);
}

.detail-icon-wrap img, .detail-icon-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info-main h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.detail-publisher-line {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.detail-action-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
}

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

.detail-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.75rem;
}

.detail-content-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.detail-prose {
  color: #CBD5E1;
  font-size: 0.975rem;
  line-height: 1.75;
}

.detail-prose p {
  margin-bottom: 1rem;
}

.detail-prose ul, .detail-prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.detail-prose li {
  margin-bottom: 0.4rem;
}

/* Sidebar Specifications Card */
.spec-list {
  list-style: none;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--text-muted);
}

.spec-value {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

/* Safety Gate Advisory Callout */
.safety-callout {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #EF4444;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #FCA5A5;
}

.safety-callout strong {
  color: #FFF;
  display: block;
  margin-bottom: 0.25rem;
}

.compliance-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.compliance-box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.compliance-box p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Guides Section */
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.guide-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.guide-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.guide-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.guide-card-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

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

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #0B1020;
  border-color: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0f172a;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: #070B16;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
}

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

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 360px;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

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

.footer-disclaimer-box {
  background: rgba(20, 28, 47, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 2rem;
}

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

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .game-detail-header {
    grid-template-columns: 100px 1fr;
  }
  .detail-action-column {
    grid-column: 1 / -1;
    width: 100%;
  }
  .detail-layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav, .btn-header-telegram {
    display: none;
  }
  .btn-mobile-menu {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .game-detail-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .detail-icon-wrap {
    margin: 0 auto;
  }
  .game-tags {
    justify-content: center;
  }
}
