/* =================================================================
   CSS para Artículos de Partido - Cojos Superleague
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f5f5;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 3rem 2rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    width: 100%;
    position: relative;
    z-index: 2;
}

.match-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.5),
        0 0 40px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.8),
        0 0 15px rgba(0,0,0,0.5);
}

.match-score {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

.team {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 15px rgba(0,0,0,0.5);
}

.team-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.team-badge img {
    max-width: 100%;
    max-height: 100%;
}

.score {
    font-size: 3rem;
    font-weight: 900;
    color: #4ade80;
    text-shadow: 
        0 0 20px rgba(74, 222, 128, 0.7),
        2px 2px 10px rgba(0,0,0,0.9),
        0 0 40px rgba(0,0,0,0.5);
}

.vs {
    font-size: 1.5rem;
    opacity: 0.7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* MAIN CONTENT */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* ARTICLE CONTENT */
article {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.excerpt-box {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 1.5rem;
    border-left: 4px solid #3b82f6;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.7;
}

article p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

article strong {
    color: #1e40af;
    font-weight: 600;
}

.section-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.section-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #92400e;
}

.tactical-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.tactical-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

/* STATS TABLE */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-table thead {
    background: #1f2937;
    color: white;
}

.stats-table th,
.stats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.stats-table th:nth-child(2),
.stats-table th:nth-child(3),
.stats-table td:nth-child(2),
.stats-table td:nth-child(3) {
    text-align: center;
}

.stats-table tbody tr:hover {
    background: #f9fafb;
}

.stats-table tbody tr:nth-child(even) {
    background: #f3f4f6;
}

/* INSIGHTS GRID */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.insight-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.insight-value {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.insight-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* SIDEBAR */
aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    padding: 1rem;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.95;
}

.ficha-tecnica {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.ficha-tecnica h4 {
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-size: 1rem;
}

.ficha-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .match-score {
        flex-direction: column;
        gap: 1rem;
    }
}