/* ===============================
   main.css — dark & sleek dating portal
   =============================== */

/* ---- Design tokens ---- */
:root {
  --bg:          #0e0b14;
  --surface:     #1c1728;
  --surface2:    #251f35;
  --border:      #352d4a;
  --accent:      #d946a8;
  --accent-dim:  #a83280;
  --accent-glow: rgba(217, 70, 168, 0.10);
  --text:        #f2eeff;
  --text-muted:  #b0a0cc;
  --text-faint:  #5a5070;
  --link:        #f2eeff;
  --radius:      10px;
  --radius-lg:   14px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; opacity: .85; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---- Header ---- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 54px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .3px;
}
.flag img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}
.brand-text {
  font-size: .95rem;
  color: var(--text);
  letter-spacing: .4px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ---- Highlight bar ---- */
.highlight-bar {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  color: #fff;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.highlight-bar .container { padding: 0 24px; }

/* ---- Page title ---- */
.page-title {
  margin: 28px 0 6px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.2px;
}
.page-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 8px auto 0;
}

/* ---- Intro strip ---- */
.intro-seo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 12px 18px;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 24px;
}

/* ---- Card grid ---- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 4px;
}
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
}
.thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 300 / 250;
  background: var(--surface2);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .thumb img { transform: scale(1.05); }

.card-body { padding: 13px 14px 15px; }
.card-title {
  margin: 0 0 5px;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.3;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; opacity: 1; }
.card-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.55;
}

/* ---- Duo info blocks ---- */
.content-duo { margin-top: 28px; }
.duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .duo-grid { grid-template-columns: 1fr 1fr; }
}
.duo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.duo-card h2 {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.duo-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: .88rem;
}

/* ---- Comparison table ---- */
.comparison-wrap { margin-top: 28px; }
.comparison-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .85rem;
  min-width: 420px;
}
.comparison-table thead { background: var(--surface2); }
.comparison-table th {
  padding: 11px 16px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--surface2); }
.comparison-table td a {
  color: var(--text);
  font-weight: 500;
}
.comparison-table td a:hover { color: var(--accent); text-decoration: none; opacity: 1; }

/* ---- Link blocks ---- */
.link-blocks { margin-top: 28px; }
.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .link-grid { grid-template-columns: repeat(4, 1fr); }
}
.link-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.link-col h2 {
  margin: 0 0 10px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li {
  margin: 6px 0;
  padding-left: 13px;
  position: relative;
}
.link-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.link-list a { color: var(--text-muted); font-size: .86rem; }
.link-list a:hover { color: var(--text); text-decoration: none; opacity: 1; }

/* ---- FAQ ---- */
.faq { margin-top: 28px; margin-bottom: 8px; }
.faq-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 7px 0;
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  padding: 13px 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item > summary::after {
  content: '+';
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] > summary::after { content: '–'; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}
.footer-left p {
  margin: 0;
  font-size: .78rem;
  color: var(--text-faint);
}
.footer-right a {
  color: var(--text-faint);
  font-size: .78rem;
  font-weight: 500;
}
.footer-right a:hover { color: var(--text-muted); opacity: 1; }

/* ---- JS progressive enhancement ---- */
.js .card { will-change: transform; }

/* ---- Accessibility ---- */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  padding: 0 !important; border: 0 !important;
  height: 1px !important; width: 1px !important;
  overflow: hidden; white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}