/*
Theme Name: DD Craft Beer
Description: Donker ambacht bier thema voor DD Craft Beer thuisbrouwerij
Version: 1.0
*/

:root {
  --bg: #0c0b09;
  --surface: #141210;
  --surface2: #1c1915;
  --border: #2a2520;
  --amber: #c8821a;
  --amber2: #e8a030;
  --cream: #f0e8d8;
  --muted: #8a7f70;
  --text: #e8dfd0;
  --radius: 12px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; background: linear-gradient(to bottom, rgba(12,11,9,.95) 0%, transparent 100%); backdrop-filter: blur(8px); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 52px; width: auto; mix-blend-mode: screen; transition: opacity .2s; }
.nav-logo:hover .nav-logo-img { opacity: .8; }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--amber); }
.nav-links .wp-login { color: var(--amber); }

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(200,130,26,.12) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 20% 80%, rgba(200,100,10,.08) 0%, transparent 60%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8821a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; max-width: 1100px; margin: 0 auto; padding: 120px 32px 80px; }
.hero-pre { font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.hero-title { font-family: var(--serif); font-size: clamp(4rem, 12vw, 9rem); font-weight: 900; line-height: .9; color: var(--cream); letter-spacing: -2px; margin-bottom: 28px; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 420px; margin-bottom: 40px; line-height: 1.7; }
.btn-primary { display: inline-block; background: var(--amber); color: #0c0b09; font-weight: 700; font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 14px 32px; border-radius: 4px; transition: background .2s, transform .15s; }
.btn-primary:hover { background: var(--amber2); transform: translateY(-1px); }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 1.2rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── Sections ── */
.section { padding: 100px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-label { font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--cream); line-height: 1.1; margin-bottom: 48px; }

/* ── Live widget ── */
.live-section { background: var(--surface); }
.live-loading { color: var(--muted); text-align: center; padding: 40px; }
.live-widget { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.live-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 8px #3ecf8e; flex-shrink: 0; }
.live-batch-name { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); }
.live-updated { margin-left: auto; font-size: .75rem; color: var(--muted); }
.live-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.live-stat { padding: 24px; border-right: 1px solid var(--border); text-align: center; }
.live-stat:last-child { border-right: none; }
.live-stat-value { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--amber); margin-bottom: 4px; }
.live-stat-label { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* ── Grafiek ── */
.chart-section { background: var(--bg); }
.chart-wrap { position: relative; height: 320px; margin-top: 24px; }

/* ── Bieren ── */
.beers-section { background: var(--surface); }
.beers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.beer-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: border-color .2s, transform .2s; }
.beer-card:hover { border-color: var(--amber); transform: translateY(-3px); }
.beer-badge { display: inline-block; font-size: .65rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 16px; font-weight: 600; }
.badge-fermenting { background: rgba(62,207,142,.15); color: #3ecf8e; }
.badge-conditioning { background: rgba(74,158,255,.15); color: #4a9eff; }
.badge-completed { background: rgba(200,130,26,.15); color: #c8821a; }
.badge-archived { background: rgba(138,127,112,.15); color: #8a7f70; }
.badge-planning { background: rgba(138,127,112,.1); color: #8a7f70; }
.beer-name { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); margin-bottom: 12px; line-height: 1.3; }
.beer-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.beer-spec { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; font-size: .75rem; color: var(--muted); padding: 3px 8px; }

/* ── Over ── */
.about-section { background: var(--surface2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--amber); line-height: 1; }
.stat-num span { font-size: 1.2rem; }
.stat-label { font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.about-equipment { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.equip-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .2s; }
.equip-card:hover { border-color: var(--amber); }
.equip-icon { font-size: 1.6rem; margin-bottom: 10px; }
.equip-name { font-family: var(--serif); font-size: .95rem; color: var(--cream); margin-bottom: 4px; }
.equip-desc { font-size: .78rem; color: var(--muted); }

/* ── Brouwdagboek ── */
.dagboek-page { padding: 140px 0 80px; min-height: 60vh; background: var(--bg); }
.dagboek-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 8px; }
.dagboek-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.dagboek-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.dagboek-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.dagboek-no { font-size: .75rem; color: var(--muted); margin-left: 8px; }
.dagboek-date { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.dagboek-name { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); margin-bottom: 14px; line-height: 1.3; }

/* ── WordPress content pagina's ── */
.wp-page { padding: 140px 0 80px; min-height: 60vh; }
.wp-page-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--cream); margin-bottom: 32px; }
.wp-page-content { color: var(--muted); line-height: 1.8; max-width: 720px; }
.wp-page-content h1,.wp-page-content h2,.wp-page-content h3 { font-family: var(--serif); color: var(--cream); margin: 32px 0 16px; }
.wp-page-content p { margin-bottom: 16px; }
.wp-page-content a { color: var(--amber); }
.wp-page-content ul,.wp-page-content ol { padding-left: 24px; margin-bottom: 16px; }

/* ── Footer ── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0; text-align: center; }
.footer-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.footer-logo img { height: 72px; width: auto; mix-blend-mode: screen; opacity: .9; }
.footer-sub { font-size: .8rem; color: var(--muted); letter-spacing: 1px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .live-stats { grid-template-columns: 1fr 1fr; }
  .live-stat:nth-child(2) { border-right: none; }
  .nav-links { display: none; }
  .about-stats { gap: 20px; }
}
