/* IKAMAWON Custom Styles & Modern Responsive Enhancements */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-emerald: #059669;
  --primary-emerald-dark: #047857;
  --primary-emerald-light: #10b981;
  --bg-subtle: #f8fafc;
}

*, ::after, ::before {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #0f172a;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Glassmorphism & Soft Shadow Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.custom-shadow {
  box-shadow: 0 10px 30px -5px rgba(5, 150, 105, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

.custom-shadow-lg {
  box-shadow: 0 20px 40px -15px rgba(5, 150, 105, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.05);
}

.emerald-glow {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-bg {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Event Calendar Grid Responsive Styling */
.calendar-day-cell {
  min-height: 85px;
  transition: all 0.2s ease;
}
.calendar-day-cell:hover {
  background-color: #f0fdf4;
}
.calendar-day-cell.today {
  border: 2px solid #059669;
  background-color: #ecfdf5;
}

/* Mobile & Tablet Specific Responsive Fixes */
@media (max-width: 640px) {
  .calendar-day-cell {
    min-height: 52px;
    font-size: 11px;
    padding: 2px;
  }
  
  #nav-drawer {
    width: 85vw;
    max-width: 340px;
  }

  .modal-container > div {
    margin: 10px;
    padding: 20px;
  }

  h1 {
    font-size: 1.875rem !important; /* 30px on small mobile */
    line-height: 2.25rem !important;
  }

  h2 {
    font-size: 1.5rem !important; /* 24px */
    line-height: 2rem !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .calendar-day-cell {
    min-height: 70px;
  }
}

/* Word & Text Wrap Safeguard */
p, span, h1, h2, h3, h4, h5, h6, a, div {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Organic Committee Tree Visual System */
.tree-canvas {
  background: radial-gradient(circle at 50% 5%, rgba(16, 185, 129, 0.08) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.tree-node-circle {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tree-node-circle:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 28px -6px rgba(5, 150, 105, 0.25);
}
