/* ================================================================
   AG2C – Public Recruiting Profile CSS
   Brand Colors:
     Dark Blue : #041436
     Navy Blue : #003399
     Sky Blue  : #0066ff
     Red       : #FF0000
   Fonts: Rajdhani (display) + DM Sans (body)
   Includes full print / PDF styles.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Base ─────────────────────────────────────────────────────── */

/* Use !important to override any theme background on the live page.
   Targets html, body, and common theme wrapper divs. */
html:has(body.ag2c-profile-page) {
  background: #003399 !important;
  background-color: #003399 !important;
}

body.ag2c-profile-page {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #0a1628;
  background: #003399 !important;
  background-color: #003399 !important;
}

/* Make common theme page wrappers transparent so navy shows through */
body.ag2c-profile-page #page,
body.ag2c-profile-page #wrapper,
body.ag2c-profile-page #content,
body.ag2c-profile-page .site,
body.ag2c-profile-page .site-content,
body.ag2c-profile-page main,
body.ag2c-profile-page #main,
body.ag2c-profile-page .entry-content {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.ag2c-profile-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 80px rgba(0,0,0,.45);
  position: relative;
  z-index: 1;
}

/* ── Site Header ──────────────────────────────────────────────── */
.ag2c-profile-site-header {
  background: #041436;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Tri-color bottom stripe on header */
.ag2c-profile-site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #FF0000 0%,  #FF0000 20%,
    #003399 20%, #003399 60%,
    #0066ff 60%, #0066ff 100%
  );
}

.ag2c-profile-site-header a {
  display: block;
  line-height: 0;
}

.ag2c-profile-header-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .ag2c-profile-site-header { padding: 14px 20px; }
  .ag2c-profile-header-logo { max-width: 200px; }
}

/* ── Cover Banner ─────────────────────────────────────────────── */
.ag2c-profile-cover {
  position: relative;
  width: 100%;
  line-height: 0;            /* kill descender gap under the img */
  background: #041436;       /* matches hero, shows during image load */
}

.ag2c-profile-cover-img {
  display: block;
  width: 100%;
  height: auto;              /* preserve the image's natural 4:3 ratio */
  max-width: 1200px;         /* don't upscale past the optimum width */
  margin: 0 auto;            /* center if the viewport is wider than 1200 */
}

.ag2c-profile-cover-overlay {
  display: none;
}

/* ── Hero Header ──────────────────────────────────────────────── */
.ag2c-profile-hero {
  background: var(--dark, #041436);
  background: linear-gradient(135deg, #041436 0%, #003399 100%);
  color: white;
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

/* Diagonal sky accent on hero */
.ag2c-profile-hero::before {
  content: '';
  position: absolute;
  top: 0; right: -20px;
  width: 300px; height: 100%;
  background: linear-gradient(135deg, transparent 45%, rgba(0,102,255,.12) 45%);
  pointer-events: none;
}

/* Red bottom border on hero */
.ag2c-profile-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #FF0000 0%,  #FF0000 20%,
    #003399 20%, #003399 60%,
    #0066ff 60%, #0066ff 100%
  );
}

.ag2c-profile-hero-inner { flex: 1; min-width: 0; position: relative; z-index: 1; }

.ag2c-profile-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ag2c-profile-hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 22px;
  font-size: 15px;
}

.ag2c-profile-detail { color: rgba(255,255,255,.78); }
.ag2c-profile-detail strong { color: #0066ff; }

.ag2c-profile-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ag2c-profile-print-btn {
  background: #FF0000;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 3px 12px rgba(255,0,0,.35);
}

.ag2c-profile-print-btn:hover {
  background: #cc0000;
  box-shadow: 0 5px 18px rgba(255,0,0,.45);
}

.ag2c-profile-social { display: flex; gap: 10px; flex-wrap: wrap; }

.ag2c-social-link {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: color .18s, border-color .18s, background .18s;
}

.ag2c-social-link:hover {
  color: white;
  border-color: #0066ff;
  background: rgba(0,102,255,.12);
}

/* Headshot */
.ag2c-profile-headshot-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ag2c-profile-headshot {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #0066ff;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  display: block;
}

/* ── Sections ─────────────────────────────────────────────────── */
.ag2c-profile-section {
  padding: 40px 40px;
  border-bottom: 1px solid #e0e7f5;
}

.ag2c-profile-section--statement { background: #f5f7ff; }
.ag2c-profile-section--scouting  { background: #041436; color: white; }
.ag2c-profile-section--athletic  { background: #f5f7ff; }
.ag2c-profile-section--videos    { background: #ffffff; }
.ag2c-profile-section--contact   { background: #f5f7ff; }

.ag2c-profile-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #041436;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0066ff;
  display: inline-block;
}

/* Scouting section title in red */
.ag2c-profile-section--scouting .ag2c-profile-section-title {
  color: #FF0000;
  border-bottom-color: #FF0000;
}

.ag2c-profile-container { max-width: 880px; margin: 0 auto; }

/* Statement */
.ag2c-profile-statement {
  font-size: 17px;
  line-height: 1.75;
  color: #1a2a4a;
  max-width: 760px;
}

/* Scouting report */
.ag2c-profile-scouting-text {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  font-style: italic;
  max-width: 760px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

.ag2c-profile-scouting-text::before {
  content: '"';
  position: absolute;
  left: 0; top: -4px;
  font-size: 40px;
  color: #0066ff;
  font-style: normal;
  line-height: 1;
  font-family: 'Rajdhani', sans-serif;
}

.ag2c-profile-section--scouting .ag2c-profile-scouting-credit,
p.ag2c-profile-scouting-credit {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  letter-spacing: .3px;
  font-style: normal;
}

/* Two-col layout */
.ag2c-profile-two-col {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

@media (max-width: 640px) {
  .ag2c-profile-two-col  { grid-template-columns: 1fr; }
  .ag2c-profile-hero     { padding: 24px 20px; }
  .ag2c-profile-section  { padding: 28px 20px; }
  .ag2c-profile-name     { font-size: 26px; }
}

.ag2c-profile-col-main  { min-width: 0; }
.ag2c-profile-col-side  { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.ag2c-profile-section p { color: #1a2a4a; line-height: 1.65; }
.ag2c-profile-section p strong { color: #003399; }

.ag2c-profile-school-logo {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
}

/* Lists */
.ag2c-profile-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.ag2c-profile-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: #1a2a4a;
  font-size: 15px;
  border-bottom: 1px solid #e0e7f5;
}

.ag2c-profile-list li:last-child { border-bottom: none; }

.ag2c-profile-list li::before {
  content: '▸';
  position: absolute;
  left: 0; top: 8px;
  color: #0066ff;
  font-size: 11px;
  line-height: 1;
}

/* Athletic blocks */
.ag2c-profile-athletic-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e7f5;
}

.ag2c-profile-athletic-block:last-child { border-bottom: none; }

.ag2c-profile-athletic-block h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #003399;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Videos */
.ag2c-profile-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.ag2c-profile-video-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #041436;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.ag2c-profile-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #d0d9f0;
}

.ag2c-profile-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Gallery */
.ag2c-profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.ag2c-profile-gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 2px solid #d0d9f0;
  transition: border-color .18s, box-shadow .18s;
}

.ag2c-profile-gallery-item:hover {
  border-color: #0066ff;
  box-shadow: 0 4px 16px rgba(0,102,255,.2);
}

.ag2c-profile-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block;
}

.ag2c-profile-gallery-item:hover img { transform: scale(1.04); }

/* Schedule */
.ag2c-profile-schedule { margin: 0; }

.ag2c-profile-schedule-row {
  padding: 10px 14px;
  border-bottom: 1px solid #e0e7f5;
  font-size: 15px;
  color: #1a2a4a;
}

.ag2c-profile-schedule-row:nth-child(even) { background: #f5f7ff; }
.ag2c-profile-schedule-row:hover           { background: #e8edff; }

/* ── Contact form ─────────────────────────────────────────────── */
.ag2c-contact-form { display: flex; flex-direction: column; gap: 14px; }

.ag2c-contact-field { display: flex; flex-direction: column; gap: 5px; }

.ag2c-contact-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #003399;
}

.ag2c-contact-field input,
.ag2c-contact-field textarea {
  padding: 10px 14px;
  border: 1.5px solid #d0d9f0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #0a1628;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  background: white;
}

.ag2c-contact-field input:focus,
.ag2c-contact-field textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0,102,255,.14);
}

.ag2c-contact-field textarea { resize: vertical; min-height: 120px; }

.ag2c-contact-submit {
  background: linear-gradient(135deg, #003399 0%, #0066ff 100%);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .18s;
  box-shadow: 0 4px 16px rgba(0,102,255,.28);
}

.ag2c-contact-submit:hover {
  background: linear-gradient(135deg, #0066ff 0%, #3385ff 100%);
  box-shadow: 0 6px 24px rgba(0,102,255,.38);
}

.ag2c-contact-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.ag2c-contact-status--success {
  background: #e6f9ef;
  color: #006629;
  border-left: 4px solid #00c853;
}

.ag2c-contact-status--error {
  background: #fff0f0;
  color: #cc0000;
  border-left: 4px solid #FF0000;
}

.ag2c-contact-photo {
  width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(4,20,54,.14);
  border: 2px solid #d0d9f0;
}

/* ── Site footer branding ─────────────────────────────────────── */
.ag2c-profile-site-footer {
  background: #041436;
  color: rgba(255,255,255,.5);
  padding: 36px 40px 28px;
  text-align: center;
  font-size: 14px;
  position: relative;
}

.ag2c-profile-site-footer .ag2c-footer-logo {
  display: block;
  margin: 0 auto 14px;
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* Tri-color top stripe on footer */
.ag2c-profile-site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #FF0000 0%,  #FF0000 20%,
    #003399 20%, #003399 60%,
    #0066ff 60%, #0066ff 100%
  );
}

.ag2c-profile-site-footer a {
  color: #0066ff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  transition: color .15s;
}

.ag2c-profile-site-footer a:hover { color: #3385ff; }
.ag2c-profile-site-footer p { margin: 6px 0 0; }

/* ================================================================
   PRINT / PDF STYLES
   ================================================================ */
@media print {
  body.ag2c-profile-page { background: white; font-size: 12pt; }

  /* Hide non-content elements */
  #wpadminbar,
  .site-header,
  .main-navigation,
  .ag2c-profile-print-btn,
  .ag2c-profile-site-header,
  #ag2c-contact-section,
  .ag2c-profile-site-footer { display: none !important; }

  .ag2c-profile-wrap { box-shadow: none; max-width: 100%; }

  .ag2c-profile-hero {
    background: #041436 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 20pt 24pt;
  }

  .ag2c-profile-name    { font-size: 24pt; }
  .ag2c-profile-section { padding: 16pt 24pt; break-inside: avoid; }
  .ag2c-profile-cover     { height: auto; }
  .ag2c-profile-cover-img { max-height: 200pt; width: auto; max-width: 100%; margin: 0 auto; }

  .ag2c-profile-section--scouting {
    background: #041436 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .ag2c-profile-section-title {
    color: #041436;
    border-bottom-color: #0066ff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Videos can't print — show placeholder text */
  .ag2c-profile-videos-grid { display: none; }

  .ag2c-profile-section--videos::before {
    content: 'Highlight Videos — visit the online profile to view';
    display: block;
    font-style: italic;
    color: #4a5878;
    font-size: 11pt;
    padding: 8pt 0;
  }

  .ag2c-profile-gallery { grid-template-columns: repeat(3, 1fr); }
  .ag2c-profile-gallery-item { break-inside: avoid; }

  /* Page breaks */
  .ag2c-profile-section--athletic,
  .ag2c-profile-section--videos   { page-break-before: auto; }
}
