/*
Theme Name: StopAndGo F1
Theme URI: https://stopandgof1.es
Author: StopAndGo
Description: Tema personalizado para StopAndGo F1 - Formula 1 2026
Version: 3.0
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.5;
}

/* ========== CONTENEDORES ========== */
.container, .main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ========== HEADER ========== */
.site-header {
    background: #0a0a0a;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
}

.header-container {
    width: 100%;
    text-align: center;
}

.logo {
    text-align: center;
}

.logo-link {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -3px;
    display: inline-block;
}

.logo-red {
    color: #e10600;
}

/* ========== MENU ========== */
.main-nav {
    background: #0d0d0d;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-icon {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    transition: color 0.3s;
    padding: 8px;
}

.home-icon:hover {
    color: #e10600;
    transform: scale(1.1);
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 14px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
    border-radius: 6px;
}

.main-nav a:hover {
    color: #e10600;
    background: rgba(225, 6, 0, 0.1);
}

/* ========== HERO SECTION ========== */
.hero-section {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.hero-main {
    background-size: cover;
    background-position: center;
    padding: 30px;
    border-radius: 16px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-category {
    background: #e10600;
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 12px;
}

.hero-main h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hero-main h2 a {
    color: white;
    text-decoration: none;
}

.hero-meta {
    font-size: 0.8rem;
    color: #aaa;
}



/* ========== PROXIMO GP ========== */
/* Importar fuente moderna (agregar en el head del HTML) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.next-gp {
    background: linear-gradient(145deg, #0a0a0a 0%, #0f0f0f 100%);
    border-radius: 40px;
    padding: 48px;
    margin-bottom: 40px;
    border: 1px solid rgba(225, 6, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Título principal mejorado */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 35px;
    border-left: 6px solid #e10600;
    padding-left: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff 0%, #e10600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grid más grande */
.gp-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.9fr;
    gap: 35px;
    align-items: start;
}

/* Columna 1 - Stats */
.gp-col-1 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-box {
    background: linear-gradient(135deg, #111 0%, #0d0d0d 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #222;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.stats-box:hover {
    transform: translateY(-2px);
    border-color: #e1060040;
}

.stats-title {
    font-size: 1.1rem;
    color: #e10600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e1060030;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 2.2;
    padding: 4px 0;
    border-bottom: 1px solid #1a1a1a;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

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

.stats-list .year {
    color: #e10600;
    font-weight: 700;
    margin-right: 10px;
    font-size: 1rem;
    min-width: 55px;
}

.time-badge {
    background: #e1060020;
    color: #e10600;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 6px;
}

.team-badge {
    background: #1a1a1a;
    color: #ccc;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.winner-name {
    color: #fff;
    font-weight: 600;
}

/* Columna 2 - Info del GP */
.gp-info {
    text-align: center;
    padding: 20px 0;
}

.gp-header-content {
    margin-bottom: 25px;
}

.gp-name {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gp-country {
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gp-year {
    color: #e10600;
    font-size: 2rem;
    font-weight: 800;
}

.gp-full-title {
    font-size: 1rem;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 15px;
}

.gp-circuit {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.gp-date {
    font-size: 1.1rem;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 0;
}

/* Bandera USA */
.flag-container {
    margin: 30px 0 25px;
    display: flex;
    justify-content: center;
}

.usa-flag {
    background: linear-gradient(135deg, #B22234 0%, #8B1A1A 100%);
    padding: 18px 40px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(178, 34, 52, 0.3);
    border: 1px solid #ffffff20;
    position: relative;
    overflow: hidden;
}

.usa-flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: #3C3B6E;
    z-index: 1;
}

.flag-stars {
    color: #FFD700;
    font-size: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.flag-text {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 8px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Detalles del circuito */
.circuit-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #1f1f1f;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.detail-icon {
    font-size: 1.5rem;
    width: 30px;
    opacity: 0.8;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.detail-note-small {
    color: #999;
    font-size: 0.8rem;
    font-weight: 400;
}

.detail-note {
    color: #e10600;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
    font-style: italic;
}

/* Columna 3 - Horarios */
.gp-schedule {
    background: linear-gradient(135deg, #0d0d0d 0%, #080808 100%);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1060030;
}

.schedule-title {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.timezone-badge {
    background: #e10600;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #1a1a1a;
}

.schedule-item:last-of-type {
    border-bottom: none;
}

.session-name {
    color: #bbb;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-time {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    background: #1a1a1a;
    padding: 4px 12px;
    border-radius: 8px;
}

.race-item {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 2px solid #e1060030;
}

.race-item .session-name {
    color: #e10600;
    font-weight: 800;
    font-size: 1.1rem;
}

.race-item .session-time {
    background: #e10600;
    color: white;
    font-weight: 800;
}

.schedule-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #1f1f1f;
    text-align: center;
}

.track-condition {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .next-gp {
        padding: 32px;
    }
    
    .gp-grid {
        gap: 25px;
    }
    
    .gp-name {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .gp-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .usa-flag {
        padding: 14px 30px;
    }
    
    .flag-text {
        font-size: 1.8rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
/* ========== RESULTADOS ========== */
.results {
    background: #111;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 40px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
}

.results-table th {
    color: #e10600;
    font-weight: 600;
}

.podium {
    color: #ffd700;
}

/* ========== GRID NOTICIAS ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0 50px;
}

.news-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
}

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

.news-content {
    padding: 18px;
}

.news-cat {
    color: #e10600;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.news-title {
    font-size: 1.1rem;
    margin: 8px 0;
}

.news-title a {
    color: white;
    text-decoration: none;
}

.news-title a:hover {
    color: #e10600;
}

.news-date {
    font-size: 0.7rem;
    color: #666;
}

/* ========== SINGLE ARTICLE ========== */
.single-article {
    background: #111;
    padding: 35px;
    border-radius: 16px;
    margin: 40px 0;
}

.single-article h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.single-meta {
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.single-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.single-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* ========== PAGE ========== */
.page-content {
    background: #111;
    padding: 35px;
    border-radius: 16px;
    margin: 40px 0;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #050505;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    font-size: 0.75rem;
    border-top: 1px solid #111;
    color: #555;
}

.site-footer a {
    color: #e10600;
    text-decoration: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .gp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container, .main-container, .nav-container {
        padding: 0 16px;
    }
    
    .logo-link {
        font-size: 2rem;
    }
    
    .nav-container {
        overflow-x: auto;
        gap: 10px;
    }
    
    .main-nav ul {
        min-width: max-content;
    }
    
    .main-nav a {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .single-article h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .hero-main {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .logo-link {
        font-size: 1.6rem;
    }
    
    .next-gp {
        padding: 20px;
    }
    
    .hero-main h2 {
        font-size: 1.3rem;
    }
}