/* ==========================================================================
   GLOBAL DESIGN TOKENS
   ========================================================================== */
:root {
  --aa-bg: #f9fafb;
  --aa-primary: #1f6feb;
  --aa-primary-dark: #174ea6;
  --aa-text: #111827;
  --aa-muted: #6b7280;
  --aa-card-bg: #ffffff;
  --aa-border: #e5e7eb;
}

/* ==========================================================================
   LAYOUT & STRUCTURE
   ========================================================================== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

.section {
  padding: 2.5rem 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header strong a {
  text-decoration: none;
  color: inherit;
}

.site-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--aa-primary);
  font-weight: 500;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   LOGOS & BRANDING
   ========================================================================== */
.logo-small {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.hero-logo {
  border-radius: 25%;
  box-shadow: 0 8px 25px rgba(139, 90, 250, 0.3);
  background: linear-gradient(135deg, #8B5AFA, #FF9500);
  padding: 0.25rem;
}

.site-footer img.logo-small {
  display: block;
  margin: 0 auto 0.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)),
    url('/assets/images/addy-hero.jpg') center 30% / 85% auto no-repeat fixed;
  /* ↑ Face-centered, 85% width */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(139,90,250,0.2), transparent);
}

.hero > * {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 1.5rem;
}

/* Parallax hero enhancement */
@media (prefers-reduced-motion: no-preference) {
  .hero {
    background-attachment: fixed;
  }
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--aa-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--aa-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--aa-primary);
  border-color: var(--aa-primary);
}

/* ==========================================================================
   TYPOGRAPHY & SECTIONS
   ========================================================================== */
.section-title {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.section-text {
  color: var(--aa-muted);
  line-height: 1.7;
}

/* ==========================================================================
   TRIBUTES GRIDS
   ========================================================================== */
.tributes-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tributes-grid-full {
  columns: 2 300px;
  column-gap: 1.5rem;
  column-fill: balance;
  height: 70vh;
  overflow-y: auto;
  padding-right: 1rem;
  scroll-behavior: smooth;
  margin-top: 1.5rem;
}

/* ==========================================================================
   TRIBUTE CARDS
   ========================================================================== */
.tribute-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  background: var(--aa-card-bg);
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tribute-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--aa-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.tribute-avatar img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.tribute-name {
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--aa-text);
}

.tribute-relationship {
  color: var(--aa-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
}

.tribute-message {
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.tribute-date {
  color: var(--aa-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   TRIBUTE FORM
   ========================================================================== */
.tribute-form-card {
  background: var(--aa-card-bg);
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  max-width: 640px;
  margin: 2rem 0;
}

#tribute-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#tribute-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

#tribute-form input,
#tribute-form select,
#tribute-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--aa-border);
  font: inherit;
  background: #ffffff;
}

#tribute-form input:focus,
#tribute-form select:focus,
#tribute-form textarea:focus {
  outline: 2px solid var(--aa-primary);
  outline-offset: 1px;
  border-color: var(--aa-primary);
}

#tribute-form textarea {
  min-height: 140px;
  resize: vertical;
}

#tribute-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--aa-border);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--aa-muted);
}

/* ==========================================================================
   LEGACY BROWSER SUPPORT
   ========================================================================== */
@supports not (columns: 2) {
  .tributes-grid-full {
    columns: auto;
  }
  .tributes-grid-home,
  .tributes-grid-full {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   EVENTS PAGE
   ========================================================================== */
/* Events Page */
.events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

#calendar {
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.event-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.maps-link {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.maps-link:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.fc {
  --fc-border-color: #e0e0e0;
  --fc-daygrid-event-background: linear-gradient(135deg, #667eea, #764ba2);
  --fc-event-border-color: transparent;
}



/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .tributes-grid-home {
    grid-template-columns: 1fr;
  }
  .tributes-grid-full {
    columns: 1;
  }
  .hero-logo {
    width: 4rem;
    height: 4rem;
  }
  .hero-layout {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-layout {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .logo-small {
    width: 1.5rem;
    height: 1.5rem;
  }
}


/* HIDE DONATE - TEMP */
.hero-actions .btn-primary[href="/donate/"],
.section-text .btn-primary[href="/donate/"] {
  display: none !important;
}


.under-construction {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.3);  /* 30% white tint */
  backdrop-filter: blur(2px);  /* Slight blur */
  border: 3px solid rgba(139,90,250,0.8);  /* Purple frame */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  text-align: center;
  font-family: system-ui;
}

.under-construction::before {
  content: 'UNDER CONSTRUCTION';
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 900;
  background: linear-gradient(45deg, #8B5AFA, #FF9500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-5deg);
  position: relative;
  z-index: 2;
  text-shadow:
    0 0 0 1px #000,
    0 1px 2px rgba(0,0,0,0.3);
  -webkit-text-stroke: 2px #000;
  animation: pulse 2s infinite;
}


.under-construction::after {
  content: '🔨';
  font-size: 3rem;
  animation: bounce 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
