/* ==========================================
   NGOMBOR ART CONTEST - CSS DESIGN SYSTEM
   Theme: Mobile-First Ebola Prevention Art Contest
   ========================================== */

:root {
  /* Colors from the Flyer */
  --bg-color: hsl(45, 12%, 95%);       /* Soft light warm greyish cream */
  --fg-color: hsl(220, 20%, 20%);       /* Dark slate grey for text */
  --fg-navy: hsl(228, 38%, 18%);        /* Deep navy for brand/headings */
  --fg-muted: hsl(220, 10%, 45%);       /* Muted grey for descriptions */
  
  --primary: hsl(11, 75%, 52%);         /* Safety Orange/Red */
  --primary-glow: hsla(11, 75%, 52%, 0.15);
  
  --secondary: hsl(180, 78%, 35%);      /* Starburst Teal */
  --secondary-glow: hsla(180, 78%, 35%, 0.15);
  
  --card-bg: hsl(0, 0%, 100%);
  --card-border: hsla(0, 0%, 0%, 0.06);
  --header-bg: hsla(45, 12%, 95%, 0.85);
  
  --shadow-sm: 0 4px 6px hsla(0, 0%, 0%, 0.04);
  --shadow-md: 0 10px 20px hsla(0, 0%, 0%, 0.06);
  --shadow-lg: 0 20px 40px hsla(0, 0%, 0%, 0.1);
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Dark Mode Override */
body.dark-mode {
  --bg-color: hsl(220, 25%, 8%);
  --fg-color: hsl(210, 20%, 94%);
  --fg-navy: hsl(210, 25%, 98%);
  --fg-muted: hsl(210, 12%, 70%);
  
  --primary: hsl(11, 80%, 55%);
  --secondary: hsl(180, 78%, 40%);
  
  --card-bg: hsl(220, 25%, 12%);
  --card-border: hsla(210, 20%, 94%, 0.08);
  --header-bg: hsla(220, 25%, 8%, 0.85);
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------
   2. Base Styles & Core Typography
   ------------------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-color);
  color: var(--fg-color);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-bottom: 60px;
}

h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--fg-navy);
  letter-spacing: -0.01em;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
}

/* Brand logo styling */
#main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: background-color var(--transition-normal), border var(--transition-normal);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title {
  font-family: var(--font-headings);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--fg-navy);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--card-border);
  color: var(--fg-color);
}

/* ------------------------------------------
   3. Art Contest Hero
   ------------------------------------------ */
.contest-hero {
  padding: 40px 0 30px 0;
  position: relative;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contest-title-area {
  position: relative;
  margin-bottom: 10px;
}

.contest-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 600px;
}

/* Float Starburst Badge */
.starburst-container {
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.starburst-badge {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(8deg);
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-fast);
  animation: wiggle 6s ease-in-out infinite;
}

.starburst-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(var(--shadow-md));
}

.starburst-svg polygon {
  transition: fill var(--transition-fast);
}

.starburst-badge:hover {
  transform: rotate(12deg) scale(1.05);
}

.starburst-badge:hover .starburst-svg polygon {
  fill: hsl(180, 78%, 30%);
}

.starburst-text {
  position: relative;
  z-index: 2;
  color: white;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px;
  pointer-events: none;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: rotate(-4deg); }
}

/* ------------------------------------------
   4. Structured Cards & Body Copy
   ------------------------------------------ */
.contest-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.copy-block {
  font-size: 1.1rem;
  color: var(--fg-color);
  font-weight: 500;
}

.copy-block strong {
  color: var(--fg-navy);
}

.copy-block.rules-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Districts & Cash Prize Callout */
.prizes-card {
  background-color: var(--card-bg);
  border-left: 5px solid var(--primary);
  border-top: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 24px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.prizes-card h3 {
  font-size: 1.25rem;
  color: var(--fg-navy);
  margin-bottom: 8px;
}

.prizes-card p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

/* More Info soon */
.soon-card {
  font-size: 1.1rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-top: 8px;
}

/* ------------------------------------------
   5. Interactive SVGs Column (Flyer Art)
   ------------------------------------------ */
.art-illustrations-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.art-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  min-height: 180px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.art-card svg {
  width: 100%;
  max-width: 180px;
  height: auto;
}

/* ------------------------------------------
   6. Call to Action / Registration
   ------------------------------------------ */
.cta-container {
  margin-top: 40px;
  padding: 30px 20px;
  background-color: var(--card-bg);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-container h3 {
  font-size: 1.4rem;
  color: var(--fg-navy);
  margin-bottom: 12px;
}

.btn-whatsapp {
  background-color: #25D366; /* WhatsApp Green */
  color: white;
  padding: 16px 28px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-headings);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
  margin-top: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-whatsapp span.icon {
  font-size: 1.4rem;
  font-weight: bold;
}

.btn-whatsapp:hover {
  background-color: #128C7E; /* WhatsApp Dark Green */
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.35);
}

/* ------------------------------------------
   7. Desktop Media Queries
   ------------------------------------------ */
@media (min-width: 768px) {
  .hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
  }
  
  .contest-main-title {
    font-size: 3.5rem;
  }
  
  .starburst-container {
    position: absolute;
    right: -20px;
    top: -20px;
    margin-top: 0;
  }
  
  .starburst-badge {
    width: 140px;
    height: 140px;
    font-size: 1rem;
  }
  
  .art-illustrations-container {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .art-card {
    min-height: 150px;
    padding: 16px;
  }
  
  .art-card svg {
    max-width: 140px;
  }
}
