/* === Global === */
* { box-sizing: border-box; }

@font-face {
  font-family: 'Ponomar';
  src: url('fonts/Ponomar-Regular.otf') format('opentype');
}

/* === Body === */
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 6rem; /* footer only */
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #cfd8dc;
  text-align: center;
  background-color: #1a1a1a;
  overflow-x: hidden;
}

/* === Backgrounds === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('images/wallpaper.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.85) 100%),
    url('images/background.jpg') center/contain no-repeat;
  opacity: 0.7;
  z-index: -1;
}

/* === Title === */
#title {
  font-family: 'Ponomar', serif;
  font-size: 8rem;
  margin: 0;
  padding: 2rem 1rem;
  text-shadow: 0 0 3px #cfd8dc, 0 0 7px rgba(255,255,255,.3);
}

/* === Nav === */
nav { margin: 1rem 0 3rem; }

nav a {
  color: #cfd8dc;
  margin: 0 3rem;
  font-size: 3.5rem;
  font-weight: bold;
  text-decoration: none;
}

nav a:hover { color: #f5f3ea; }

/* === Hero === */
.hero-line {
  font-family: 'Ponomar', serif;
  font-size: 8rem;
  margin: 7rem auto 0;
  text-shadow: 0 0 3px #cfd8dc, 0 0 7px rgba(255,255,255,.3);
}

/* === Content Placeholder === */
.placeholder {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: rgba(42,42,42,.7);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  text-align: left;
  display: none;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.45;
}

.placeholder p {
  margin: 0;
  text-indent: 2em;
}

/* === Buttons === */
.button {
  font-family: 'Ponomar', serif;
  font-size: 2rem;
  padding: 1rem 2rem;
  margin: .5rem;
  border-radius: 8px;
  border: none;
  background: #3b3b3b;
  color: #cfd8dc;
  cursor: pointer;
}

.button:hover {
  background: #5a5a5a;
  transform: translateY(-2px);
}

/* === Fixed Button Bar === */
.ledger-buttons {
  position: fixed;
  bottom: 5.5rem;
  width: 100%;
  z-index: 10;
}

/* === Footer === */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(26,26,26,.85);
  font-size: .9rem;
  padding: .5rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* === Shimmer / subtle glow === */
#title,
.hero-line {
  transition: text-shadow 0.4s ease-in-out;
}

#title:hover,
.hero-line:hover {
  text-shadow:
    0 0 4px #cfd8dc,
    0 0 12px rgba(255,255,255,0.35),
    0 3px 6px rgba(0,0,0,0.6);
}

/* === Social Links === */
.social-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.social-text {
  font-family: 'Ponomar', serif;
  font-size: 2.2rem;
  text-decoration: none;
  color: #cfd8dc;
  position: relative;
  transition: all 0.4s ease;
  letter-spacing: 1px;
}

/* subtle underline glow effect */
.social-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: rgba(255,255,255,0.6);
  transition: width 0.4s ease;
}

.social-text:hover {
  color: #f5f3ea;
  text-shadow:
    0 0 4px rgba(255,255,255,0.3),
    0 0 12px rgba(255,255,255,0.2);
}

.social-text:hover::after {
  width: 100%;
}

/* === SHOP GRID === */

.shop-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;   /* important */
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.shop-card {
  background: rgba(42,42,42,.75);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shop-card img {
  height: 420px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

/* Bundle card */
.shop-card.bundle {
  width: 600px;
}

.shop-card.bundle img {
  width: 100%;
  height: auto;          /* 🔥 let it size naturally */
  object-fit: contain;   /* not really needed now */
}

/* ---------------- BONUS SECTION ---------------- */

.bonus-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.bonus-section h2 {
  font-family: 'Ponomar', serif;
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: #cfd8dc;
}

.bonus-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.bonus-card {
  background: rgba(42,42,42,.6);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 2rem;
  width: 280px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

.bonus-card h3 {
  font-family: 'Ponomar', serif;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.bonus-card p {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.button {
  text-decoration: none;
}

/* Tooltip overlay covering the whole card properly */
.shop-card {
  position: relative;
}

.shop-card .tooltip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.6rem;
  line-height: 1.6;
  pointer-events: none;
  box-sizing: border-box; /* include padding */
}

.shop-card:hover .tooltip {
  opacity: 1;
}

/* === INDEX PAGE LAYOUT MATCHING SHOP PAGE === */
#hero {
  max-width: 1200px;
  margin: 5rem auto 2rem;
  font-size: 3.5rem;
  text-align: center;
}

.ledger-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative; /* not fixed like before */
  bottom: auto;
  margin: 2rem auto;
  width: auto;
}

.button {
  flex: 0 0 auto;
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.8rem;
}

.placeholder {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: rgba(42,42,42,.7);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  text-align: left;
  display: none;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.45;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  #title {
    font-size: clamp(4rem, 6vw, 8rem);
  }

  #hero {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 3rem auto 1.5rem;
    padding: 0 1rem;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto;
  }

  nav a {
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    margin: 0;
  }

  .ledger-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .button {
    width: 90%;
    margin: 0 auto;
    font-size: clamp(1.6rem, 2vw, 1.8rem);
  }

  .placeholder {
    max-width: 90%;
    padding: 1rem 1.5rem;
  }
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(26,26,26,.85);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}