/* OmeTV24.com - Main Stylesheet | Random Video Chat & Omegle Alternatives */
:root {
  --color-bg: #0f1419;
  --color-surface: #1a2332;
  --color-surface-hover: #243044;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-accent: #06b6d4;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.25);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
img[loading="lazy"] { content-visibility: auto; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

/* Layout */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}
.site-logo a { color: inherit; text-decoration: none; display: inline-block; }
.site-logo a:hover { text-decoration: none; color: var(--color-accent); opacity: 0.9; }
.site-logo img { display: block; max-height: 64px; width: auto; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-menu a:hover { color: var(--color-text); background: var(--color-surface-hover); text-decoration: none; }

/* Mobile: menu above logo, single column */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
  }
  .site-logo { text-align: center; }
  .site-logo img { max-height: 56px; margin: 0 auto; }
  nav { order: -1; }
  .nav-menu {
    justify-content: center;
    gap: 0.25rem 0.75rem;
  }
  .nav-menu a { padding: 0.6rem 0.5rem; font-size: 0.9rem; }
}

/* Video chat widget container - consistent placement */
.video-chat-widget-wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem 1.5rem;
}

/* Mobile layout & touch */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .video-chat-widget-wrap { padding: 0 1rem 1.5rem; }
  .main-content { padding: 0 1rem 1.5rem 1.5rem; }
  .card { padding: 1rem; }
  #coomeet_container {
    min-height: 360px;
    height: 50vh !important;
    max-height: 500px;
  }
  .footer-inner { padding: 0 1rem; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0.5rem 0.75rem; }
  .site-logo img { max-height: 48px; }
  .nav-menu { gap: 0.2rem 0.5rem; }
  .nav-menu a { font-size: 0.85rem; padding: 0.5rem 0.4rem; }
  .review-grid { grid-template-columns: 1fr; }
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; margin-top: 1.5em; margin-bottom: 0.5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* Cards & sections */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.cta-line { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

/* Comparison matrix table */
.comparison-matrix { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.comparison-matrix th, .comparison-matrix td { border: 1px solid var(--color-border); padding: 0.6rem 0.75rem; text-align: left; }
.comparison-matrix th { background: var(--color-surface-hover); font-weight: 600; }
.comparison-matrix tr:nth-child(even) { background: rgba(255,255,255,.03); }
.comparison-matrix .platform-name { font-weight: 600; }
@media (max-width: 640px) {
  .comparison-matrix { display: block; }
  .comparison-matrix thead { display: none; }
  .comparison-matrix tr { display: block; margin-bottom: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
  .comparison-matrix td { display: block; border: none; border-bottom: 1px solid var(--color-border); padding: 0.4rem 0.75rem; }
  .comparison-matrix td:last-child { border-bottom: none; }
  .comparison-matrix td::before { content: attr(data-label); font-weight: 600; display: inline-block; min-width: 8rem; color: var(--color-text-muted); }
}
.image-caption { font-size: 0.875rem; color: var(--color-text-muted); margin-top: 0.25rem; }

/* Lists */
ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.faq-list { list-style: none; padding-left: 0; }
.faq-list li { margin-bottom: 1rem; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; }
.faq-list li:last-child { border-bottom: none; }
.faq-list strong { display: block; margin-bottom: 0.25rem; }

/* Rating */
.rating-stars { color: #fbbf24; letter-spacing: 0.1em; }
.rating-value { font-weight: 600; color: var(--color-text); }

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding: 2rem 1.5rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-text); text-decoration: underline; }
.disclaimer { font-size: 0.875rem; color: var(--color-text-muted); max-width: 65ch; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb span { margin: 0 0.35rem; }

/* Review grid */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.review-card { background: var(--color-surface); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--color-border); }
.review-card a { font-weight: 600; }
.review-card p { font-size: 0.9rem; margin: 0.5rem 0 0; color: var(--color-text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--color-primary-hover); color: #fff; text-decoration: none; }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-muted { color: var(--color-text-muted); }
.last-updated { font-size: 0.875rem; color: var(--color-text-muted); }
