/* --- VARIABLES Y RESET BÁSICO --- */
:root {
    --bg-dark: #1a1a1a;
    --bg-light: #2c2c2c;
    --border-color: #444;
    --primary-color: #00b894; /* Un verde eléctrico como acento */
    --text-light: #f5f5f5;
    --text-dark: #a9a9a9;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- CABECERA --- */
.main-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px; /* Ajusta según tu logo */
}

.main-nav a {
    color: var(--text-light);
    margin: 0 1rem;
    font-weight: 600;
}

.social-links a {
    color: var(--text-dark);
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* --- ÁREA PRINCIPAL --- */
.main-content {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.forecasts-column {
    flex: 3; /* Ocupa 3/4 del espacio */
}

.sidebar {
    flex: 1; /* Ocupa 1/4 del espacio */
}

/* --- SIDEBAR (PANEL DE USUARIO) --- */
.user-panel {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.user-panel h4 {
    margin-bottom: 1rem;
}

.user-panel p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-panel hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.user-menu {
    list-style: none;
}

.user-menu li a {
    color: var(--text-light);
    display: block;
    padding: 0.5rem 0;
    font-weight: 600;
}

.user-menu li a i {
    width: 25px;
    color: var(--primary-color);
}

/* --- TARJETAS DE PRONÓSTICOS --- */
.forecast-section {
    margin-bottom: 3rem;
}

.forecast-section h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.forecast-section h2 i {
    margin-right: 0.5rem;
}

.forecast-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.forecast-card-header {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0,0,0,0.2);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.forecast-card-body {
    padding: 1.5rem;
}

.forecast-card-body h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.prediction-text {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.prediction-pick {
    background-color: rgba(0, 184, 148, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    font-weight: 600;
}

/* --- ESTILOS PARA TARJETAS BLOQUEADAS (CÓDIGO NUEVO) --- */
.forecast-card.locked .forecast-card-body {
    filter: blur(5px);
    /* Opcional: mantiene el contenido ligeramente visible para el usuario */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard */
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    opacity: 0; /* Oculto por defecto */
    pointer-events: none; /* No se puede interactuar con él cuando está oculto */
    transition: opacity 0.3s ease;
}

.forecast-card.locked:hover .lock-overlay {
    opacity: 1; /* Se muestra al pasar el mouse */
    pointer-events: auto; /* Se puede interactuar con él cuando es visible */
}

.lock-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.lock-overlay p {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* --- BOTONES --- */
.btn {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #00a37e;
}

.btn-secondary {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-accent {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}


/* --- OTROS ELEMENTOS --- */
.news-ticker {
    background-color: var(--bg-light);
    border-radius: 5px;
    margin: 1.5rem 0;
    /* Añadimos overflow:hidden para que el slide se vea bien */
    overflow: hidden; 
}

/* Y añade esta nueva regla para los slides */
.news-ticker .swiper-slide {
    padding: 0.75rem;
    text-align: center;
    width: 100%;
    background-color: var(--bg-light); 
}
.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filters-bar input, .filters-bar select {
    flex: 1;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 5px;
}

/* --- PIE DE PÁGINA --- */
.main-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-nav a {
    margin: 0 0.75rem;
    color: var(--text-dark);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- ESTILOS PARA LA PÁGINA DE HISTORIAL --- */
.history-container {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.history-container h1 {
    margin-bottom: 0.5rem;
}

.history-container p {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

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

.history-table th, .history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table thead th {
    background-color: #333;
    font-weight: 600;
}

.history-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.1);
}

/* --- ESTILOS PARA LAS ETIQUETAS DE RESULTADO (BADGES) --- */
.badge { 
    padding: 0.3em 0.8em; 
    border-radius: 15px; 
    color: white; 
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.won { 
    background-color: #27ae60; /* Verde */
}

.badge.lost { 
    background-color: #c0392b; /* Rojo */
}