/* ============================================
   BIRTHDAY THEME CSS - CLEAN & CONSOLIDATED
   AllShare Birthday Photo Sharing Theme
   ============================================ */

/* 1. IMPORTS & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Birthday Color Palette */
  --color-primary: #f59e0b;
  --color-primary-light: #fbbf24;
  --color-primary-dark: #d97706;
  --color-secondary: #ec4899;
  --color-accent: #8b5cf6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fce7f3 100%);
  --gradient-navbar: linear-gradient(135deg, #f59e0b, #fbbf24);
  
  /* Typography & Spacing */
  --font-heading: 'Fredoka One', cursive;
  --font-primary: 'Nunito', sans-serif;
  --border-radius: 16px;
  --border-radius-lg: 24px;
}

/* 2. BASE STYLING */
body {
  font-family: var(--font-primary);
  color: #1f2937;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Safe background overrides (Avoid overriding .bg-white globally to prevent breaking modals/cards) */
.bg-gray-50, .bg-gray-100 {
  background: var(--gradient-soft);
}

/* 3. NAVBAR STYLING */
.navbar {
  background: var(--gradient-navbar) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.navbar .nav-link,
.navbar .navbar-title {
  color: white !important;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.navbar .nav-link:hover {
  color: #fffbeb !important;
}

.navbar .nav-button {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(8px);
}

.navbar .nav-button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.navbar .navbar-emoji {
  animation: birthday-bounce 2s infinite;
}

@keyframes birthday-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

/* Mobile Menu Toggle */
.navbar #menuToggle {
  color: white !important;
}
.navbar #menuToggle svg {
  stroke: white !important;
}

/* Mobile Menu Visibility (Correctly overrides Tailwind's .hidden class) */
.navbar #mobileMenu:not(.hidden) {
  display: block !important;
  background: var(--gradient-navbar);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar #mobileMenu .nav-link,
.navbar #mobileMenu .nav-button {
  color: white !important;
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4. BUTTON ENHANCEMENTS (Matches HTML classes) */
.bg-gradient-to-r.from-yellow-400.to-orange-500 {
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.bg-gradient-to-r.from-yellow-400.to-orange-500:hover {
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px) scale(1.02);
}

/* 5. GALLERY & UPLOAD COMPONENTS */
#photoGallery, #videoGallery {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.media-item {
  border: 2px solid var(--color-primary-light);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.media-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
  transform: translateY(-4px) scale(1.02);
}

.media-item::before {
  content: '🎈';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 18px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
}

.media-item:hover::before {
  opacity: 1;
  transform: scale(1) rotate(10deg);
}

/* 6. FOOTER STYLING */
footer {
  background: var(--gradient-primary);
  color: white;
}

footer h3, footer h4 {
  color: white;
  font-family: var(--font-heading);
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
}

footer a:hover {
  color: white;
  transform: translateY(-1px);
}
footer .text-gray-400 {
    color: #19191b !important;
}

/* 7. UTILITIES & ANIMATIONS */
.animate-fade-up {
  animation: fade-up 1s ease-out forwards;
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 8. RESPONSIVE DESIGN (Kept at end of file per coding standards) */
@media (max-width: 768px) {
  .navbar .navbar-emoji {
    font-size: 1.25rem !important;
  }
  
  .navbar .navbar-title {
    font-size: 1rem !important;
  }
}