/* =============================================
   GOSU.BLOG — FRONT PAGE CSS
   Clases del front-page.php
   ============================================= */

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

:root {
  --rojo: #E8001C;
  --azul: #0A2463;
  --azul-medio: #1A4A8A;
  --negro: #0D0D0D;
  --gris-bg: #F2F4F7;
  --blanco: #FFFFFF;
  --texto: #1a1a1a;
  --texto-suave: #666;
}

body { background: var(--gris-bg); font-family: 'Inter','Segoe UI',Arial,sans-serif; color: var(--texto); }

/* ── HEADER ── */
.gosu-header {
  background: var(--blanco);
  border-bottom: 3px solid var(--rojo);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gosu-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 16px; height: 56px;
}
.gosu-logo {
  font-size: 24px; font-weight: 900; color: var(--azul) !important;
  text-decoration: none; letter-spacing: -1px; flex-shrink: 0;
}
.gosu-logo span { color: var(--rojo); }
.gosu-nav { display: flex; gap: 4px; flex: 1; }
.gosu-nav a {
  color: var(--texto) !important; text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 6px 12px;
  border-radius: 4px; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.3px;
}
.gosu-nav a:hover { background: var(--rojo); color: var(--blanco) !important; }
.gosu-search-btn {
  background: none; border: none; font-size: 18px; cursor: pointer;
  padding: 6px; border-radius: 4px; transition: background 0.2s;
}
.gosu-search-btn:hover { background: var(--gris-bg); }

/* ── TICKER ── */
.gosu-ticker {
  background: var(--azul); color: var(--blanco);
  height: 36px; display: flex; align-items: center; overflow: hidden;
}
.gosu-ticker-inner {
  width: 100%; display: flex; align-items: center; height: 100%;
}
.gosu-ticker-label {
  background: var(--rojo); color: var(--blanco);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 0 14px;
  flex-shrink: 0; height: 100%;
  display: flex; align-items: center;
  z-index: 2;
}
.gosu-ticker-track {
  flex: 1; overflow: hidden; height: 100%;
  display: flex; align-items: center;
}
.gosu-ticker-items {
  display: flex; gap: 60px;
  animation: ticker-scroll 50s linear infinite;
  white-space: nowrap;
}
.gosu-ticker-items a {
  color: var(--blanco) !important; text-decoration: none;
  font-size: 12px; font-weight: 500; flex-shrink: 0;
}
.gosu-ticker-items a:hover { color: #ffd700 !important; }
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── HERO ── */
.gosu-hero { background: var(--blanco); border-bottom: 1px solid #e5e7eb; }
.gosu-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 20px 16px;
  display: grid; grid-template-columns: 1fr 320px; gap: 20px;
}
.gosu-hero-main { position: relative; border-radius: 8px; overflow: hidden; }
.gosu-hero-img { width: 100%; height: 420px; object-fit: cover; display: block; }
.gosu-hero-img-ph {
  width: 100%; height: 420px; background: var(--azul);
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.gosu-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,36,99,0.95) 0%, rgba(10,36,99,0.5) 60%, transparent 100%);
  padding: 32px 24px 20px;
}
.gosu-hero-title {
  color: var(--blanco) !important; font-size: 26px; font-weight: 800;
  line-height: 1.3; margin: 8px 0 6px; text-decoration: none;
}
.gosu-hero-main a { text-decoration: none; }
.gosu-hero-meta { color: rgba(255,255,255,0.7); font-size: 12px; }

.gosu-hero-side { display: flex; flex-direction: column; gap: 1px; background: #e5e7eb; border-radius: 8px; overflow: hidden; }
.gosu-hero-side-item {
  background: var(--blanco); padding: 14px 16px;
  text-decoration: none; display: block; transition: background 0.2s;
  flex: 1;
}
.gosu-hero-side-item:hover { background: #f8f9fa; }
.gosu-hero-side-title {
  color: var(--texto) !important; font-size: 14px; font-weight: 700;
  line-height: 1.4; margin: 6px 0 4px;
}
.gosu-hero-side-meta { color: var(--texto-suave); font-size: 11px; }

/* ── BADGES ── */
.gosu-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 7px; border-radius: 2px;
}
.badge-vj { background: var(--rojo); color: var(--blanco); }
.badge-es { background: var(--azul); color: var(--blanco); }
.badge-def { background: #6b7280; color: var(--blanco); }

/* ── MAIN CONTAINER ── */
.gosu-main { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }

/* ── SECTION HEAD ── */
.gosu-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--rojo);
}
.gosu-section-title { font-size: 15px; font-weight: 800; color: var(--azul); text-transform: uppercase; letter-spacing: 0.5px; }
.gosu-section-link { font-size: 12px; color: var(--rojo) !important; text-decoration: none; font-weight: 600; }
.gosu-section-link:hover { text-decoration: underline; }

/* ── GRID DE CARDS ── */
.gosu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 32px;
}
.gosu-card { background: var(--blanco); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.07); transition: box-shadow 0.2s, transform 0.2s; }
.gosu-card:hover { box-shadow: 0 4px 16px rgba(232,0,28,0.12); transform: translateY(-2px); }
.gosu-card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.gosu-card-img-ph { width: 100%; height: 160px; background: var(--azul); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.gosu-card-body { padding: 12px 14px 14px; }
.gosu-card-title {
  display: block; color: var(--texto) !important; text-decoration: none;
  font-size: 14px; font-weight: 700; line-height: 1.4; margin: 6px 0 6px;
  transition: color 0.2s;
}
.gosu-card-title:hover { color: var(--rojo) !important; }
.gosu-card-excerpt { font-size: 12px; color: var(--texto-suave); line-height: 1.5; margin-bottom: 8px; }
.gosu-card-meta { font-size: 11px; color: #9ca3af; }

/* ── TWO COL ── */
.gosu-two-col { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-bottom: 32px; }

/* ── LIST ITEMS ── */
.gosu-list-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f0f0f0; text-decoration: none;
  transition: background 0.2s; align-items: flex-start;
}
.gosu-list-item:last-child { border-bottom: none; }
.gosu-list-img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.gosu-list-img-ph { width: 80px; height: 60px; background: var(--azul); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.gosu-list-title { font-size: 13px; font-weight: 700; color: var(--texto) !important; line-height: 1.4; margin: 4px 0 4px; }
.gosu-list-item:hover .gosu-list-title { color: var(--rojo) !important; }
.gosu-list-meta { font-size: 11px; color: #9ca3af; }

/* ── WIDGETS SIDEBAR ── */
.gosu-widget { background: var(--blanco); border-radius: 8px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.gosu-widget-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--blanco); background: var(--azul); margin: -16px -16px 14px; padding: 10px 16px; border-radius: 8px 8px 0 0; }
.gosu-popular-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; }
.gosu-popular-item:last-child { border-bottom: none; }
.gosu-popular-num { font-size: 20px; font-weight: 900; color: var(--rojo); flex-shrink: 0; line-height: 1; min-width: 24px; }
.gosu-popular-title { font-size: 12px; font-weight: 600; color: var(--texto) !important; line-height: 1.4; }
.gosu-popular-item:hover .gosu-popular-title { color: var(--rojo) !important; }
.gosu-widget ul { list-style: none; }
.gosu-widget ul li { padding: 5px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px; }
.gosu-widget ul li:last-child { border-bottom: none; }
.gosu-widget ul li a { color: var(--texto) !important; text-decoration: none; }
.gosu-widget ul li a:hover { color: var(--rojo) !important; }

/* ── ESPORTS SECTION ── */
.gosu-esports { background: var(--azul); padding: 24px 0; margin-top: 8px; }
.gosu-esports .gosu-section-title { color: var(--blanco) !important; }
.gosu-esports-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.gosu-esports-card { background: rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; text-decoration: none; display: block; transition: background 0.2s; }
.gosu-esports-card:hover { background: rgba(255,255,255,0.15); }
.gosu-esports-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.gosu-esports-ph { width: 100%; height: 120px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.gosu-esports-body { padding: 10px 12px 12px; }
.gosu-esports-title { font-size: 13px; font-weight: 700; color: var(--blanco) !important; line-height: 1.4; margin-bottom: 4px; }
.gosu-esports-meta { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ── FOOTER ── */
.gosu-footer { background: #0D0D0D; color: #aaa; border-top: 3px solid var(--rojo); }
.gosu-footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.gosu-footer-logo { font-size: 22px; font-weight: 900; color: var(--blanco); margin-bottom: 8px; letter-spacing: -1px; }
.gosu-footer-logo span { color: var(--rojo); }
.gosu-footer-desc { font-size: 12px; line-height: 1.6; color: #777; }
.gosu-footer-col-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--blanco); margin-bottom: 12px; }
.gosu-footer-links { list-style: none; }
.gosu-footer-links li { margin-bottom: 6px; }
.gosu-footer-links a { color: #777 !important; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.gosu-footer-links a:hover { color: var(--rojo) !important; }
.gosu-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 16px; border-top: 1px solid #222; display: flex; justify-content: space-between; font-size: 12px; color: #555; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .gosu-hero-inner { grid-template-columns: 1fr; }
  .gosu-hero-side { display: none; }
  .gosu-grid { grid-template-columns: repeat(2,1fr); }
  .gosu-two-col { grid-template-columns: 1fr; }
  .gosu-esports-grid { grid-template-columns: repeat(2,1fr); }
  .gosu-footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .gosu-grid { grid-template-columns: 1fr; }
  .gosu-esports-grid { grid-template-columns: 1fr; }
  .gosu-hero-img { height: 260px; }
  .gosu-hero-img-ph { height: 260px; }
}

/* ── PÁGINAS INTERNAS (single, category, archive) ── */
.gosu-content-wrap {
  max-width: 1200px; margin: 0 auto; padding: 24px 16px;
  display: grid; grid-template-columns: 1fr 300px; gap: 32px;
}
.gosu-content-wrap.full-width { grid-template-columns: 1fr; }

/* Single post */
.gosu-single { background: var(--blanco); border-radius: 8px; padding: 28px 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.gosu-single-cat { margin-bottom: 12px; }
.gosu-single h1 { font-size: 28px; font-weight: 800; color: var(--azul); line-height: 1.3; margin-bottom: 12px; }
.gosu-single-meta { font-size: 12px; color: var(--texto-suave); margin-bottom: 20px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid #f0f0f0; padding-bottom: 16px; }
.gosu-single-img { width: 100%; border-radius: 8px; margin-bottom: 24px; max-height: 460px; object-fit: cover; }
.gosu-single-body { font-size: 16px; line-height: 1.8; color: var(--texto); }
.gosu-single-body h2 { font-size: 20px; font-weight: 800; color: var(--azul); margin: 28px 0 12px; border-left: 4px solid var(--rojo); padding-left: 12px; }
.gosu-single-body h3 { font-size: 17px; font-weight: 700; color: var(--texto); margin: 20px 0 8px; }
.gosu-single-body p { margin-bottom: 16px; }
.gosu-single-body a { color: var(--rojo); }
.gosu-single-body img { max-width: 100%; border-radius: 6px; margin: 12px 0; }
.gosu-single-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.gosu-single-body th { background: var(--azul); color: var(--blanco); padding: 10px 12px; text-align: left; }
.gosu-single-body td { padding: 9px 12px; border-bottom: 1px solid #f0f0f0; }
.gosu-single-body tr:hover td { background: #fafafa; }
.gosu-single-body blockquote { border-left: 4px solid var(--rojo); background: #fff5f5; padding: 12px 20px; margin: 20px 0; border-radius: 0 6px 6px 0; color: var(--azul); font-style: italic; }

/* Source link */
.gosu-source { margin-top: 24px; padding: 14px 18px; background: var(--gris-bg); border-radius: 6px; font-size: 13px; border-left: 3px solid var(--azul); }
.gosu-source a { color: var(--azul); font-weight: 600; }

/* Category/Archive page */
.gosu-archive-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.gosu-archive-title { font-size: 22px; font-weight: 800; color: var(--azul); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--rojo); }

/* Sidebar interna */
.gosu-sidebar { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 900px) {
  .gosu-content-wrap { grid-template-columns: 1fr; }
  .gosu-single { padding: 20px 16px; }
  .gosu-single h1 { font-size: 22px; }
  .gosu-archive-grid { grid-template-columns: 1fr; }
}

/* ── BUSCADOR ── */
.gosu-search-wrap { position: relative; }
.gosu-search-form {
  display: none; position: absolute; right: 0; top: 44px;
  background: var(--blanco); border: 2px solid var(--azul);
  border-radius: 6px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 999; width: 280px;
}
.gosu-search-form.open { display: flex; }
.gosu-search-form input {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-size: 14px; color: var(--texto);
}
.gosu-search-form button {
  background: var(--rojo); color: var(--blanco); border: none;
  padding: 10px 16px; cursor: pointer; font-size: 16px; font-weight: 700;
  transition: background 0.2s;
}
.gosu-search-form button:hover { background: var(--rojo-dark); }

/* ── FRANJA AZUL (sin ticker) ── */
.gosu-ticker { background: var(--azul); height: 4px; }
