/* ==========================================================================
   chetne24.pl — wspólne style statycznej strony HTML+CSS
   Projekt niezależny od erotyczka.pl; hosting statyczny (FTP/cPanel).
   ========================================================================== */

/* --- Reset i zmienne --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta: ciepły, dorosły ton bez agresywnej erotyki */
  --color-bg: #0f0e12;
  --color-bg-elevated: #1a1820;
  --color-bg-card: #221f2a;
  --color-text: #e8e4ef;
  --color-text-muted: #a89fb8;
  --color-accent: #e84393;
  --color-accent-hover: #ff6bb3;
  --color-accent-soft: rgba(232, 67, 147, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-success: #4ade80;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max-width: 720px;
  --max-width-wide: 960px;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1.05rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tło z delikatnym gradientem */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 67, 147, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(120, 80, 200, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* --- Nagłówek i nawigacja --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--color-accent);
}

/* Nawigacja desktop */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-text);
}

/* Przycisk hamburger — tylko mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* --- Główna treść --- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Hero na stronie głównej */
.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Przycisk CTA — główny cel konwersji na erotyczka.pl */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-accent), #c026d3);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(232, 67, 147, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-cta:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 67, 147, 0.45);
}

.btn-cta-secondary {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text) !important;
  box-shadow: none;
}

.btn-cta-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
  box-shadow: none;
}

.cta-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Sekcje treści */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.content-section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.content-section p strong {
  color: var(--color-text);
}

.content-section ul,
.content-section ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--color-text-muted);
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* Karty benefitów na stronie głównej */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.benefit-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.benefit-card p {
  font-size: 0.95rem;
  margin: 0;
}

.benefit-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Blok CTA w środku strony */
.cta-block {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.cta-block h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.cta-block p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

/* Lista artykułów poradnika */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  margin-bottom: 1rem;
}

.article-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: inherit;
}

.article-card:hover {
  border-color: rgba(232, 67, 147, 0.4);
  transform: translateX(4px);
  color: inherit;
}

.article-card h2 {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.article-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Ranking — karty platform */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ranking-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.ranking-item.featured {
  border-color: rgba(232, 67, 147, 0.5);
  box-shadow: 0 0 0 1px rgba(232, 67, 147, 0.2);
}

.ranking-badge {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.ranking-item h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.ranking-score {
  color: var(--color-success);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.ranking-item ul {
  margin: 0.75rem 0 1rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* FAQ — akordeon przez details/summary (bez JS) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin: 0 1.25rem 1.15rem;
}

/* Nagłówek podstrony artykułu */
.page-header {
  margin-bottom: 2rem;
  max-width: var(--max-width);
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.page-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

/* Stopka */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Ostrzeżenie 18+ */
.age-notice {
  background: rgba(232, 67, 147, 0.1);
  border: 1px solid rgba(232, 67, 147, 0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* Sekcja ze słowami kluczowymi / tematami */
.keywords-section {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2.5rem auto;
  max-width: var(--max-width);
}

.keywords-section h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.keyword-tags li {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Linki SEO w stopce */
.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.footer-seo-links a {
  color: var(--color-text-muted);
}

/* --- Responsywność --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0.5rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  main {
    padding-top: 1.5rem;
  }
}
