/*
Theme Name: AEFC Volunteer Portal
Theme URI: https://aefc.revmodecs.com
Author: Team Atletico Elite
Author URI: https://www.atleticoelite.com
Description: Purpose-built canvas theme for the AEFC Volunteer Management Portal. Matches Atletico Elite FC branding — lighter AEFC blues, gold accents, white content surfaces.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aefc-portal
Tags: custom-logo, full-width-template, one-column
*/

/* ============================================================
   DESIGN TOKENS — matched to main AEFC website
   ============================================================ */
:root {
  /* New colorway — matches the redesigned atleticoelite.com homepage */
  --navy:         #0a1340;
  --navy-deep:    #070d2e;
  --indigo:       #1317c2;
  --indigo-dark:  #0c0f8f;
  --gold:         #d6af19;
  --gold-light:   #e9c453;
  --mint:         #eef6f1;
  --ink:          #16215c;

  /* Legacy token names aliased to the new colorway so the rest of this
     file doesn't need touching */
  --blue-dark:    var(--navy);
  --blue-mid:     var(--indigo);
  --blue-light:   var(--indigo-dark);
  --blue-pale:    var(--mint);
  --white:        #FFFFFF;
  --off-white:    var(--mint);
  --gray-light:   #E3E6F5;
  --gray-mid:     #8689B8;
  --dark-text:    var(--ink);
  --hero-grad:    linear-gradient(160deg, var(--navy) 0%, var(--indigo-dark) 55%, var(--indigo) 100%);
  --shadow-card:  0 4px 24px rgba(10,19,64,0.12);
  --shadow-lg:    0 12px 48px rgba(10,19,64,0.20);
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   all 0.22s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--blue-dark);
  min-height: 100vh;
}
a { color: var(--blue-mid); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.aefc-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.aefc-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.aefc-main { flex: 1; }

/* ============================================================
   HEADER — no logo, centered wordmark
   ============================================================ */
.aefc-header {
  background: var(--blue-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.aefc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1160px;
  margin: 0 auto;
  height: 64px;
}

/* Wordmark — text only, no shield icon */
.aefc-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.aefc-wordmark .club-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aefc-wordmark .portal-name {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

.aefc-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aefc-header-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.aefc-header-nav a:hover,
.aefc-header-nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.aefc-header-nav a.btn-header-login {
  color: var(--blue-dark);
  background: var(--gold);
  padding: 8px 18px;
}
.aefc-header-nav a.btn-header-login:hover {
  background: var(--gold-light);
  color: var(--blue-dark);
}
.aefc-mobile-toggle { display: none; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   HERO — AEFC blue gradient matching main site
   ============================================================ */
.aefc-home-hero {
  background: var(--hero-grad);
  min-height: calc(100vh - 67px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Subtle wave texture matching main site feel */
.aefc-home-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23F4F7FC' fill-opacity='0.08' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,30 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
}

/* AEFC Shield logo — large, centered, prominent */
.aefc-hero-shield {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.35));
  animation: fadeSlideDown 0.5s ease both;
}

/* If WP custom logo is set, use it */
.aefc-hero-shield .custom-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

/* When custom logo is NOT set: SVG fallback is inline in front-page.php */

.aefc-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 14px;
  animation: fadeSlideDown 0.5s 0.12s ease both;
}
.aefc-hero-title span { color: var(--gold); }

.aefc-hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.80);
  max-width: 500px;
  margin: 0 auto 48px;
  animation: fadeSlideDown 0.5s 0.2s ease both;
}

/* ============================================================
   CTA CARDS
   ============================================================ */
.aefc-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: 100%;
  max-width: 680px;
  animation: fadeSlideUp 0.5s 0.28s ease both;
}
.aefc-cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 28px 32px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  overflow: hidden;
  border: 2px solid transparent;
}
.aefc-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 55%);
  pointer-events: none;
}

/* Sign Up — gold */
.aefc-cta-card.card-signup {
  background: var(--gold);
  box-shadow: 0 8px 36px rgba(216,178,74,0.40);
}
.aefc-cta-card.card-signup:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 52px rgba(216,178,74,0.55);
  background: var(--gold-light);
}

/* Login — white with blue border */
.aefc-cta-card.card-login {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 8px 36px rgba(0,0,0,0.18);
}
.aefc-cta-card.card-login:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.20);
  border-color: var(--gold);
  box-shadow: 0 16px 52px rgba(0,0,0,0.28);
}

.aefc-cta-icon { width: 48px; height: 48px; }

.aefc-cta-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card-signup .aefc-cta-label { color: var(--blue-dark); }
.card-login  .aefc-cta-label { color: var(--white); }

.aefc-cta-desc { font-size: 13px; text-align: center; line-height: 1.5; }
.card-signup .aefc-cta-desc { color: rgba(21,59,115,0.80); }
.card-login  .aefc-cta-desc { color: rgba(255,255,255,0.72); }

.aefc-cta-arrow { font-size: 18px; transition: transform 0.2s ease; }
.card-signup .aefc-cta-arrow { color: var(--blue-dark); }
.card-login  .aefc-cta-arrow { color: rgba(255,255,255,0.65); }
.aefc-cta-card:hover .aefc-cta-arrow { transform: translateX(4px); }

.aefc-hero-footnote {
  margin-top: 30px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  animation: fadeSlideUp 0.5s 0.36s ease both;
  position: relative;
  z-index: 1;
}
.aefc-hero-footnote a { color: var(--gold-light); font-weight: 600; }
.aefc-hero-footnote a:hover { color: var(--white); }

/* ============================================================
   PAGE HEADER BANNER — inner pages
   ============================================================ */
.aefc-page-header {
  background: var(--blue-dark);
  padding: 28px 24px;
  border-bottom: 3px solid var(--gold);
}
.aefc-page-header-inner { max-width: 1160px; margin: 0 auto; }
.aefc-page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aefc-page-title span { color: var(--gold); }
.aefc-page-breadcrumb { font-size: 12px; color: var(--gray-mid); margin-top: 5px; letter-spacing: 0.05em; }
.aefc-page-breadcrumb a { color: var(--gray-mid); }
.aefc-page-breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   INNER PAGE — white card layout
   ============================================================ */
.aefc-page-wrap {
  background: var(--off-white);
  min-height: calc(100vh - 67px);
  padding: 36px 24px 56px;
}
.aefc-content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 1160px;
  margin: 0 auto;
}

/* ============================================================
   FULL-WIDTH DASHBOARD (page-dashboard.php)
   ============================================================ */
.aefc-dashboard-wrap {
  background: var(--off-white);
  min-height: calc(100vh - 67px);
  padding: 20px 0 48px;
}
.aefc-dashboard-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.aefc-dashboard-inner .aefc-kpi-grid,
.aefc-dashboard-inner [class*="kpi-grid"],
.aefc-dashboard-inner [class*="kpi_grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.aefc-dashboard-inner canvas { max-width: 100% !important; }
.aefc-dashboard-inner .aefc-dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.aefc-dashboard-inner .aefc-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  padding: 20px 22px;
}
.aefc-dashboard-inner .aefc-panel h3,
.aefc-dashboard-inner .aefc-panel .panel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.aefc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.aefc-btn-primary {
  background: var(--blue-mid);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(47,109,181,0.35);
}
.aefc-btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  color: var(--white);
}
.aefc-btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
}
.aefc-btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: var(--blue-dark);
}

/* ============================================================
   FORM OVERRIDES — plugin forms inside content card
   ============================================================ */
.aefc-content-card input[type="text"],
.aefc-content-card input[type="email"],
.aefc-content-card input[type="password"],
.aefc-content-card input[type="tel"],
.aefc-content-card input[type="number"],
.aefc-content-card select,
.aefc-content-card textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--dark-text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.aefc-content-card input:focus,
.aefc-content-card select:focus,
.aefc-content-card textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(47,109,181,0.15);
}

/* ============================================================
   STATUS CHIPS
   ============================================================ */
.aefc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.aefc-chip-red   { background: rgba(200,16,46,0.10); color: #a00c25; }
.aefc-chip-gold  { background: rgba(216,178,74,0.18); color: #8a6a00; }
.aefc-chip-green { background: rgba(22,163,74,0.10); color: #15803d; }
.aefc-chip-gray  { background: var(--gray-light); color: var(--gray-mid); }

/* ============================================================
   FOOTER
   ============================================================ */
.aefc-footer {
  background: var(--blue-dark);
  border-top: 2px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}
.aefc-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.aefc-footer-left { font-size: 13px; color: var(--gray-mid); }
.aefc-footer-left strong { color: var(--white); }
.aefc-footer-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.aefc-footer-right a { color: var(--gold); font-weight: 600; transition: var(--transition); }
.aefc-footer-right a:hover { color: var(--gold-light); }
.aefc-footer-divider { color: rgba(255,255,255,0.2); }

/* ============================================================
   LOGIN PAGE OVERRIDES (wp-login.php)
   ============================================================ */
body.login {
  background: var(--hero-grad) !important;
}
body.login #login {
  padding-top: 40px;
}
/* Hide the red badge/graphic from plugin's class-login.php */
body.login #login h1 a::before,
body.login .aefc-login-badge,
body.login .login-badge-icon {
  display: none !important;
}
/* Center and size the logo area */
body.login #login h1 {
  text-align: center;
  margin-bottom: 24px;
}
body.login #login h1 a {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  width: 120px !important;
  height: 120px !important;
  display: block !important;
  margin: 0 auto !important;
}
/* Login form card */
body.login #loginform,
body.login #lostpasswordform {
  background: var(--white) !important;
  border-radius: var(--radius-lg) !important;
  border: none !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25) !important;
  padding: 32px 36px !important;
}
body.login .login-username label,
body.login .login-password label {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--gray-mid) !important;
}
body.login input[type="text"],
body.login input[type="password"] {
  border: 1.5px solid var(--gray-light) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  box-shadow: none !important;
  transition: var(--transition) !important;
}
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
  border-color: var(--blue-mid) !important;
  box-shadow: 0 0 0 3px rgba(47,109,181,0.15) !important;
  outline: none !important;
}
body.login .button-primary,
body.login input[type="submit"] {
  background: var(--blue-mid) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  height: 46px !important;
  box-shadow: 0 4px 16px rgba(47,109,181,0.4) !important;
  transition: var(--transition) !important;
}
body.login .button-primary:hover,
body.login input[type="submit"]:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px) !important;
}
body.login #nav a,
body.login #backtoblog a {
  color: rgba(255,255,255,0.70) !important;
  font-size: 13px !important;
}
body.login #nav a:hover,
body.login #backtoblog a:hover { color: var(--gold-light) !important; }
body.login .privacy-policy-page-link a { color: rgba(255,255,255,0.50) !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .aefc-cta-grid { grid-template-columns: 1fr; max-width: 380px; }
  .aefc-cta-card { padding: 28px 20px; }
  .aefc-footer-inner { flex-direction: column; text-align: center; }
  .aefc-content-card { padding: 24px 18px; }
  .aefc-dashboard-inner { padding: 0 12px; }
  .aefc-dashboard-inner .aefc-dashboard-row { grid-template-columns: 1fr; }
  .aefc-hero-shield { width: 120px; height: 120px; }
}
@media (max-width: 640px) {
  .aefc-header-inner { position: relative; }
  .aefc-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    cursor: pointer;
  }
  .aefc-mobile-toggle:focus-visible,
  .aefc-header-nav a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
  }
  .aefc-mobile-toggle-bars,
  .aefc-mobile-toggle-bars::before,
  .aefc-mobile-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    content: '';
  }
  .aefc-mobile-toggle-bars { position: relative; }
  .aefc-mobile-toggle-bars::before { position: absolute; top: -7px; left: 0; }
  .aefc-mobile-toggle-bars::after { position: absolute; top: 7px; left: 0; }
  .aefc-header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    background: var(--blue-dark);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  }
  .aefc-header-nav.is-open { display: flex; }
  .aefc-header-nav a { padding: 12px 14px; }
}
@media (max-width: 480px) {
  .aefc-wordmark .club-name { font-size: 16px; }
  .aefc-wordmark .portal-name { display: none; }
}
