/*
Theme Name: Weinwaves
Theme URI: https://weinwaves.de
Author: Weinwaves
Author URI: https://weinwaves.de
Description: Ein Block-Theme für Weinwaves — Pop-up-Reihe für Daydrinking. Mit kuratierten Stories, Next-Dates-Übersicht und Newsletter-Anbindung.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weinwaves
Tags: full-site-editing, block-patterns, custom-colors, custom-typography, editor-style, one-column, threaded-comments, translation-ready
*/

/* ==========================================================================
   WEINWAVES — Custom Styles
   ========================================================================== */

:root {
  --ww-orange: #FFA300;
  --ww-orange-deep: #e88f00;
  --ww-cream: #f5ede0;
  --ww-cream-deep: #ebe1cf;
  --ww-ink: #0d0b08;
  --ww-ink-soft: #2a251e;
  --ww-muted: #8a7e6a;
  --ww-burgundy: #4a1410;
  --ww-line: rgba(13, 11, 8, 0.14);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay utility — Pattern verwendet das */
.ww-grain {
  position: relative;
}
.ww-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.06 0 0 0 0 0.02 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}
.ww-grain > * { position: relative; z-index: 2; }

/* ==========================================================================
   HERO
   ========================================================================== */
.ww-hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 3rem 6rem;
  background: var(--ww-orange);
}

.ww-hero-deco {
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 580px;
  height: 580px;
  background: var(--ww-ink);
  z-index: 1;
  transform: rotate(-6deg);
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0.92;
}
.ww-hero-deco svg {
  width: 72%;
  height: 72%;
  fill: var(--ww-orange);
}

.ww-eyebrow {
  font-family: 'Archivo', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ww-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: currentColor;
}

.ww-headline em,
.ww-headline i {
  color: var(--ww-burgundy);
}

/* CTA Cards in Hero */
.ww-cta-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(13, 11, 8, 0.2);
  padding: 26px 28px 22px !important;
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
}
.ww-cta-card:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--ww-ink);
  transform: translateY(-2px);
}

.ww-cta-label {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ww-cta-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ww-burgundy);
  animation: ww-pulse 2.4s ease-in-out infinite;
}
@keyframes ww-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.ww-cta-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  color: var(--ww-ink) !important;
  padding: 10px 0 !important;
  border-bottom: 2px solid var(--ww-ink) !important;
  transition: padding 0.3s;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
}
.ww-cta-link:hover { padding-left: 4px !important; }
.ww-cta-link .arrow { transition: transform 0.3s, color 0.3s; }
.ww-cta-link:hover .arrow { transform: translateX(6px); color: var(--ww-burgundy); }

/* ==========================================================================
   NEXT DATES
   ========================================================================== */
.ww-dates-list {
  display: flex;
  flex-direction: column;
}

.ww-date-row {
  display: grid !important;
  grid-template-columns: 120px 1fr auto 60px;
  align-items: center;
  gap: 32px;
  padding: 32px 0 !important;
  border-top: 1px solid var(--ww-line);
  cursor: pointer;
  transition: padding 0.4s ease;
  position: relative;
  text-decoration: none !important;
  color: inherit !important;
}
.ww-date-row:last-child { border-bottom: 1px solid var(--ww-line); }
.ww-date-row:hover { padding-left: 16px !important; }
.ww-date-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: linear-gradient(to right, var(--ww-orange), transparent);
  opacity: 0.18;
  transition: width 0.5s ease;
  pointer-events: none;
}
.ww-date-row:hover::before { width: 100%; }

.ww-date-when {
  font-family: 'Fraunces', serif;
  font-weight: 300;
}
.ww-date-when .day {
  display: block;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.025em;
}
.ww-date-when .month {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ww-muted);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
}

.ww-date-info h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
  color: var(--ww-ink);
}
.ww-date-info h3 em,
.ww-date-info h3 i { font-style: italic; color: var(--ww-orange-deep); }

.ww-date-info .location {
  font-size: 13px;
  color: var(--ww-ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ww-date-info .location::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--ww-muted);
}

.ww-date-status {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ww-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.ww-date-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6a8e5a;
}
.ww-date-status.few::before { background: var(--ww-orange); }
.ww-date-status.sold::before { background: var(--ww-muted); }

.ww-date-arrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--ww-ink);
  text-align: right;
  transition: transform 0.4s, color 0.3s;
}
.ww-date-row:hover .ww-date-arrow {
  transform: translateX(8px);
  color: var(--ww-orange-deep);
}

/* ==========================================================================
   CASCADE / STORIES
   ========================================================================== */
.ww-cascade {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  row-gap: 100px;
}

.ww-cascade .ww-card {
  position: relative;
  cursor: pointer;
}
.ww-cascade .ww-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
  filter: saturate(0.92) contrast(1.02);
}
.ww-cascade .ww-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}
.ww-cascade .ww-card-img {
  overflow: hidden;
  background: var(--ww-cream-deep);
}

.ww-cascade .ww-c1 { grid-column: 1 / span 5; }
.ww-cascade .ww-c2 { grid-column: 8 / span 5; margin-top: 140px; }
.ww-cascade .ww-c3 { grid-column: 2 / span 4; margin-top: -40px; }
.ww-cascade .ww-c4 { grid-column: 7 / span 6; margin-top: 80px; }
.ww-cascade .ww-c5 { grid-column: 1 / span 6; margin-top: 40px; }
.ww-cascade .ww-c6 { grid-column: 8 / span 4; margin-top: 180px; }

.ww-cascade .ww-c1 .ww-card-img { aspect-ratio: 4/5; }
.ww-cascade .ww-c2 .ww-card-img { aspect-ratio: 3/4; }
.ww-cascade .ww-c3 .ww-card-img { aspect-ratio: 4/5; }
.ww-cascade .ww-c4 .ww-card-img { aspect-ratio: 5/3; }
.ww-cascade .ww-c5 .ww-card-img { aspect-ratio: 4/3; }
.ww-cascade .ww-c6 .ww-card-img { aspect-ratio: 3/4; }

/* ==========================================================================
   MANIFEST
   ========================================================================== */
.ww-manifest {
  position: relative;
  overflow: hidden;
}
.ww-manifest-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1400px;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}
.ww-manifest-bg svg { width: 100%; height: auto; fill: var(--ww-orange); }
.ww-manifest > .wp-block-group { position: relative; z-index: 2; }

/* ==========================================================================
   ANIMATIONS — Entrance
   ========================================================================== */
.ww-rise {
  opacity: 0;
  transform: translateY(30px);
  animation: ww-rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ww-rise-1 { animation-delay: 0.1s; }
.ww-rise-2 { animation-delay: 0.2s; }
.ww-rise-3 { animation-delay: 0.3s; }
.ww-rise-4 { animation-delay: 0.4s; }

@keyframes ww-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .ww-hero { padding: 5rem 1.5rem 4rem; }
  .ww-hero-deco { width: 360px; height: 360px; right: -120px; bottom: -120px; }

  .ww-date-row {
    grid-template-columns: 80px 1fr;
    gap: 20px;
  }
  .ww-date-when .day { font-size: 34px; }
  .ww-date-status, .ww-date-arrow { display: none !important; }

  .ww-cascade { grid-template-columns: 1fr; row-gap: 60px; }
  .ww-cascade > * {
    grid-column: 1 !important;
    margin-top: 0 !important;
  }
}
