/* ero-blog.ch – Pink/Rose Theme (based on ero-page.ch design system) */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/playfair-latin.woff2') format('woff2');
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-overlay: rgba(10,10,10,0.85);

  --accent: #c94c6e;
  --accent-light: #e06b8a;
  --accent-dark: #a83a5c;
  --accent-glow: rgba(201,76,110,0.15);

  --text-primary: #f0ece2;
  --text-secondary: #b0a99f;
  --text-muted: #918b83;

  --border-color: #2a2a2a;
  --border-accent: rgba(201,76,110,0.3);

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --section-padding: 5rem 0;
  --container-width: 1200px;
  --container-padding: 0 1.5rem;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-accent: 0 4px 30px rgba(201,76,110,0.15);
}

*, ::after, ::before { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { color: var(--text-secondary); margin-bottom: 1rem; }

.container { max-width: var(--container-width); margin: 0 auto; padding: var(--container-padding); }
.container--narrow { max-width: 800px; }
.text-accent { color: var(--accent); }
.highlight { color: var(--accent); }
.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; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.8rem; font-family: var(--font-body); font-size: .9rem;
  font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  border: none; border-radius: 4px; cursor: pointer;
  transition: all var(--transition-normal); text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: rgba(201,76,110,.1); color: var(--accent-light); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10,10,10,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-normal);
}
.header.scrolled { border-bottom-color: var(--border-color); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  color: var(--text-secondary); font-size: .85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px; position: relative; padding: .3rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width var(--transition-normal);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.lang-switcher { display: flex; align-items: center; gap: .5rem; margin-left: 1.5rem; padding-left: 1.5rem; border-left: 1px solid var(--border-color); }
.lang-switcher a { font-size: .8rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); padding: .2rem .4rem; border-radius: 3px; }
.lang-switcher a.active { color: var(--accent); background: rgba(201,76,110,.1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; z-index: 1001; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: all var(--transition-normal); }
.nav-overlay { display: none; }

/* ===== BLOG HERO ===== */
.blog-hero {
  padding: 8rem 0 4rem; text-align: center;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,76,110,.12) 0, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(168,58,92,.08) 0, transparent 50%),
              var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}
.hero-badge {
  display: inline-block; padding: .4rem 1.2rem;
  background: rgba(201,76,110,.1); border: 1px solid var(--border-accent);
  border-radius: 30px; font-size: .78rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.2rem;
}
.blog-hero h1 { margin-bottom: 1.2rem; }
.hero-description { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 7rem 0 3rem; text-align: center;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border-color);
}
.page-hero h1 { margin-bottom: .5rem; }

/* ===== SECTIONS ===== */
.section { padding: var(--section-padding); }
.section-dark { padding: var(--section-padding); background: var(--bg-secondary); }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 2.5rem;
  padding-bottom: .8rem; border-bottom: 2px solid var(--border-accent);
  display: inline-block;
}

/* ===== FEATURED CARD ===== */
.featured-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; overflow: hidden; text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-accent); }
.featured-image { position: relative; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.featured-content { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-content h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; color: var(--text-primary); }
.featured-content p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ===== POST GRID ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 10px; overflow: hidden; text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-accent); border-color: var(--border-accent); }
.post-card--sponsored { border-color: var(--border-accent); }
.post-card-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--text-primary); }
.post-card-body p { font-size: .9rem; color: var(--text-secondary); flex: 1; }

/* ===== BADGES ===== */
.cat-badge {
  display: inline-block; padding: .2rem .7rem; font-size: .72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(201,76,110,.12); color: var(--accent); border-radius: 4px;
  margin-bottom: .6rem;
}
.badge-sponsored {
  position: absolute; top: .8rem; right: .8rem;
  padding: .2rem .65rem; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; background: var(--accent); color: #fff;
  border-radius: 4px; letter-spacing: .5px;
}
.sponsor-label { display: block; font-size: .78rem; color: var(--accent); margin-bottom: .4rem; font-weight: 500; }

/* ===== POST META ===== */
.post-meta { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: .8rem; font-size: .8rem; color: var(--text-muted); }
.post-meta time::before { content: '📅 '; }
.post-meta .reading-time::before,
.post-meta span:last-child::before { content: '⏱ '; }

/* ===== SINGLE POST ===== */
.breadcrumb {
  padding: .8rem 0; margin-top: 72px; background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color); font-size: .85rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-muted); margin: 0 .4rem; }
.breadcrumb .current { color: var(--text-secondary); }

.post-single { padding: 3rem 0 4rem; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { margin-bottom: 1rem; }
.post-cover { margin-bottom: 2.5rem; border-radius: 10px; overflow: hidden; }
.post-cover img { width: 100%; max-height: 500px; object-fit: cover; }

.sponsored-banner {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.2rem; margin-bottom: 1.5rem;
  background: rgba(201,76,110,.08); border: 1px solid var(--border-accent);
  border-radius: 8px; font-size: .85rem; color: var(--text-secondary);
}
.sponsored-banner span:first-child {
  padding: .15rem .5rem; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  border-radius: 3px;
}

/* Post content (rendered Markdown) */
.post-content { line-height: 1.85; }
.post-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.post-content p { margin-bottom: 1.2rem; font-size: 1.02rem; }
.post-content a { color: var(--accent); border-bottom: 1px solid var(--border-accent); }
.post-content a:hover { color: var(--accent-light); }
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .4rem; color: var(--text-secondary); }
.post-content blockquote {
  margin: 1.5rem 0; padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--accent); background: var(--bg-card);
  border-radius: 0 6px 6px 0;
}
.post-content blockquote p { margin-bottom: 0; font-style: italic; }
.post-content img { border-radius: 8px; margin: 1.5rem 0; }
.post-content code { background: var(--bg-card); padding: .15rem .4rem; border-radius: 3px; font-size: .9em; }
.post-content pre { background: var(--bg-card); padding: 1.2rem; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0; }
.post-content pre code { background: none; padding: 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.tag { padding: .25rem .7rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; font-size: .78rem; color: var(--text-muted); }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; }
.page-info { font-size: .9rem; color: var(--text-muted); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state p { font-size: 1.1rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer { background: var(--bg-secondary); padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-secondary); font-size: .9rem; margin-top: .8rem; }
.footer-heading { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-primary); margin-bottom: .8rem; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--text-secondary); font-size: .88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .82rem; color: var(--text-muted); margin: 0; }
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .82rem; color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ===== AGE GATE ===== */
.age-gate-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,.95); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(20px); opacity: 1; transition: opacity .4s ease;
}
.age-gate-overlay.hidden { opacity: 0; pointer-events: none; }
.age-gate-box {
  background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: 16px; padding: 3rem 2.5rem; max-width: 440px; width: 90%;
  text-align: center; box-shadow: var(--shadow-accent);
}
.age-gate-box h2 { margin-bottom: .8rem; }
.age-gate-box p { font-size: .95rem; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px;
    height: 100vh; background: var(--bg-secondary); padding: 5rem 2rem 2rem;
    transition: right var(--transition-normal); border-left: 1px solid var(--border-color);
    z-index: 999; overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 998; opacity: 0; pointer-events: none; transition: opacity var(--transition-normal); }
  .nav-overlay.active { opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .lang-switcher { margin-left: 0; margin-top: 1.5rem; padding-left: 0; padding-top: 1.5rem; border-left: none; border-top: 1px solid var(--border-color); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-image img { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --section-padding: 3.5rem 0; }
  .header .container { height: 60px; }
  .blog-hero { padding: 6rem 0 3rem; }
  .page-hero { padding: 5.5rem 0 2rem; }
  .breadcrumb { margin-top: 60px; }
  .post-grid { grid-template-columns: 1fr; }
  .featured-content { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.8rem; }
  .blog-hero { padding: 5rem 0 2rem; }
  .hero-description { font-size: .95rem; }
}
