/*
Theme Name: Chloe's PHAB Fundraiser v3
Theme URI: https://runwithchloe.co.uk
Author: Richard Witton
Description: A clean, single-page WordPress theme for Chloe's London Marathon fundraising campaign in aid of PHAB. Includes refined layout, expanded charity blurb, countdown timer, and PHAB branding.
Version: 1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chloe-phab
*/

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Source+Sans+Pro&display=swap');

/* Base styles */
body {
  font-family: 'Source Sans Pro', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: #76217C;
  margin-top: 0;
}

/* Buttons */
a.button {
  background-color: #FDBB30;
  color: #EF3C85;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
  transition: background 0.3s ease;
  margin-top: 2rem;
}

a.button:hover {
  background-color: #ef3c85;
  color: #fff;
}

/* Layout sections */
section {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Chloe intro text */
.intro {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* PHAB charity section */
.phab-info {
  background-color: #f8f4fa;
  padding: 2.5rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.phab-info h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Countdown Timer */
#countdown {
  font-size: 2rem;
  font-weight: bold;
  color: #76217C;
  background: #f8f4fa;
  border: 2px solid #EF3C85;
  padding: 1rem 2rem;
  border-radius: 10px;
  display: inline-block;
  margin: 2rem auto;
  font-family: 'Source Sans Pro', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from {
    box-shadow: 0 0 0 rgba(239, 60, 133, 0.2);
  }
  to {
    box-shadow: 0 0 20px rgba(239, 60, 133, 0.3);
  }
}

/* Footer */
footer {
  background: #76217C;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }

  .phab-info {
    font-size: 1rem;
    padding: 2rem 1rem;
  }

  #countdown {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
  }
}


/* Animate countdown number */
@keyframes countpop {
  0% {
    transform: scale(1);
    color: #76217C;
  }
  50% {
    transform: scale(1.1);
    color: #EF3C85;
  }
  100% {
    transform: scale(1);
    color: #76217C;
  }
}

#countdown {
  animation: countpop 1.5s infinite ease-in-out;
}


/* Donate button scaling */
a.button.donate-button {
  font-size: 1.5rem;
  padding: 1rem 2.5rem;
  margin-top: 3rem;
}


/* Match PHAB site background colour */
body {
  background-color: #f2e8f0;
}

/* Dual logo layout in PHAB section */
.phab-info-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.phab-info-logos img {
  max-width: 45%;
  height: auto;
}

/* Donate button styled same as countdown */
a.button.donate-button {
  font-size: 2rem;
  padding: 1rem 2.5rem;
  margin-top: 2rem;
  display: inline-block;
  border: 2px solid #EF3C85;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #FDBB30;
  color: #EF3C85;
  animation: pulse 1.5s infinite alternate;
}

a.button.donate-button:hover {
  background-color: #ef3c85;
  color: #fff;
}

/* Donation progress bar */
.donation-tracker {
  margin: 3rem auto;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar .fill {
  height: 100%;
  background: #FDBB30;
  width: 0;
  transition: width 1s ease-in-out;
}
