/*
Theme Name: Global Sports
Theme URI: https://globalsports.network
Author: Global Sports Team
Author URI: https://globalsports.network
Description: Modern athletic network WordPress theme connecting elite athletes, coaches, scouts, and trainers worldwide. Features verified combine telemetry, interactive video mastery modules, responsive device mockups, and performance design system tokens.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: global-sports
Tags: sports, athletics, coaching, portfolio, responsive-layout, grid-layout, custom-menu, featured-images, translation-ready, full-width-template
*/

/* ============================================================
   IMPORT DESIGN SYSTEM STYLES
   ============================================================ */
@import url('styles.css');

/* ============================================================
   WORDPRESS CORE ALIGNMENTS & UTILITIES
   ============================================================ */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: var(--surface-container-low, #e7f7ef);
  border: 1px solid var(--outline-variant, #a6b7af);
  max-width: 100%;
  padding: 8px;
  text-align: center;
  border-radius: var(--radius-md, 12px);
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 100%;
  padding: 0;
  width: auto;
  border-radius: var(--radius-sm, 8px);
}

.wp-caption p.wp-caption-text {
  font-size: 13px;
  line-height: 18px;
  margin: 6px 0 2px;
  color: var(--on-surface-variant, #3e4a44);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--surface-container-lowest, #ffffff);
  border-radius: 4px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--primary, #00694a);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 6px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 7px;
  width: auto;
  z-index: 100000;
}

/* ============================================================
   WORDPRESS ADMIN BAR ADAPTATION
   ============================================================ */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* ============================================================
   HEADER & NAVIGATION INTEGRATION
   ============================================================ */
.site-header nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg, 24px);
}

.site-header nav.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-lg, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav.desktop-nav li,
.mobile-nav-links li,
.site-footer .footer-nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav.desktop-nav a {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--on-surface-variant, #3e4a44);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  padding: 6px 12px;
  border-radius: var(--radius-full, 9999px);
  display: inline-block;
}

.site-header nav.desktop-nav a:hover {
  color: var(--primary, #00694a);
}

.site-header nav.desktop-nav a.active,
.site-header nav.desktop-nav .current-menu-item > a,
.site-header nav.desktop-nav .current_page_item > a {
  color: var(--primary, #00694a);
  font-weight: 700;
  background: var(--surface-container-low, #e7f7ef);
}

/* Custom logo compatibility */
.site-header .site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .custom-logo-link,
.site-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.site-header .custom-logo,
.site-header .logo img {
  height: 56px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.site-header .custom-logo-link:hover .custom-logo,
.site-header .logo:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .site-header .custom-logo,
  .site-header .logo img {
    height: 48px;
    max-height: 50px;
  }
}

/* ============================================================
   MOBILE NAVIGATION DRAWER & TOGGLE
   ============================================================ */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--on-surface, #141d18);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background: var(--surface-container-low, #e7f7ef);
}

.mobile-nav-drawer {
  display: none;
}

@media (max-width: 1024px) {
  .site-header nav.desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--surface-container-lowest, #ffffff);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--surface-container, #e1f2e9);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 49;
  }

  body.admin-bar .mobile-nav-drawer {
    top: calc(80px + 32px);
  }

  @media screen and (max-width: 782px) {
    body.admin-bar .mobile-nav-drawer {
      top: calc(80px + 46px);
    }
  }

  .mobile-nav-drawer.is-open {
    max-height: 480px;
    overflow-y: auto;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: var(--space-md, 16px) var(--margin-mobile, 16px) var(--space-lg, 24px);
    gap: 8px;
  }

  .mobile-nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-md, 12px);
    color: var(--on-surface, #141d18);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a.active,
  .mobile-nav-links .current-menu-item > a {
    background: var(--surface-container-low, #e7f7ef);
    color: var(--primary, #00694a);
    font-weight: 700;
  }
}

/* ============================================================
   PAGE CONTENT & BLOG FALLBACK STYLES
   ============================================================ */
.page-default-content {
  padding-top: calc(80px + var(--space-xl, 32px));
  padding-bottom: var(--space-2xl, 64px);
  background: var(--surface, #edfdf4);
  min-height: 80vh;
}

.page-default-card {
  background: var(--surface-container-lowest, #ffffff);
  border-radius: var(--radius-xl, 24px);
  padding: var(--space-xl, 32px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}

@media (min-width: 768px) {
  .page-default-card {
    padding: var(--space-2xl, 48px);
  }
}

.page-default-card h1,
.page-default-card h2,
.page-default-card h3 {
  color: var(--on-surface, #141d18);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.page-default-card p {
  line-height: 1.75;
  color: var(--on-surface-variant, #3e4a44);
  margin-bottom: 1.25em;
}

.page-default-card ul,
.page-default-card ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  color: var(--on-surface-variant, #3e4a44);
  line-height: 1.7;
}

/* Blog grid styling */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg, 24px);
  margin-top: var(--space-lg, 24px);
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  background: var(--surface-container-lowest, #ffffff);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

.post-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card-body {
  padding: var(--space-md, 20px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}

.post-card-title a {
  color: var(--on-surface, #141d18);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--primary, #00694a);
}

.post-card-excerpt {
  color: var(--on-surface-variant, #3e4a44);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.post-card-meta {
  font-size: 12px;
  color: var(--tertiary, #4f5f5a);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   HERO KEYFRAME ANIMATIONS (Variant 1 - Train With Science)
   ============================================================ */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(7px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.04); }
}
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}
.animate-float {
  animation: float-slow 4.5s ease-in-out infinite;
}
.animate-float-reverse {
  animation: float-reverse 5.2s ease-in-out infinite;
}
.animate-pulse-glow {
  animation: pulse-glow 6s ease-in-out infinite;
}

