/*
Theme Name: Sting Softball
Theme URI: https://www.teamscsoftball.com/
Author: Justin Reid
Description: A bold black, yellow, blue, and white fastpitch softball WordPress theme with hero section, news, tournaments, players, alumni, coaches, and sponsor-ready layouts.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: sting-softball
*/

:root {
  --sting-black:#030303;
  --sting-dark:#101010;
  --sting-gray:#222;
  --sting-yellow:#ffd400;
  --sting-blue:#084bff;
  --sting-white:#ffffff;
}

* { box-sizing:border-box; }
body {
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background:#000;
  color:#111;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; }

.sting-topbar {
  background:var(--sting-yellow);
  height:28px;
  color:#000;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding:0 35px;
  gap:18px;
  font-weight:900;
}

.sting-header {
  background:#000;
  border-bottom:1px solid #1c1c1c;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 5vw;
  position:sticky;
  top:0;
  z-index:99;
}
.sting-logo-wrap {
  display:flex;
  align-items:center;
  gap:15px;
}
.sting-logo {
  width:155px;
  max-height:110px;
  object-fit:contain;
}
.site-title-text {
  color:#fff;
  font-size:22px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
}
.sting-nav ul {
  list-style:none;
  display:flex;
  margin:0;
  padding:0;
  gap:28px;
}
.sting-nav a {
  color:#fff;
  font-weight:900;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:1px;
  padding-bottom:8px;
}
.sting-nav a:hover {
  color:var(--sting-yellow);
  border-bottom:3px solid var(--sting-yellow);
}

.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height:430px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items:center;
  padding:40px 6vw;
  color:#fff;
  overflow:hidden;
}
.hero-logo img {
  width:260px;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.6));
}
.hero-content {
  text-align:center;
  max-width:920px;
  margin:0 auto;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.hero-small {
  color:var(--sting-yellow);
  font-size:20px;
  font-weight:900;
  letter-spacing:4px;
  text-transform:uppercase;
}
.hero-title {
  font-size:88px;
  line-height:.9;
  color:var(--sting-yellow);
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:-2px;
  text-shadow:5px 5px 0 #000, 0 0 20px rgba(255,212,0,.22);
  font-style:italic;
  margin:10px 0;
}

.hero-wordmark {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size:118px;
  line-height:.82;
  color:var(--sting-yellow);
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:-6px;
  font-style:italic;
  transform:skew(-12deg) rotate(-2deg);
  margin:8px 0 4px;
  text-shadow:
    5px 5px 0 #000,
    9px 9px 0 rgba(0,0,0,.85),
    -3px -3px 0 #1a4dff,
    0 0 22px rgba(255,212,0,.35);
  -webkit-text-stroke: 2px #000;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.65));
}
.hero-wordmark::first-letter {
  font-size:1.16em;
}
.hero-divider {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:min(460px, 90%);
  margin:10px auto 14px;
}
.hero-divider span {
  height:3px;
  flex:1;
  background:var(--sting-yellow);
}
.hero-divider em {
  color:var(--sting-yellow);
  font-style:normal;
  font-size:22px;
}
.hero-tagline {
  display:flex;
  gap:36px;
  justify-content:center;
  flex-wrap:wrap;
}
.hero-tagline span:nth-child(2) {
  color:var(--sting-yellow);
}
.hero-subtitle {
  color:#fff;
  font-size:42px;
  font-weight:900;
  letter-spacing:13px;
  margin-bottom:10px;
}
.hero-tagline {
  font-size:17px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:2px;
}
.btn-yellow {
  display:inline-block;
  margin-top:22px;
  background:var(--sting-yellow);
  color:#000;
  font-weight:900;
  padding:13px 24px;
  border-radius:0;
  text-transform:uppercase;
}
.btn-yellow:hover { background:#fff; }

.content-band {
  background:#fff;
  padding:42px 6vw;
}
.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
}
.section-title {
  color:#000;
  text-transform:uppercase;
  font-size:28px;
  font-weight:1000;
  margin:0 0 24px;
  letter-spacing:1px;
  position:relative;
}
.section-title:after {
  content:"";
  display:block;
  width:48px;
  height:4px;
  background:var(--sting-yellow);
  margin-top:8px;
}
.news-item {
  display:grid;
  grid-template-columns:170px 1fr;
  gap:22px;
  margin-bottom:26px;
}
.news-thumb {
  background:#111;
  min-height:115px;
  border:1px solid #ddd;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.news-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.news-date {
  color:#777;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.news-item h3 {
  margin:6px 0 8px;
  font-size:18px;
}
.read-more {
  color:#c48d00;
  font-weight:900;
  text-transform:uppercase;
  font-size:13px;
}
.tournament-list {
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tournament-row {
  display:grid;
  grid-template-columns:75px 1fr 70px;
  align-items:center;
  gap:14px;
  background:#f2f2f2;
  padding:9px;
}
.tournament-date {
  background:#000;
  color:#fff;
  padding:8px 4px;
  text-align:center;
  font-weight:900;
  line-height:1.1;
}
.tournament-date span {
  color:var(--sting-yellow);
  display:block;
  font-size:12px;
}
.tournament-info strong {
  display:block;
  font-size:16px;
}
.tournament-info small {
  color:#555;
}
.tournament-age {
  background:var(--sting-yellow);
  color:#000;
  text-align:center;
  font-weight:900;
  padding:8px 6px;
}

.player-section {
  background:#000;
  padding:42px 6vw 52px;
  color:#fff;
}
.player-section .section-title { color:#fff; }
.player-grid {
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:18px;
}
.player-card {
  border:2px solid #7a6500;
  background:#111;
  text-align:center;
  overflow:hidden;
}
.player-photo {
  height:165px;
  background:linear-gradient(160deg,#333,#050505);
  display:flex;
  align-items:center;
  justify-content:center;
}
.player-photo img {
  height:100%;
  width:100%;
  object-fit:cover;
}
.player-meta {
  border-top:1px solid #333;
  padding:12px 8px 15px;
  text-transform:uppercase;
  font-weight:900;
}
.player-number {
  color:var(--sting-yellow);
  font-size:20px;
}
.player-team {
  color:var(--sting-yellow);
}

.footer {
  background:#050505;
  border-top:3px solid var(--sting-yellow);
  color:#fff;
  padding:34px 6vw 18px;
}
.footer-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
}
.footer-logo { width:150px; }
.footer h4 {
  color:#fff;
  text-transform:uppercase;
  margin:0 0 12px;
}
.footer ul {
  list-style:none;
  padding:0;
  margin:0;
}
.footer li {
  margin:6px 0;
  color:#ddd;
}
.copyright {
  border-top:1px solid #333;
  margin-top:24px;
  padding-top:14px;
  display:flex;
  justify-content:space-between;
  color:#ddd;
  font-size:13px;
}

.page-wrap {
  background:#fff;
  padding:45px 6vw;
  min-height:420px;
}
.archive-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:22px;
}
.archive-card {
  border:1px solid #ddd;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}
.archive-card .card-img {
  height:220px;
  background:#111;
  overflow:hidden;
}
.archive-card .card-img img {
  height:100%;
  width:100%;
  object-fit:cover;
}
.archive-card .card-body {
  padding:18px;
}
.archive-card h2 {
  margin:0 0 8px;
  font-size:20px;
}

@media (max-width: 980px) {
  .sting-header { flex-direction:column; gap:14px; }
  .sting-nav ul { flex-wrap:wrap; justify-content:center; gap:16px; }
  .hero { grid-template-columns:1fr; text-align:center; }
  .hero-title { font-size:58px; }
  .hero-wordmark { font-size:72px; letter-spacing:-3px; }
  .hero-subtitle { font-size:28px; letter-spacing:8px; }
  .two-col { grid-template-columns:1fr; }
  .player-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px) {
  .news-item { grid-template-columns:1fr; }
  .tournament-row { grid-template-columns:60px 1fr; }
  .tournament-age { grid-column:1 / -1; }
  .player-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .copyright { flex-direction:column; gap:8px; }
}


.hero-center-image {
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:10px auto 12px;
}

.hero-center-image img {
  max-width:520px;
  width:100%;
  object-fit:contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
}


.hero-content {
  width:100%;
  margin:0 auto;
  text-align:center;
  align-items:center !important;
  justify-content:center !important;
}

.hero-small,
.hero-wordmark,
.hero-subtitle,
.hero-tagline,
.hero-divider {
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

/* Desktop hero center fix */
.hero {
  position: relative;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  min-height: 430px;
  padding: 40px 6vw;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-content {
  position: relative;
  left: auto !important;
  right: auto !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}

.hero-small,
.hero-wordmark,
.hero-subtitle,
.hero-divider,
.hero-tagline,
.hero-center-image {
  align-self: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-tagline {
  justify-content: center !important;
}

@media (min-width: 981px) {
  .hero {
    min-height: 520px;
  }

  .hero-content {
    max-width: 980px !important;
  }
}



.sting-topbar a {
  color:#000;
  font-weight:900;
  margin-left:16px;
  text-decoration:none;
}

.sting-topbar a:hover {
  color:#084bff;
}


.tournament-logo {
  width:75px;
  height:62px;
  background:#fff;
  border:2px solid #000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px;
  overflow:hidden;
}

.tournament-logo img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

@media (max-width: 600px) {
  .tournament-logo {
    width:60px;
    height:55px;
  }
}


.tournament-clickable {
  display:block;
  text-decoration:none;
  color:inherit;
}

.tournament-clickable:hover .tournament-row {
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.tournament-row {
  grid-template-columns:75px 75px 1fr 70px;
  transition:all .2s ease;
}


.player-name {
  font-size:18px;
  font-weight:900;
  margin-bottom:6px;
}

.player-grad {
  color:#fff;
  font-size:13px;
  margin-bottom:5px;
  text-transform:uppercase;
}

.player-number {
  color:var(--sting-yellow);
  font-size:18px;
  font-weight:900;
}


.player-inline-number {
  color:var(--sting-yellow);
  font-weight:900;
  margin-right:4px;
}

.player-photo {
  overflow:hidden;
}

.player-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
}


.footer a {
  color:#ddd;
  text-decoration:none;
}

.footer a:hover {
  color:var(--sting-yellow);
}


.footer .menu {
  list-style:none;
  padding:0;
  margin:0;
}

.footer .menu li {
  margin:6px 0;
}

.footer .menu a {
  color:#ddd;
  text-decoration:none;
}

.footer .menu a:hover {
  color:var(--sting-yellow);
}


.footer-menu {
  list-style:none;
  padding:0;
  margin:0;
}

.footer-menu li {
  margin:6px 0;
}

.footer-menu a {
  color:#ddd;
  text-decoration:none;
}

.footer-menu a:hover {
  color:var(--sting-yellow);
}


.home-sponsors-wrapper .sting-sponsors-section {
  padding:0;
}

.home-sponsors-wrapper .sting-sponsors-title {
  display:none;
}

.home-sponsors-wrapper .sting-sponsors-grid.columns-3 {
  grid-template-columns:repeat(2, 1fr);
}

@media (max-width:700px) {
  .home-sponsors-wrapper .sting-sponsors-grid.columns-3 {
    grid-template-columns:1fr;
  }
}


/* Remove sponsor card boxes */
.home-sponsors-wrapper .sting-sponsor-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px !important;
  min-height: auto !important;
}

.home-sponsors-wrapper .sting-sponsor-card:hover {
  transform: none !important;
  border: none !important;
  box-shadow: none !important;
}

.home-sponsors-wrapper .sting-sponsor-logo {
  margin-bottom: 10px;
}


/* Team page player name fix */
.player-card .player-name,
.player-name {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  color:var(--sting-yellow) !important;
  font-size:18px !important;
  font-weight:900 !important;
  text-align:center !important;
  margin-top:10px !important;
}

.player-card .player-inline-number {
  color:var(--sting-yellow) !important;
}

.player-card .player-grad,
.player-card .player-team {
  color:#333 !important;
  text-align:center !important;
}


.player-card .player-name,
.player-card .player-name a {
  color:var(--sting-yellow) !important;
}


/* Grad year white */
.player-grad {
  color:#ffffff !important;
}

/* Strong Grad Year color override */
.player-card .player-grad,
.player-section .player-card .player-grad,
.page-wrap .player-card .player-grad,
.archive-grid .player-card .player-grad,
.player-grid .player-card .player-grad,
div.player-grad {
  color:#ffffff !important;
}


/* Clickable player cards */
.player-card-link {
  display:block;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}

.player-card-link:hover {
  transform:translateY(-3px);
  border-color:var(--sting-yellow);
  box-shadow:0 8px 24px rgba(255,212,0,.22);
}

.player-card-link:hover .player-name {
  color:#ffffff !important;
}


/* Player permalink card fix */
.player-card-link,
.player-card-link:visited {
  display:block;
  color:inherit;
  text-decoration:none !important;
}

.player-card-link:hover {
  transform:translateY(-3px);
  border-color:var(--sting-yellow);
  box-shadow:0 8px 24px rgba(255,212,0,.22);
}


/* Individual Player Pages */
.player-single-page {
  background:#000;
  color:#fff;
  min-height:500px;
}

.player-profile-hero {
  display:grid;
  grid-template-columns:360px 1fr;
  gap:40px;
  align-items:center;
  padding:60px 6vw;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.72)),
    radial-gradient(circle at right center, rgba(255,212,0,.2), transparent 35%);
}

.player-profile-photo {
  background:#111;
  border:3px solid var(--sting-yellow);
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.player-profile-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.player-profile-label {
  color:var(--sting-yellow);
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:2px;
  margin-bottom:10px;
}

.player-profile-info h1 {
  font-size:58px;
  line-height:1;
  margin:0 0 20px;
  text-transform:uppercase;
  font-weight:1000;
}

.player-profile-info h1 span {
  color:var(--sting-yellow);
  margin-right:10px;
}

.player-profile-meta {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  font-size:18px;
}

.player-profile-meta div {
  background:#111;
  border:1px solid #333;
  padding:12px 16px;
}

.player-profile-meta strong {
  color:var(--sting-yellow);
}

.player-profile-content {
  background:#fff;
  color:#111;
  padding:45px 6vw;
  font-size:18px;
  line-height:1.7;
}

@media (max-width:800px) {
  .player-profile-hero {
    grid-template-columns:1fr;
  }

  .player-profile-info h1 {
    font-size:38px;
  }
}


.footer-shortcode-area {
  width:100%;
}

.footer-shortcode-area a {
  color:#fff;
}

.footer-shortcode-area img {
  max-width:100%;
  height:auto;
}


.footer-social-links {
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
}

.footer-social-links a {
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--sting-yellow);
  color:#000 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  text-decoration:none;
}

.footer-social-links a:hover {
  background:#fff;
  color:#000 !important;
}

.footer-shortcode-area {
  margin-top:12px;
}


/* Mobile footer social fix */
@media (max-width: 768px) {

  .footer-social-links {
    display:flex !important;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    width:100%;
    margin-top:20px;
    margin-bottom:10px;
  }

  .footer-social-links a {
    width:40px;
    height:40px;
    font-size:18px;
  }

  .footer-grid {
    display:flex !important;
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .footer-grid > div {
    width:100%;
    margin-bottom:20px;
  }
}


/* Always show footer social links at the bottom */
.footer-social-bottom {
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:22px auto 10px;
}

.footer-social-bottom .footer-social-links {
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:14px !important;
  margin:0 auto !important;
}

.footer-social-bottom .footer-social-links a {
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--sting-yellow);
  color:#000 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  text-decoration:none;
}

@media (max-width: 768px) {
  .footer-social-bottom {
    display:flex !important;
    justify-content:center !important;
    text-align:center !important;
    width:100% !important;
    margin-top:24px !important;
  }

  .footer-social-bottom .footer-social-links {
    display:flex !important;
    justify-content:center !important;
    width:100% !important;
  }
}


/* Tournament display safe fix */
.tournament-clickable {
  display:block;
  text-decoration:none;
  color:inherit;
}

.tournament-clickable:hover .tournament-row {
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.tournament-row {
  grid-template-columns:75px 75px 1fr 70px !important;
  transition:all .2s ease;
}

.tournament-logo {
  width:75px;
  height:62px;
  background:#fff;
  border:2px solid #000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px;
  overflow:hidden;
}

.tournament-logo img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.tournament-logo-placeholder {
  font-size:11px;
  font-weight:900;
  color:#000;
}

@media (max-width:600px) {
  .tournament-row {
    grid-template-columns:60px 60px 1fr !important;
  }

  .tournament-age {
    grid-column:1 / -1;
  }

  .tournament-logo {
    width:60px;
    height:55px;
  }
}


/* Tournament safe display */
.tournament-clickable {
  display:block;
  text-decoration:none;
  color:inherit;
}

.tournament-row {
  grid-template-columns:75px 75px 1fr 70px !important;
}

.tournament-logo {
  width:75px;
  height:62px;
  background:#fff;
  border:2px solid #000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px;
  overflow:hidden;
}

.tournament-logo img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.tournament-logo-placeholder {
  color:#000;
  font-size:11px;
  font-weight:900;
}

@media (max-width:600px) {
  .tournament-row {
    grid-template-columns:60px 60px 1fr !important;
  }
  .tournament-age {
    grid-column:1 / -1;
  }
}


/* Tournament homepage layout alignment fix */
.tournament-list {
  width:100%;
}

.tournament-row {
  display:grid !important;
  grid-template-columns:75px 75px minmax(0, 1fr) 70px !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
}

.tournament-date,
.tournament-logo,
.tournament-age {
  flex:0 0 auto !important;
}

.tournament-date {
  width:75px !important;
  min-height:62px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
}

.tournament-logo {
  width:75px !important;
  height:62px !important;
  margin:0 !important;
}

.tournament-logo img {
  display:block !important;
  margin:0 auto !important;
}

.tournament-info {
  min-width:0 !important;
}

.tournament-age {
  width:70px !important;
}

@media (max-width:600px) {
  .tournament-row {
    grid-template-columns:60px 60px minmax(0, 1fr) !important;
    gap:8px !important;
  }

  .tournament-date {
    width:60px !important;
    min-height:55px !important;
  }

  .tournament-logo {
    width:60px !important;
    height:55px !important;
  }

  .tournament-age {
    width:auto !important;
    grid-column:1 / -1 !important;
  }
}
