/* ===============================
   Funkenwelt Home Page Body & Layout Styles (Advanced – v15)
   Hero + author photos centered, full visibility, no crop/stretch.
   Author photo original shape, 20% bigger.
   Upgraded card and shadow system for both.
   Includes fixed header offset for all pages
   =============================== */

:root {
  --gold: #E6C27A;
  --rose: #C18A6E;
  --cream: #FFF8EC;
  --bg-dark: #140E0C;
  --header-height: 74px;
  --header-offset: 0px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  color: var(--cream);
  background: radial-gradient(circle at center, rgba(248,213,126,0.12), rgba(20,10,8,0.92) 90%);
}

/* Body flex column */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main grows to fill */
.home-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--header-height) + var(--header-offset));
}

/* ===============================
   Aurora background
   =============================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(80% 60% at 20% 30%, rgba(230,194,122,0.18), transparent),
    radial-gradient(80% 60% at 80% 70%, rgba(193,138,110,0.18), transparent);
  animation: auroraMove 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes auroraMove {
  0% { background-position: 0% 50%, 100% 50%; }
  50% { background-position: 100% 50%, 0% 50%; }
  100% { background-position: 0% 50%, 100% 50%; }
}

/* ===============================
   Card / Hero
   =============================== */
.card {
  position: relative;
  z-index: 1;
  background: radial-gradient(circle at top center, rgba(230,194,122,0.06), rgba(193,138,110,0.1), rgba(20,10,8,0.85));
  border: 1px solid rgba(230,194,122,0.25);
  box-shadow:
    0 12px 50px rgba(20,10,8,0.9),
    0 0 70px rgba(193,138,110,0.15),
    inset 0 0 60px rgba(230,194,122,0.05);
  border-radius: 1.5rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  margin: 4rem auto;
  text-align: center;
  backdrop-filter: blur(10px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92%, 1100px);
}

/* Decorative shimmer edge */
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, rgba(230,194,122,0.18), rgba(193,138,110,0.35), rgba(230,194,122,0.18));
  background-size: 300% 300%;
  border-radius: 1.5rem;
  z-index: -1;
  animation: shimmerEdge 10s ease-in-out infinite alternate;
}
@keyframes shimmerEdge {
  0% {background-position:0% 50%}
  50% {background-position:100% 50%}
  100% {background-position:0% 50%}
}

/* ---------------------------
   HERO PHOTO
   --------------------------- */
.hero-photo {
  position: relative;
  width: clamp(260px, 40%, 520px);
  max-width: 90%;
  margin: 1.2rem auto 0;
  border-radius: 1.2rem;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(230,194,122,0.15);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.45),
    0 0 30px rgba(230,194,122,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-photo:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.55),
    0 0 40px rgba(230,194,122,0.2);
}
.hero-photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  object-position: center top;
}

/* ---------------------------
   Lead Text
   --------------------------- */
.lead {
  max-width: 100%;
  margin: 1.5rem auto 2rem;
  line-height: 1.65;
  color: rgba(255,240,225,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.lead > p {
  max-width: 60ch;
  margin: 0.25rem auto;
  text-align: center;
}
.highlight { color: var(--rose); }

/* ---------------------------
   AUTHOR PHOTO
   --------------------------- */
.author-photo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.4rem 0 0;
  position: relative;
}
.author-photo {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(230,194,122,0.15);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.45),
    0 0 30px rgba(230,194,122,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
  width: clamp(168px, 26.4%, 384px);
  max-width: 96%;
}
.author-photo:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.55),
    0 0 40px rgba(230,194,122,0.25);
}
.author-photo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

/* ---------------------------
   Text
   --------------------------- */
.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  background: linear-gradient(90deg, var(--gold), var(--rose), #FFDFAF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.lead p { color: rgba(255,240,225,0.9); }

/* Countdown, button, footer */
.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0;
}
.timer-box {
  background: rgba(255,248,236,0.10);
  border: 1px solid rgba(248,213,126,0.28);
  border-radius: .9rem;
  padding: .8rem 1rem;
  min-width: 70px;
  text-align: center;
}
.timer-box span:first-child {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.timer-label { font-size: .7rem; color: var(--rose); }

.glow-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  color: #fffaf3;
  border-radius: .9rem;
  padding: 1rem 1.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: all .3s ease;
  box-shadow: 0 0 12px rgba(248,213,126,0.25);
}
.glow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(230,194,122,0.45);
}

.site-footer {
  margin-top: auto;
  width: 100%;
  padding: 1rem;
  text-align: center;
  background: rgba(20,10,8,0.35);
  color: #FFF8EC;
  font-family: 'Inter', sans-serif;
}

/* ---------------------------
   Responsive tweaks
   --------------------------- */
@media (max-width: 900px) {
  .hero-photo { width: clamp(220px, 56%, 440px); max-width: 92%; margin-top: 1rem; }
  .hero-photo-img { max-height: 60vh; }
  .author-photo { width: clamp(144px, 33.6%, 312px); }
  .title { font-size: clamp(2.2rem, 8vw, 3.2rem); }
}

/* Safety net for all images */
.hero-photo-img,
.author-photo-img { max-width: 100% !important; height: auto !important; object-fit: contain !important; }

/* ===============================
   Fixed Header Offset (forces all content below header)
   =============================== */
header.site-header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}

body.has-fixed-header main,
body.has-fixed-header .site-main,
body.has-fixed-header .content,
body.has-fixed-header #content,
body.has-fixed-header .page-wrapper,
body.has-fixed-header #primary,
body.has-fixed-header #main,
body.has-fixed-header .wrap,
.woocommerce-page body.has-fixed-header main,
.woocommerce-page body.has-fixed-header .site-main,
.single-product body.has-fixed-header #primary {
  padding-top: calc(var(--header-height) + 16px) !important;
}
