/*
Theme Name: El Pescardo GT
Theme URI: https://elpescardogt.com
Author: El Pescardo GT
Author URI: https://elpescardogt.com
Description: Portal de fútbol guatemalteco - El Pescardo GT
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pescardogt
Tags: news, sports, football, guatemala
*/

/* =============================================
   EL PESCARDO GT - ESTILOS PRINCIPALES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  --bg-primary: #08111e;
  --bg-secondary: #0a1628;
  --bg-card: #0d1f3c;
  --bg-card-hover: #0f2540;
  --border-color: #1a3050;
  --text-primary: #ffffff;
  --text-secondary: #c0d8f0;
  --text-muted: #5a7a9a;
  --accent-white: #ffffff;
  --accent-gold: #c8960c;
  --accent-red: #e24b4a;
  --accent-green: #2ecc71;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--text-secondary); text-decoration: none; }
a:hover { color: var(--text-primary); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   MUNDIAL BAR
   ============================================= */
.mundial-bar {
  background: var(--accent-gold);
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
  position: relative;
}

.mundial-bar-badge {
  background: #8a6500;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 2;
}

.mundial-bar-badge span {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.mundial-countdown {
  background: #a87800;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 12px;
  flex-shrink: 0;
  border-right: 1px solid #8a6500;
}

.cd-block { display: flex; flex-direction: column; align-items: center; }
.cd-num { font-family: var(--font-heading); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.cd-label { color: rgba(255,255,255,0.6); font-size: 8px; text-transform: uppercase; }
.cd-sep { font-family: var(--font-heading); color: #fff; font-size: 13px; font-weight: 700; opacity: 0.6; }

.mundial-grupos {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
}

.grupo-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 32px;
  border-right: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.grupo-chip-label {
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.85);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.grupo-flags span { font-size: 12px; }

/* =============================================
   HEADER / NAVBAR
   ============================================= */
#masthead {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--accent-white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
}

.site-logo img { width: 100%; height: 100%; object-fit: cover; }

.site-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.site-title a { color: var(--text-primary); }

/* Main Navigation */
#primary-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

#primary-menu li a {
  color: #aac;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  transition: all 0.2s;
}

#primary-menu li a:hover,
#primary-menu li.current-menu-item a {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

#primary-menu li.mundial-item a {
  color: var(--accent-gold);
}

.header-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-social a {
  color: #aac;
  font-size: 17px;
  transition: color 0.2s;
}

.header-social a:hover { color: #fff; }

/* Hamburger mobile */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  display: block;
}

/* =============================================
   TICKER
   ============================================= */
.news-ticker {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 20px;
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.ticker-item {
  color: #c0d0e0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-item .ticker-tag {
  color: #fff;
  font-weight: 700;
  margin-right: 5px;
  border-right: 1px solid #3a5a7a;
  padding-right: 5px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: var(--bg-card);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.hero-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  border-left: 3px solid var(--text-primary);
  padding-left: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
}

.hero-main {
  position: relative;
  background: #0a1e35;
  border-radius: 8px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 0.5px solid var(--border-color);
  cursor: pointer;
}

.hero-main:hover { border-color: #fff; }

.hero-main-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
}

.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content { position: relative; z-index: 1; }

.post-tags { display: flex; gap: 5px; margin-bottom: 8px; }

.tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-white { background: #fff; color: #0a1628; }
.tag-red { background: #e24b4a; color: #fff; }
.tag-green { background: #1a5c20; color: #7ddd88; }
.tag-gold { background: #5c4000; color: #f0c040; }
.tag-blue { background: #1a3a7a; color: #7ab0ff; }

.hero-title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.hero-meta { font-size: 10px; color: #7a9abb; margin-top: 5px; }

.hero-side { display: flex; flex-direction: column; gap: 8px; }

.side-card {
  background: #0a1e35;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  border: 0.5px solid var(--border-color);
  border-left: 3px solid #fff;
  transition: background 0.2s;
}

.side-card:hover { background: var(--bg-card-hover); }
.side-card.red { border-left-color: var(--accent-red); }
.side-card.green { border-left-color: var(--accent-green); }
.side-card.gold { border-left-color: var(--accent-gold); }

.side-card-title {
  font-family: var(--font-heading);
  color: #d0e8ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.side-card-meta { font-size: 9px; color: var(--text-muted); margin-top: 2px; }

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.site-content {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-left: 3px solid var(--text-primary);
  padding-left: 10px;
  margin-bottom: 12px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.news-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid var(--border-color);
  cursor: pointer;
  transition: border-color 0.2s;
}

.news-card:hover { border-color: #fff; }

.news-card-img {
  height: 80px;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body { padding: 8px 10px; }
.news-card-tags { display: flex; gap: 3px; margin-bottom: 5px; }

.news-card-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #d0e8ff;
  line-height: 1.3;
}

.news-card-date { font-size: 9px; color: var(--text-muted); margin-top: 3px; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: 10px; }

.widget-box {
  background: var(--bg-card);
  border-radius: 8px;
  border: 0.5px solid var(--border-color);
  overflow: hidden;
}

.widget-header {
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
}

.widget-title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.match-item {
  padding: 7px 12px;
  border-bottom: 0.5px solid #121e2e;
}

.match-item:last-child { border-bottom: none; }

.match-league {
  font-size: 9px;
  color: #9ab;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.match-team { font-size: 10px; font-weight: 600; color: #c0d8f0; flex: 1; }
.match-team.right { text-align: right; }

.match-score {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--bg-secondary);
  padding: 2px 7px;
  border-radius: 4px;
  border: 0.5px solid var(--border-color);
}

.match-time { font-size: 9px; color: var(--text-muted); text-align: center; margin-top: 2px; }

.fichaje-item {
  padding: 7px 12px;
  border-bottom: 0.5px solid #121e2e;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.fichaje-item:last-child { border-bottom: none; }

.fichaje-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.fichaje-name { font-size: 10px; font-weight: 600; color: #c0d8f0; }
.fichaje-detail { font-size: 9px; color: var(--text-muted); margin-top: 1px; }

/* BET Widget */
.bet-widget {
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 0.5px solid var(--border-color);
  border-left: 3px solid var(--accent-gold);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.bet-logo {
  background: var(--accent-gold);
  border-radius: 5px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.bet-logo-text {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.bet-text { flex: 1; font-size: 10px; color: #7a9abb; line-height: 1.3; }

.bet-btn {
  font-size: 10px;
  color: var(--accent-gold);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* =============================================
   FOOTER
   ============================================= */
#colophon {
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent-white);
  padding: 24px 20px 16px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
}

.footer-logo img { width: 100%; height: 100%; object-fit: cover; }

.footer-logo-text {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.footer-tagline { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

.footer-social-section { text-align: right; }

.footer-siguenos {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-social-icons { display: flex; gap: 8px; justify-content: flex-end; }

.footer-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 0.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ab;
  font-size: 15px;
  transition: all 0.2s;
  text-decoration: none;
}

.footer-social-icon:hover { background: #fff; color: var(--bg-secondary); }

.footer-divider {
  border: none;
  border-top: 0.5px solid var(--border-color);
  margin: 0 0 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy { font-size: 10px; color: #3a5a7a; }

.footer-links { display: flex; gap: 14px; }

.footer-links a {
  font-size: 10px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

/* =============================================
   RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 768px) {
  .mundial-grupos { display: none; }

  #primary-menu { display: none; }
  #primary-menu.active { display: flex; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--bg-secondary); padding: 10px; border-bottom: 1px solid var(--border-color); z-index: 999; }

  .menu-toggle { display: flex; }
  .header-social { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }

  .site-content { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  .news-grid { grid-template-columns: 1fr; }

  .footer-main { flex-direction: column; gap: 16px; }
  .footer-social-section { text-align: left; }
  .footer-social-icons { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
