/*
Theme Name:  Rivals
Theme URI:   https://example.com/rivals-theme
Description: Tema deportivo editorial de alto contraste. Ideal para sitios de estadísticas, comparativas y contenido deportivo. Paleta naranja quemado + verde lima sobre crema.
Version:     1.0.0
Author:      Tu Nombre
Author URI:  https://example.com
Text Domain: rivals
Tags: sports, blog, custom-colors, custom-logo, featured-images, full-width-template, two-columns, block-styles
*/

/* ─────────────────────────────────────────────────────
   VARIABLES DE DISEÑO
───────────────────────────────────────────────────── */
:root {
    --ink:        #0D0D0D;
    --cream:      #F5F0E8;
    --cream-dark: #EDE7D9;
    --orange:     #FF4D00;
    --orange-dk:  #CC3D00;
    --lime:       #AAFF00;
    --lime-dk:    #88CC00;
    --gold:       #FFB800;
    --white:      #FFFFFF;
    --ink-60:     rgba(13,13,13,.6);
    --ink-20:     rgba(13,13,13,.12);

    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-head:    'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:    'Barlow', 'Helvetica Neue', sans-serif;

    --radius:   4px;
    --container: 1200px;
    --gap:       clamp(16px, 3vw, 32px);
}

/* ─────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p   { margin-bottom: 1.2em; max-width: 72ch; }
ul, ol { margin: 0 0 1em 1.4em; }

/* ─────────────────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gap);
}
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main  { flex: 1; }

/* ─────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────── */
.site-header {
    background: var(--ink);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--orange);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.site-branding a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    letter-spacing: .06em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-branding .brand-icon { color: var(--orange); }
.site-branding .brand-dot  { color: var(--lime); }

/* Nav */
.main-nav ul {
    list-style: none;
    margin: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}
.main-nav a {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.7);
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: color .15s, background .15s;
    text-decoration: none;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--ink);
    background: var(--lime);
    text-decoration: none;
}
.nav-cta a {
    background: var(--orange) !important;
    color: var(--white) !important;
    font-weight: 800;
}
.nav-cta a:hover { background: var(--orange-dk) !important; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,.3);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: .8rem;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────
   TICKER
───────────────────────────────────────────────────── */
.news-ticker {
    background: var(--orange);
    color: var(--white);
    padding: 7px 0;
    overflow: hidden;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 30s linear infinite;
}
.ticker-track span { padding: 0 40px; white-space: nowrap; }
.ticker-track span::after { content: '◆'; margin-left: 40px; opacity: .6; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────────────────────────────────────────────
   HERO (front page)
───────────────────────────────────────────────────── */
.hero-section {
    background: var(--ink);
    color: var(--white);
    padding: clamp(40px, 8vw, 100px) 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: 'RIVALS';
    font-family: var(--font-display);
    font-size: clamp(120px, 25vw, 280px);
    color: rgba(255,255,255,.03);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: .04em;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 320px;
}
.hero-player {
    padding: clamp(24px, 4vw, 48px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.hero-player::before {
    content: '';
    position: absolute; inset: 0;
    opacity: .08;
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 8px,
        currentColor 8px, currentColor 9px
    );
}
.hero-p1 { border-right: 3px solid var(--ink); }
.hero-p1 .hero-accent { color: var(--orange); }
.hero-p2 .hero-accent { color: var(--lime); }

.hero-number {
    font-family: var(--font-display);
    font-size: clamp(80px, 18vw, 180px);
    line-height: 1;
    opacity: .12;
    position: absolute;
    top: 0; right: -10px;
    color: var(--white);
}
.hero-player-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: .9;
    color: var(--white);
    position: relative;
    z-index: 2;
}
.hero-accent {
    display: block;
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.hero-club-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    border: 2px solid;
    border-radius: 2px;
    position: relative;
    z-index: 2;
}
.hero-p1 .hero-club-tag { border-color: var(--orange); color: var(--orange); }
.hero-p2 .hero-club-tag { border-color: var(--lime); color: var(--lime); }

/* ─────────────────────────────────────────────────────
   SECTION LABELS
───────────────────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 20px; height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

/* ─────────────────────────────────────────────────────
   STAT CARDS SECTION
───────────────────────────────────────────────────── */
.stats-showcase {
    padding: clamp(40px, 6vw, 80px) 0;
    background: var(--cream);
}
.section-heading { margin-bottom: clamp(24px, 4vw, 48px); }

.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.stat-card {
    background: var(--ink);
    color: var(--white);
    padding: 20px 18px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: transform .15s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card-accent {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
}
.stat-card.p1 .stat-card-accent { background: var(--orange); }
.stat-card.p2 .stat-card-accent { background: var(--lime); }
.stat-card-label {
    font-family: var(--font-head);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 8px;
}
.stat-card-value {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--white);
}
.stat-card.p1 .stat-card-value { color: var(--orange); }
.stat-card.p2 .stat-card-value { color: var(--lime); }
.stat-card-player {
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ─────────────────────────────────────────────────────
   POSTS GRID
───────────────────────────────────────────────────── */
.posts-section {
    padding: clamp(32px, 5vw, 64px) 0;
    border-top: 1px solid var(--ink-20);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap);
}
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--ink-20);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.post-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 var(--orange);
}
.post-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--cream-dark);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 18px 20px 22px; }
.post-card-cat {
    font-family: var(--font-head);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}
.post-card-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 10px;
}
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--orange); }
.post-card-meta {
    font-size: .72rem;
    color: var(--ink-60);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ─────────────────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────────────────── */
.post-header {
    background: var(--ink);
    color: var(--white);
    padding: clamp(32px, 6vw, 72px) 0 0;
}
.post-header .post-cat {
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.post-header h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    max-width: 16ch;
    margin-bottom: 20px;
}
.post-header-meta {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    display: flex;
    gap: 16px;
    padding-bottom: clamp(20px, 4vw, 40px);
    border-bottom: 3px solid var(--orange);
}
.post-content-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: clamp(32px, 5vw, 64px);
    padding: clamp(32px, 5vw, 56px) 0;
    align-items: start;
}
.post-content {
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.75;
}
.post-content h2, .post-content h3 {
    margin: 1.8em 0 .7em;
    color: var(--ink);
}
.post-content h2::after {
    content: '';
    display: block;
    width: 40px; height: 3px;
    background: var(--orange);
    margin-top: 8px;
    border-radius: 2px;
}
.post-content blockquote {
    border-left: 4px solid var(--orange);
    padding: 16px 20px;
    background: rgba(255,77,0,.05);
    margin: 1.5em 0;
    font-style: italic;
    font-size: 1.1em;
}
.post-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

/* Sidebar */
.post-sidebar { position: sticky; top: 80px; }
.sidebar-widget {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.sidebar-widget-title {
    background: var(--orange);
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 10px 16px;
    color: var(--white);
}
.sidebar-widget-body { padding: 16px; }
.sidebar-link {
    display: block;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    transition: color .12s;
}
.sidebar-link:hover { color: var(--lime); text-decoration: none; }

/* ─────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}
.pagination a,
.pagination span {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.pagination a {
    border: 2px solid var(--ink-20);
    color: var(--ink);
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.pagination a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.pagination .current {
    background: var(--ink);
    color: var(--white);
    border: 2px solid var(--ink);
}

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.6);
    padding: clamp(32px, 6vw, 64px) 0 24px;
    border-top: 4px solid var(--orange);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    margin-bottom: 40px;
}
.footer-brand-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--white);
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.footer-brand-name span { color: var(--orange); }
.footer-tagline { font-size: .82rem; line-height: 1.5; max-width: 28ch; }
.footer-col-title {
    font-family: var(--font-head);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .84rem;
    transition: color .12s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom a { color: var(--orange); }

/* ─────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 3px 3px 0 var(--orange-dk); }
.btn-orange:hover { box-shadow: 4px 4px 0 var(--orange-dk); color: var(--white); }
.btn-lime   { background: var(--lime); color: var(--ink); box-shadow: 3px 3px 0 var(--lime-dk); }
.btn-lime:hover { box-shadow: 4px 4px 0 var(--lime-dk); color: var(--ink); }
.btn-outline { background: transparent; border: 2.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ─────────────────────────────────────────────────────
   COMMENTS
───────────────────────────────────────────────────── */
.comments-area { padding: 40px 0; border-top: 1px solid var(--ink-20); }
.comments-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.comment-body {
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--ink-20);
    margin-bottom: 16px;
}
.comment-author { font-weight: 700; font-size: .88rem; color: var(--ink); }
.comment-metadata { font-size: .72rem; color: var(--ink-60); margin: 4px 0 10px; }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--ink-20);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .9rem;
    background: var(--white);
    margin-bottom: 12px;
    transition: border-color .15s;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}
.comment-form input[type="submit"] {
    width: auto;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    border-color: var(--orange);
}
.comment-form input[type="submit"]:hover { background: var(--orange-dk); }

/* ─────────────────────────────────────────────────────
   SHORTCODE WIDGET OVERRIDE (dentro del tema)
───────────────────────────────────────────────────── */
.frs-widget { margin: 0 auto 40px; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .post-content-wrap { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); padding: 12px 0; border-bottom: 2px solid var(--orange); z-index: 200; }
    .main-nav.open ul { flex-direction: column; padding: 0 var(--gap); }
    .menu-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-p1 { border-right: none; border-bottom: 3px solid var(--ink); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
