/* assets/css/theme-contrast-fix.css -----------------------------------------
   ChessKidoo — contrast corrections (loaded last so it wins specificity ties).
   Targets the two real-world failure modes: white text on a light field
   (light modals / enrollment) and dark text on the dark portal theme.
   --------------------------------------------------------------- */

/* 1) Native dropdown items must be readable no matter how the <select> is
      themed (some OS/browsers paint option text in the control's colour,
      producing white-on-white or dark-on-dark popups). */
select option,
select optgroup {
  color: #0f172a !important;
  background: #ffffff !important;
}

/* 2) Any field that declares a LIGHT inline background must use dark text,
      so a global light-text rule can never make it white-on-white. */
input[style*="background:#f8fafc"],  input[style*="background: #f8fafc"],
input[style*="background:#fff"],     input[style*="background: #fff"],
input[style*="background:white"],
textarea[style*="background:#f8fafc"], textarea[style*="background:#fff"],
select[style*="background:#f8fafc"],  select[style*="background:#fff"] {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a;
}
input[style*="background:#f8fafc"]::placeholder,
textarea[style*="background:#f8fafc"]::placeholder { color: #94a3b8; }

/* 3) Modals option list readable colors. */
#contactModal select option { color: #0f172a; background: #ffffff; }

/* 4) Dark-theme portal form controls keep light text + visible placeholders
      (guards against dark-on-dark when an inline style strips the colour). */
.p-panel .p-form-control,
.p-modal .p-form-control,
.p-form-control {
  color: var(--p-text, #e8eefc);
}
.p-panel .p-form-control::placeholder,
.p-modal  .p-form-control::placeholder { color: rgba(255,255,255,0.42); }

/* 5) Portal <select> popups: dark control, but readable (light) option list. */
.p-form-control option { color: #0f172a; background: #ffffff; }

/* 6) Common low-contrast helper text on the dark theme — nudge up so it is
      legible without changing the design language. */
.p-text-muted,
.p-card-sub { color: var(--p-text-muted, #9aa6bf); }

/* 7) Our Team in Action Showcase Redesign */
.team-showcase-container h2,
.team-showcase-heading {
  color: #0f172a !important;
}
.team-showcase-container p.lead,
.team-showcase-lead {
  color: #334155 !important;
}

:root[data-theme="dark"] .team-showcase-container h2,
:root[data-theme="dark"] .team-showcase-heading {
  color: #ffffff !important;
}
:root[data-theme="dark"] .team-showcase-container p.lead,
:root[data-theme="dark"] .team-showcase-lead {
  color: rgba(255, 255, 255, 0.85) !important;
}

.team-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.team-action-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
.team-action-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 45px rgba(232, 160, 32, 0.22), 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(232, 160, 32, 0.5) !important;
}

.team-action-img-wrap {
  position: relative !important;
  width: 100% !important;
  height: 240px !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  background: #0f172a !important;
  flex: 0 0 auto !important;
}
.team-action-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  display: block !important;
  transition: transform 0.5s ease !important;
}
.team-action-card:hover .team-action-img-wrap img {
  transform: scale(1.06) !important;
}

.team-action-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.team-action-tag.trophy-tag {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.5);
}

.team-action-body {
  padding: 24px 22px;
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
:root[data-theme="dark"] .team-action-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.14);
}
:root[data-theme="dark"] .team-action-body {
  background: #1e293b;
}

.team-action-title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
:root[data-theme="dark"] .team-action-title {
  color: #ffffff !important;
}

.team-action-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155 !important;
  margin: 0;
  font-weight: 500;
}
:root[data-theme="dark"] .team-action-desc {
  color: #cbd5e1 !important;
}


