/* ==========================================================================
   Mebreezikivor.living — Shared Editorial Stylesheet
   Ultra-Premium Editorial / Modern European Lifestyle
   ========================================================================== */

:root {
  --espresso: #1C1917;
  --roast: #292524;
  --copper: #C87941;
  --latte: #E8C9A8;
  --ivory: #F5F1EA;
  --cream: #FFFDF9;
  --charcoal: #18181B;
  --muted: #78716C;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--latte); color: var(--espresso); }

/* ---------- Hero background imagery (descriptive names) ---------- */
.hero-berlin-cafe-interior-bg {
  background-image: url("images/photo-1501339847302-ac426a4a7cbb.png");
  background-size: cover;
  background-position: center;
}
.listings-coffee-bar-banner-bg {
  background-image: url("images/photo-1554118811-1e0d58224f24.png");
  background-size: cover;
  background-position: center;
}
.guide-kaffee-und-kuchen-table-bg {
  background-image: url("images/photo-1445116572660-236099ec97a0.png");
  background-size: cover;
  background-position: center;
}
.about-editorial-coffee-pour-bg {
  background-image: url("images/photo-1447933601403-0c6688de566e.png");
  background-size: cover;
  background-position: center;
}

/* ---------- Grain texture ---------- */
.grain-texture-overlay::after {
  content: "";
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Cursor spotlight ---------- */
.hero-spotlight {
  --sx: 50%;
  --sy: 40%;
}
.hero-spotlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--sx) var(--sy), rgba(232, 201, 168, .22), transparent 60%);
  transition: background .08s linear;
  mix-blend-mode: soft-light;
}

/* ---------- Glassmorphism ---------- */
.glass-panel {
  background: rgba(255, 253, 249, .12);
  border: 1px solid rgba(255, 253, 249, .22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.glass-panel-light {
  background: rgba(255, 253, 249, .78);
  border: 1px solid rgba(28, 25, 23, .08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.badge-glass {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .04em;
  color: #FFFDF9;
  background: rgba(28, 25, 23, .45);
  border: 1px solid rgba(255, 253, 249, .2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Floating chips ---------- */
.floating-chip { animation: chipFloat 6s ease-in-out infinite; }
.floating-chip:nth-child(2n) { animation-delay: -2s; }
.floating-chip:nth-child(3n) { animation-delay: -4s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---------- 3D Ceramic Cup ---------- */
.ceramic-cup-float { animation: cupFloat 7s ease-in-out infinite; }
@keyframes cupFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}
.ceramic-cup-stage {
  perspective: 900px;
  width: 280px;
  height: 300px;
  position: relative;
}
.ceramic-cup-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.ceramic-saucer {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 260px;
  height: 64px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, #FFFDF9 0%, #ECE4D8 45%, #C9BCAB 100%);
  box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .55), inset 0 -6px 12px rgba(0, 0, 0, .12);
}
.ceramic-saucer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .18), transparent 70%);
}
.ceramic-cup-body {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 170px;
  height: 140px;
  transform: translateX(-50%);
  border-radius: 6px 6px 85px 85px / 6px 6px 100px 100px;
  background: linear-gradient(90deg, #B9AD9E 0%, #F2ECE3 22%, #FFFDF9 38%, #EDE5DA 62%, #B3A695 100%);
  box-shadow: inset -14px -10px 24px rgba(0, 0, 0, .12), 0 18px 30px -12px rgba(0, 0, 0, .45);
}
.ceramic-cup-body::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 16px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
  filter: blur(2px);
}
.ceramic-cup-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  height: 6px;
  background: linear-gradient(90deg, #8B5A33, #C87941 40%, #E8C9A8 55%, #8B5A33);
  opacity: .85;
}
.ceramic-cup-rim {
  position: absolute;
  left: 50%;
  bottom: 176px;
  width: 172px;
  height: 36px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #FFFDF9 60%, #DCD2C4 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .1);
}
.ceramic-cup-coffee {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 26px;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 45% 45%, #A0663A 0%, #5A3720 45%, #2A180D 100%);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .5);
}
.ceramic-cup-coffee::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232, 201, 168, .9), rgba(232, 201, 168, 0) 70%);
}
.ceramic-cup-handle {
  position: absolute;
  left: calc(50% + 66px);
  bottom: 92px;
  width: 64px;
  height: 70px;
  border: 14px solid #E3D9CC;
  border-left-color: transparent;
  border-radius: 50%;
  box-shadow: 6px 6px 14px -6px rgba(0, 0, 0, .35);
}
.cup-steam {
  position: absolute;
  bottom: 205px;
  width: 14px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0), rgba(255, 253, 249, .45));
  filter: blur(7px);
  animation: steamRise 4.5s ease-in-out infinite;
  opacity: 0;
}
.cup-steam.s1 { left: calc(50% - 30px); animation-delay: 0s; }
.cup-steam.s2 { left: calc(50% - 4px); animation-delay: 1.4s; }
.cup-steam.s3 { left: calc(50% + 22px); animation-delay: 2.6s; }
@keyframes steamRise {
  0% { transform: translateY(20px) scaleX(1); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(-60px) scaleX(2.2); opacity: 0; }
}
.coffee-bean-sculpture {
  position: absolute;
  width: 34px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 30%, #8B5A33, #4A2B17 60%, #26150B);
  box-shadow: 0 14px 22px -8px rgba(0, 0, 0, .6);
  animation: beanFloat 8s ease-in-out infinite;
}
.coffee-bean-sculpture::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: 4px;
  height: 76%;
  transform: translateX(-50%) rotate(8deg);
  border-radius: 10px;
  background: #1E110A;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .12);
}
.coffee-bean-sculpture.b1 { top: 18px; left: 6px; transform: rotate(-30deg); }
.coffee-bean-sculpture.b2 { top: 70px; right: -8px; width: 26px; height: 36px; animation-delay: -3s; }
.coffee-bean-sculpture.b3 { bottom: 4px; left: 30px; width: 22px; height: 30px; animation-delay: -5s; }
@keyframes beanFloat {
  0%, 100% { translate: 0 0; rotate: -20deg; }
  50% { translate: 0 -14px; rotate: 15deg; }
}

/* ---------- Cards & buttons ---------- */
.cafe-card {
  background: var(--cream);
  border: 1px solid rgba(28, 25, 23, .07);
  border-radius: 26px;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease, border-color .5s ease;
}
.cafe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(28, 25, 23, .35);
  border-color: rgba(200, 121, 65, .35);
}

/* Search section cards: static, no hover effects */
#featuredGrid .cafe-card,
#listingGrid .cafe-card { transition: none; }
#featuredGrid .cafe-card:hover,
#listingGrid .cafe-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(28, 25, 23, .07);
}
#featuredGrid .cafe-card img,
#listingGrid .cafe-card img,
#featuredGrid .cafe-card:hover img,
#listingGrid .cafe-card:hover img {
  transform: none !important;
  transition: none !important;
}

.btn-espresso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream);
  font-size: .85rem;
  font-weight: 500;
  transition: background .3s ease, transform .3s ease;
}
.btn-espresso:hover { background: var(--roast); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, .18);
  color: var(--espresso);
  font-size: .85rem;
  font-weight: 500;
  transition: border-color .3s ease, color .3s ease, transform .3s ease;
}
.btn-outline:hover { border-color: var(--copper); color: var(--copper); transform: translateY(-1px); }

.filter-chip {
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, .12);
  font-size: .82rem;
  background: var(--cream);
  transition: all .25s ease;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--copper); }
.filter-chip.is-active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

.editorial-link { position: relative; }
.editorial-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s ease;
}
.editorial-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Reveal ---------- */
.reveal { animation: revealUp .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Cookie banner ---------- */
#cookieBanner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 34rem;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease;
}
#cookieBanner.is-visible { transform: translateY(0); opacity: 1; }
@media (min-width: 768px) { #cookieBanner { left: 1.5rem; bottom: 1.5rem; } }

/* ---------- Lightbox ---------- */
#lightbox { transition: opacity .35s ease; }
#lightbox.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- Prose (legal & guide) ---------- */
.prose-editorial h2 { font-family: Fraunces, serif; font-size: 1.75rem; margin: 2.5rem 0 1rem; color: var(--espresso); }
.prose-editorial h3 { font-family: Fraunces, serif; font-size: 1.25rem; margin: 1.75rem 0 .6rem; color: var(--espresso); }
.prose-editorial p, .prose-editorial li { color: #44403C; line-height: 1.8; }
.prose-editorial ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.prose-editorial a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}