/*
Theme Name: Deportes Ainoticias
Theme URI: https://deportes.ainoticias.net
Author: Tu Nombre
Author URI: https://ainoticias.net
Description: Tema profesional para sitio de guía de streaming deportivo. Diseñado para monetización con Google Ad Manager. Incluye sistema de gestión de partidos sin código.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deportes-ainoticias
Tags: sports, streaming, news, monetization, custom-post-types

Deportes Ainoticias WordPress Theme, Copyright 2026
Deportes Ainoticias is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   Reset y Base
   ========================================================================== */

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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #00ff88;
    --dark-bg: #1d2327;
    --light-bg: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --card-shadow-hover: 0 10px 30px rgba(102, 126, 234, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: var(--light-bg);
    line-height: 1.6;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    font-size: 2em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-branding p {
    color: var(--text-light);
    font-size: 0.9em;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Layout Principal
   ========================================================================== */

.site-content {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.main-column {
    min-width: 0;
}

/* ==========================================================================
   Cards de Partidos
   ========================================================================== */

.partido-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    color: inherit;
}

.partido-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.partido-liga {
    background: var(--light-bg);
    padding: 6px 15px;
    border-radius: 5px;
    font-size: 0.85em;
    color: var(--text-light);
    font-weight: 600;
}

.estado-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.estado-badge.proximo {
    background: #e3f2fd;
    color: #1976d2;
}

.estado-badge.en-vivo {
    background: #ff4444;
    color: white;
    animation: pulse 2s infinite;
}

.estado-badge.finalizado {
    background: #e8f5e9;
    color: #388e3c;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.equipos {
    font-size: 1.5em;
    font-weight: bold;
    margin: 15px 0;
    color: var(--text-color);
}

.equipos span {
    color: var(--text-light);
    font-weight: normal;
    font-size: 0.9em;
}

.fecha-partido {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.btn-ver {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-ver:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ==========================================================================
   Single Partido
   ========================================================================== */

.partido-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.partido-titulo {
    font-size: 2.5em;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.partido-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Plataformas de Streaming
   ========================================================================== */

.plataformas-streaming {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: var(--card-shadow);
}

.plataformas-streaming h2 {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.plataformas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.plataforma-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 150px;
    justify-content: center;
}

.plataforma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.plataforma-nombre {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.plataforma-tipo {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.plataforma-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge-gratis {
    background: var(--accent-color);
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
}

.badge-premium {
    background: #ffd700;
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
}

.badge-calidad {
    background: rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
}

.widget h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.3em;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--primary-color);
}

.hora-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.85em;
}

/* ==========================================================================
   Anuncios
   ========================================================================== */

.ad-container {
    margin: 30px 0;
    text-align: center;
    min-height: 90px;
}

.ad-sidebar {
    margin: 20px 0;
    min-height: 250px;
}

/* ==========================================================================
   Info Legal
   ========================================================================== */

.info-legal {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.info-legal h4 {
    color: #856404;
    margin-bottom: 10px;
}

.info-legal p {
    color: #856404;
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--dark-bg);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: var(--accent-color);
    text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .partido-titulo {
        font-size: 1.8em;
    }
    
    .plataformas-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

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