/* ================================
   Meldine Guest House — STYLE.CSS
   Fire Background Edition
   ================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Root Variables */
:root {
  --rustic-bronze: #8C5E24;
  --deep-forest: #2C3E2D;
  --slate-gray: #5A6A6F;
  --linen-white: #F3ECE1;
  --charcoal: #1A1A1A;
  --dusty-rose: #B38A7A;

  --glass-bg: rgba(243, 236, 225, 0.2);
  --glass-border: rgba(140, 94, 36, 0.3);
  --shadow-soft: 0 4px 20px rgba(44, 62, 45, 0.1);
  --btn-hover: #6E4A1D;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: 'Open Sans', sans-serif;
  color: var(--charcoal);
  scroll-behavior: smooth;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  background-color: var(--linen-white);
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* 🎥 Fire Background Video */
.fire-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.fire-background video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.6);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* 🔲 Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(243, 236, 225, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--deep-forest);
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { color: var(--slate-gray); margin-bottom: 1rem; }

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn-primary {
  background: var(--rustic-bronze);
  color: var(--linen-white);
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}

/* Glass Panel */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--deep-forest);
  color: var(--linen-white);
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
}

/* 🃏 Floating Character Cards */
.character-card {
  position: fixed;
  bottom: 20px;
  width: 150px;
  z-index: 9999;
}
.character-melvin { right: 20px; }
.character-nadine { left: 20px; }

.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}
.card-glass:hover {
  transform: scale(1.05);
}
.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 0.5rem;
}
.card-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--rustic-bronze);
  object-fit: cover;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
.card-details {
  background: rgba(44, 62, 45, 0.85);
  padding: 0.8rem;
  color: var(--linen-white);
  text-align: center;
}
.card-details h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--champagne-gold);
  margin: 0 0 0.4rem;
}
.card-details ul {
  list-style: none;
  padding: 0;
  font-size: 0.75rem;
}
.card-details li {
  line-height: 1.4;
}

/* Gallery Display Support */
.gallery-grid,
.todo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.gallery-item,
.todo-gallery-grid .gallery-item {
  background: rgba(255,255,255,0.07);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.gallery-item img,
.todo-gallery-grid img,
.todo-gallery-grid video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.todo-gallery-grid audio {
  width: 100%;
}
