/* FutbolTrainingHub.com - Elite Athletic Pitch & Bento Design System */
:root {
  --bg-pitch: #060a0f;
  --bg-card: #0d1522;
  --bg-card-elevated: #131e31;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --pitch-green: #00e676;
  --pitch-green-glow: rgba(0, 230, 118, 0.25);
  --tactical-blue: #38bdf8;
  --tactical-blue-glow: rgba(56, 189, 248, 0.2);
  --amber-warning: #fbbf24;
  --crimson-press: #f43f5e;
  --border-line: #1e293b;
  --border-glow: rgba(0, 230, 118, 0.4);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-pitch);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation Bar */
header {
  border-bottom: 1px solid var(--border-line);
  background: rgba(6, 10, 15, 0.94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-icon {
  background: linear-gradient(135deg, #00e676, #059669);
  color: #060a0f;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--pitch-green);
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pitch-green);
  box-shadow: 0 0 8px var(--pitch-green);
}
.lang-switch {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-card);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-line);
  font-size: 0.85rem;
  font-weight: 800;
}
.lang-btn {
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.lang-btn.active {
  background: var(--pitch-green);
  color: #060a0f;
}

/* Ad Slots */
.adsense-leaderboard {
  min-height: 90px;
  margin: 1.5rem auto;
  max-width: 970px;
  background: rgba(13, 21, 34, 0.5);
  border: 1px dashed var(--border-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.adsense-infeed {
  min-height: 250px;
  margin: 3.5rem 0;
  background: rgba(13, 21, 34, 0.5);
  border: 1px dashed var(--border-line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Page Hero */
.page-hero {
  padding: 3.5rem 0 2.5rem;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--pitch-green); }
.breadcrumbs span { color: #475569; margin: 0 0.4rem; }
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--pitch-green-glow);
  color: var(--pitch-green);
  border: 1px solid var(--border-glow);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-hero h1 span {
  color: var(--pitch-green);
  background: linear-gradient(135deg, #a7f3d0, #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 860px;
  line-height: 1.7;
}

/* Interactive Tabs */
.tab-container { margin: 2rem 0; }
.tab-nav {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-line);
}
.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  color: var(--text-muted);
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  background: var(--bg-card-elevated);
  color: #fff;
  border-color: #334155;
}
.tab-btn.active {
  background: linear-gradient(135deg, #00e676, #059669);
  color: #060a0f;
  border-color: #00e676;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.35);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.bento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.bento-icon {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bento-card h3 {
  font-size: 1.35rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.metric-box {
  background: #060a0f;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 0.85rem 0.65rem;
  text-align: center;
}
.metric-label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.metric-value {
  display: block;
  font-size: 1.15rem;
  color: var(--pitch-green);
  font-weight: 900;
  margin-top: 0.25rem;
}

/* Callouts & Bullet lists */
.pro-callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--tactical-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.pro-callout.green {
  background: rgba(0, 230, 118, 0.08);
  border-left: 4px solid var(--pitch-green);
}
.bullet-list { list-style: none; margin: 1rem 0; }
.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.bullet-list li::before {
  content: "•";
  color: var(--pitch-green);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Drill Blueprint Card */
.drill-blueprint-card {
  background: var(--bg-card-elevated);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 18px;
  padding: 2.25rem;
  margin: 2.5rem 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.drill-blueprint-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.pitch-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
.pitch-svg { width: 100%; height: auto; display: block; }

/* Video Frame */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  margin: 2rem 0;
  border: 1px solid var(--border-line);
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- BLOG POSTS CARDS GRID (3 COLUMNS AT THE BOTTOM) --- */
.section-posts-wrapper {
  margin: 4.5rem 0 2rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-line);
}
.section-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-posts-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-posts-header h2 span {
  color: var(--pitch-green);
}
.section-posts-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pitch-green), var(--tactical-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 230, 118, 0.15);
}
.post-card:hover::before {
  opacity: 1;
}

.post-card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.post-tag {
  background: rgba(0, 230, 118, 0.12);
  color: var(--pitch-green);
  border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-read-time {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.post-card-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}
.post-card:hover .post-card-title {
  color: var(--pitch-green);
}

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pitch-green);
}
.post-card-footer span.arrow {
  transition: transform 0.2s ease;
}
.post-card:hover .post-card-footer span.arrow {
  transform: translateX(4px);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-line);
  background: #04060a;
  padding: 4.5rem 0 2.5rem;
  color: var(--text-muted);
  margin-top: 5rem;
}
.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-col h5 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links li a { color: var(--text-muted); transition: color 0.2s; }
.footer-links li a:hover { color: var(--pitch-green); }
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 960px) {
  .col-8, .col-6, .col-4 { grid-column: span 12; }
  .drill-blueprint-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-columns { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
}

/* Interactive Tactical Board & Print Styles */
.tactical-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #060a0f;
  border: 1px solid var(--border-line);
  border-radius: 12px;
  align-items: center;
}
.tactical-btn {
  background: var(--bg-card-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-line);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tactical-btn:hover, .tactical-btn.active {
  border-color: var(--pitch-green);
  color: var(--pitch-green);
}
.tactical-btn.primary {
  background: linear-gradient(135deg, #00e676, #059669);
  color: #060a0f;
  border-color: #00e676;
}

@media print {
  header, footer, .adsense-leaderboard, .adsense-infeed, #fth-cookie-banner, .section-posts-wrapper, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  .bento-card, .drill-blueprint-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    page-break-inside: avoid;
  }
  h1, h2, h3, p, li, td, th {
    color: #0f172a !important;
  }
}

