/* ═══════════════════════════════════════════════════════════
   SUNFLOWER HOUSE - A Warm Home in Constant Bloom
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Warm earth tones from the house */
  --brown-dark: #3D2914;
  --brown-medium: #5C3D1E;
  --brown-light: #8B5A2B;
  --brown-wood: #A0522D;
  
  /* Sunflower yellows */
  --yellow-bright: #FFD93D;
  --yellow-golden: #F4C430;
  --yellow-warm: #FFAB00;
  --yellow-pale: #FFF8DC;
  --yellow-cream: #FFFEF0;
  
  /* Accent colors */
  --green-plant: #4A7C59;
  --orange-warmth: #E07B39;
  --cream-wall: #FAF3E0;
  
  /* Shadows */
  --shadow-warm: rgba(61, 41, 20, 0.3);
  --shadow-deep: rgba(0, 0, 0, 0.4);
  
  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Syne', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #2C1810 0%, #1A0F0A 50%, #0D0705 100%);
  min-height: 100vh;
  color: var(--brown-dark);
  overflow-x: hidden;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   SUNFLOWER PETALS - The Frame Around the Seeds
   ═══════════════════════════════════════════════════════════ */

.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Large fixed petals around the doorway */
.sunflower-petal {
  position: absolute;
  width: 75px;
  height: 170px;
  background: linear-gradient(
    180deg,
    hsl(calc(52 + var(--hue-shift, 0)), 100%, 58%) 0%,
    hsl(calc(50 + var(--hue-shift, 0)), 98%, 52%) 40%,
    hsl(calc(46 + var(--hue-shift, 0)), 95%, 45%) 100%
  );
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  transform-origin: center 85%;
  transform: translate(-50%, -50%) rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1));
  box-shadow: 
    inset -8px -8px 25px rgba(255, 255, 255, 0.25),
    inset 8px 8px 25px rgba(200, 150, 50, 0.4),
    4px 8px 20px rgba(61, 41, 20, 0.3),
    -2px -2px 10px rgba(255, 220, 100, 0.2);
  animation: wind-sway var(--sway-duration, 4s) ease-in-out infinite;
  animation-delay: var(--sway-delay, 0s);
  will-change: transform;
}

.sunflower-petal::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 15%;
  width: 70%;
  height: 60%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  border-radius: inherit;
}

.sunflower-petal::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 45%;
  width: 10%;
  height: 55%;
  background: linear-gradient(
    180deg,
    hsl(42, 80%, 45%) 0%,
    hsl(35, 75%, 40%) 100%
  );
  border-radius: 3px;
  opacity: 0.5;
}

@keyframes wind-sway {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1)) rotate(0deg);
  }
  15% {
    transform: translate(-50%, -50%) rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1)) rotate(3deg) translateX(2px);
  }
  30% {
    transform: translate(-50%, -50%) rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1)) rotate(-2deg) translateX(-1px);
  }
  50% {
    transform: translate(-50%, -50%) rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1)) rotate(4deg) translateX(3px);
  }
  70% {
    transform: translate(-50%, -50%) rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1)) rotate(-1deg) translateX(-2px);
  }
  85% {
    transform: translate(-50%, -50%) rotate(var(--base-rotation, 0deg)) scale(var(--base-scale, 1)) rotate(2deg) translateX(1px);
  }
}

.floating-petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

/* Small floating petals that drift across */
.floating-petal {
  position: absolute;
  width: 25px;
  height: 40px;
  background: linear-gradient(135deg, var(--yellow-bright) 0%, var(--yellow-golden) 50%, var(--yellow-warm) 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.7;
  box-shadow: 
    inset -3px -3px 10px rgba(255, 255, 255, 0.3),
    2px 3px 8px var(--shadow-warm);
  will-change: transform, opacity;
}

@keyframes float-across {
  0% {
    transform: translateX(-100px) translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(150px) rotate(540deg);
    opacity: 0;
  }
}

@keyframes fall-gentle {
  0% {
    transform: translateY(-100px) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(720deg) translateX(80px);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   DOORWAY FRAME
   ═══════════════════════════════════════════════════════════ */

.doorway-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 40px 0;
}

.doorway-arch {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 95vw);
  height: 80px;
  background: linear-gradient(180deg, var(--brown-dark) 0%, var(--brown-medium) 100%);
  border-radius: 0 0 400px 400px / 0 0 80px 80px;
  box-shadow: 
    inset 0 -10px 30px rgba(0, 0, 0, 0.3),
    0 10px 40px var(--shadow-deep);
  z-index: 50;
}

.doorway-arch::before {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brown-light), transparent);
  border-radius: 2px;
}

.arch-sunflower {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  text-decoration: none;
  filter: drop-shadow(0 2px 4px var(--shadow-warm));
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  z-index: 100;
}

.arch-sunflower:hover {
  transform: translateX(-50%) scale(1.2) rotate(15deg);
  filter: drop-shadow(0 4px 8px var(--shadow-warm));
}

.doorway-left,
.doorway-right {
  position: fixed;
  top: 40px;
  width: 30px;
  height: calc(100vh - 40px);
  background: linear-gradient(180deg, var(--brown-medium) 0%, var(--brown-dark) 100%);
  z-index: 50;
}

.doorway-left {
  left: calc(50% - min(460px, 47.5vw));
  box-shadow: 
    inset -10px 0 20px rgba(0, 0, 0, 0.3),
    5px 0 20px var(--shadow-deep);
  border-radius: 0 0 0 10px;
}

.doorway-right {
  right: calc(50% - min(460px, 47.5vw));
  box-shadow: 
    inset 10px 0 20px rgba(0, 0, 0, 0.3),
    -5px 0 20px var(--shadow-deep);
  border-radius: 0 0 10px 0;
}

.doorway-left::before,
.doorway-right::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 100px,
    rgba(139, 90, 43, 0.3) 100px,
    rgba(139, 90, 43, 0.3) 102px
  );
}

.doorway-threshold {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 95vw);
  height: 20px;
  background: linear-gradient(180deg, var(--brown-medium) 0%, var(--brown-dark) 100%);
  box-shadow: 
    inset 0 5px 15px rgba(139, 90, 43, 0.3),
    0 -5px 20px var(--shadow-deep);
  z-index: 50;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */

.doorway-content {
  position: relative;
  background: linear-gradient(180deg, var(--yellow-cream) 0%, var(--cream-wall) 50%, var(--yellow-pale) 100%);
  margin: 0 30px;
  padding: 100px 40px 60px;
  min-height: calc(100vh - 60px);
  box-shadow: 
    inset 0 0 100px rgba(255, 248, 220, 0.5),
    inset 0 0 50px rgba(244, 196, 48, 0.1);
  z-index: 10;
}

@media (max-width: 600px) {
  .doorway-content {
    margin: 0 15px;
    padding: 100px 20px 40px;
  }
  
  .doorway-left { left: 0; }
  .doorway-right { right: 0; }
  .doorway-arch, .doorway-threshold { width: 100vw; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 40px 0 60px;
}

.sunflower-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.sunflower-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, var(--brown-light) 0%, var(--brown-dark) 100%);
  border-radius: 50%;
  box-shadow: 
    inset -5px -5px 15px rgba(0, 0, 0, 0.3),
    inset 5px 5px 15px rgba(139, 90, 43, 0.5);
  z-index: 2;
}

.sunflower-center::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(139, 90, 43, 0.8) 0%, transparent 70%);
  border-radius: 50%;
}

.sunflower-petals-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: slow-rotate 30s linear infinite;
}

.sunflower-petals-ring::before,
.sunflower-petals-ring::after {
  content: '';
  position: absolute;
}

@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 400;
  color: var(--brown-dark);
  margin-bottom: 15px;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 0 rgba(255, 217, 61, 0.3);
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--brown-medium);
  font-weight: 400;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION TABS
   ═══════════════════════════════════════════════════════════ */

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 24px;
  border: 2px solid var(--brown-light);
  background: transparent;
  color: var(--brown-medium);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  background: rgba(255, 217, 61, 0.2);
  border-color: var(--yellow-golden);
  transform: translateY(-2px);
}

.tab.active {
  background: var(--yellow-golden);
  border-color: var(--yellow-golden);
  color: var(--brown-dark);
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */

.section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 25px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */

.about-content {
  max-width: 650px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--brown-medium);
  margin-bottom: 25px;
  text-align: justify;
  text-align-last: left;
}

.about-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 10px;
  margin-top: 5px;
  color: var(--yellow-golden);
  text-shadow: 2px 2px 0 var(--brown-light);
}

.house-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(61, 41, 20, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(61, 41, 20, 0.15);
}

.feature-icon {
  font-size: 1.8rem;
}

.feature span:last-child {
  font-size: 0.95rem;
  color: var(--brown-medium);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   residents SECTION
   ═══════════════════════════════════════════════════════════ */

.residents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.resident-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(61, 41, 20, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.resident-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--card-color, var(--yellow-golden));
}

.resident-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(61, 41, 20, 0.2);
}

.resident-card:hover .resident-link {
  opacity: 1;
  transform: translateY(0);
}

.resident-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card-color, var(--yellow-golden)) 0%, rgba(255,255,255,0.5) 100%);
  box-shadow: 
    0 8px 25px rgba(61, 41, 20, 0.15),
    inset 0 -3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.resident-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.resident-card:hover .resident-photo img {
  transform: scale(1.1);
}

.resident-emoji-fallback {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.resident-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.resident-description {
  font-size: 0.95rem;
  color: var(--brown-medium);
  line-height: 1.6;
  margin-bottom: 15px;
}

.resident-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card-color, var(--yellow-golden));
  opacity: 0.7;
  transition: all 0.3s ease;
  transform: translateY(5px);
}

.resident-card:hover .resident-link {
  color: var(--brown-dark);
}

/* ═══════════════════════════════════════════════════════════
   EVENTS SECTION (PARTIFUL CLONE)
   ═══════════════════════════════════════════════════════════ */

.events-header {
  text-align: center;
  margin-bottom: 40px;
}

.events-subtitle {
  color: var(--brown-medium);
  font-size: 1.1rem;
  margin-top: -15px;
}

/* Subscribe Card */
.subscribe-card {
  background: linear-gradient(135deg, var(--yellow-bright) 0%, var(--yellow-golden) 100%);
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 
    0 15px 40px rgba(244, 196, 48, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.subscribe-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.subscribe-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.subscribe-card > p {
  color: var(--brown-medium);
  margin-bottom: 25px;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  min-width: 150px;
  padding: 14px 20px;
  border: 2px solid rgba(61, 41, 20, 0.2);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brown-dark);
  transition: all 0.3s ease;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--brown-medium);
  box-shadow: 0 0 0 4px rgba(61, 41, 20, 0.1);
}

.subscribe-form input::placeholder {
  color: var(--brown-light);
}

.subscribe-form button {
  padding: 14px 30px;
  background: var(--brown-dark);
  color: var(--yellow-cream);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-form button:hover {
  background: var(--brown-medium);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(61, 41, 20, 0.3);
}

.subscribe-message {
  margin-top: 15px;
  font-weight: 500;
  color: var(--brown-dark);
}

.subscribe-message.success {
  color: var(--green-plant);
}

.subscribe-message.error {
  color: #c0392b;
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 5px 20px rgba(61, 41, 20, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(61, 41, 20, 0.12);
}

.event-date {
  text-align: center;
  min-width: 70px;
  padding: 15px;
  background: var(--yellow-golden);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(244, 196, 48, 0.3);
}

.event-date-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brown-dark);
  letter-spacing: 0.05em;
}

.event-date-day {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brown-dark);
  line-height: 1.1;
}

.event-info {
  flex: 1;
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brown-dark);
  margin-bottom: 5px;
}

.event-description {
  font-size: 0.95rem;
  color: var(--brown-medium);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-time {
  font-size: 0.85rem;
  color: var(--brown-light);
  margin-top: 8px;
}

.event-link {
  font-size: 0.8rem;
  color: var(--brown-light);
  margin-top: 5px;
  font-family: monospace;
}

.event-card-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.event-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-status.pending {
  background: rgba(255, 171, 0, 0.2);
  color: var(--orange-warmth);
}

.event-status.approved {
  background: rgba(74, 124, 89, 0.2);
  color: var(--green-plant);
}

.event-status.rejected {
  background: rgba(192, 57, 43, 0.2);
  color: #c0392b;
}

.no-events {
  text-align: center;
  padding: 60px 20px;
  color: var(--brown-light);
  font-size: 1.1rem;
}

.no-events::before {
  content: '🌱';
  display: block;
  font-size: 3rem;
  margin-bottom: 15px;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════ */

.admin-panel {
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(61, 41, 20, 0.05) 0%, rgba(139, 90, 43, 0.1) 100%);
  border-radius: 25px;
  border: 2px dashed var(--brown-light);
}

.admin-panel.hidden {
  display: none;
}

.admin-panel h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brown-dark);
  margin-bottom: 25px;
  text-align: center;
}

.admin-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(139, 90, 43, 0.2);
}

.admin-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-section h4 {
  font-size: 1.1rem;
  color: var(--brown-medium);
  margin-bottom: 15px;
  font-weight: 600;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  padding: 12px 16px;
  border: 2px solid rgba(139, 90, 43, 0.3);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: white;
  color: var(--brown-dark);
  transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--yellow-golden);
  box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.2);
}

.admin-form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row input {
  flex: 1;
}

.admin-form button {
  padding: 14px 24px;
  background: var(--brown-medium);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.admin-form button:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
}

.subscribers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subscriber-tag {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--brown-medium);
  display: flex;
  align-items: center;
  gap: 6px;
}

.subscriber-tag::before {
  content: '👤';
  font-size: 0.9rem;
}

/* Admin event actions */
.event-admin-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.admin-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn.approve {
  background: rgba(74, 124, 89, 0.2);
  color: var(--green-plant);
}

.admin-btn.approve:hover {
  background: var(--green-plant);
  color: white;
}

.admin-btn.reject {
  background: rgba(192, 57, 43, 0.2);
  color: #c0392b;
}

.admin-btn.reject:hover {
  background: #c0392b;
  color: white;
}

.admin-btn.delete {
  background: rgba(0, 0, 0, 0.1);
  color: var(--brown-medium);
}

.admin-btn.delete:hover {
  background: var(--brown-dark);
  color: white;
}

.admin-edit-section {
  background: rgba(255, 217, 61, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px dashed var(--yellow-golden);
}

.admin-edit-section h4 {
  font-size: 0.9rem;
  color: var(--brown-medium);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-edit-section .edit-form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.admin-edit-section label {
  font-size: 0.85rem;
  color: var(--brown-medium);
  font-weight: 500;
}

.admin-edit-section input {
  padding: 8px 12px;
  border: 2px solid rgba(139, 90, 43, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
}

.admin-edit-section input:focus {
  outline: none;
  border-color: var(--yellow-golden);
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 7, 5, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--yellow-cream);
  border-radius: 25px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brown-light);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--brown-dark);
}

.modal-event-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.modal-event-date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brown-medium);
  margin-bottom: 20px;
  font-weight: 500;
}

.modal-event-date::before {
  content: '📅';
}

.modal-event-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--brown-medium);
  margin-bottom: 30px;
}

.rsvp-form {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  padding: 25px;
}

.rsvp-form h4 {
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 15px;
}

.rsvp-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(139, 90, 43, 0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 10px;
  background: white;
}

.rsvp-form input:focus {
  outline: none;
  border-color: var(--yellow-golden);
}

.rsvp-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.rsvp-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rsvp-btn.going {
  background: var(--green-plant);
  border-color: var(--green-plant);
  color: white;
}

.rsvp-btn.maybe {
  background: transparent;
  border-color: var(--yellow-golden);
  color: var(--brown-dark);
}

.rsvp-btn.cant {
  background: transparent;
  border-color: var(--brown-light);
  color: var(--brown-medium);
}

.rsvp-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.rsvp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rsvp-list {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 90, 43, 0.2);
}

.rsvp-list h4 {
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.rsvp-attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rsvp-attendee {
  padding: 6px 12px;
  background: rgba(74, 124, 89, 0.15);
  border-radius: 15px;
  font-size: 0.85rem;
  color: var(--green-plant);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .event-date {
    align-self: flex-start;
  }
  
  .event-admin-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 10px;
  }
  
  .residents-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--brown-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--brown-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--yellow-golden);
}

/* ═══════════════════════════════════════════════════════════
   ADMIN ADD ATTENDEE
   ═══════════════════════════════════════════════════════════ */

.admin-add-attendee {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 90, 43, 0.2);
}

.admin-add-attendee h4 {
  font-size: 0.95rem;
  color: var(--brown-medium);
  margin-bottom: 12px;
}

.add-attendee-form {
  display: flex;
  gap: 10px;
}

.add-attendee-form input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid rgba(139, 90, 43, 0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.add-attendee-form input:focus {
  outline: none;
  border-color: var(--yellow-golden);
}

.add-attendee-form button {
  padding: 10px 20px;
  background: var(--brown-medium);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.add-attendee-form button:hover {
  background: var(--brown-dark);
}

.remove-attendee {
  background: none;
  border: none;
  color: rgba(192, 57, 43, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0 0 6px;
  line-height: 1;
  transition: color 0.2s;
}

.remove-attendee:hover {
  color: #c0392b;
}

.rsvp-attendee {
  display: inline-flex;
  align-items: center;
}

.rsvp-attendee.maybe {
  background: rgba(255, 171, 0, 0.15);
  color: #cc8800;
}

.rsvp-attendee.cant {
  background: rgba(139, 90, 43, 0.1);
  color: var(--brown-light);
}

.rsvp-list h4 {
  margin-top: 15px;
  margin-bottom: 10px;
}

.rsvp-list h4:first-child {
  margin-top: 0;
}
