/* ================================================
   ESPANOLGAMES.ES — UPDATES
   File: assets/css/updates.css
   ================================================ */

/* ===== EXTREME DARK ORANGE THEME - UPDATES PAGE ===== */
:root {
    --orange-deep: #c81e1e;
    --orange-primary: #ff4400;
    --orange-secondary: #ff7700;
    --orange-glow: rgba(255, 68, 0, 0.5);
    --orange-gradient: linear-gradient(145deg, #ff4400, #c81e1e);
    --orange-gradient-hover: linear-gradient(145deg, #ff5500, #d82e2e);
    
    --bg-black: #000000;
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --bg-card-hover: #111111;
    
    --border-dim: #1a1a1a;
    --border: #2a2a2a;
    --border-hover: #ff4400;
    
    --text-white: #ffffff;
    --text-light: #f0f0f0;
    --text-dim: #a0a0a0;
    
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.5);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.6);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.7);
    --shadow-orange: 0 5px 25px rgba(255, 68, 0, 0.3);
}

/* ===== PAGE STYLES ===== */
.updates-page {
    padding: 40px 0;
    background: var(--bg-black);
    min-height: 100vh;
}

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

/* ===== PAGE HEADER - EXTREME ===== */
.page-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--orange-gradient);
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,68,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header h1 i {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
}

.page-header p {
    color: var(--text-dim);
    font-size: 1.2rem;
}

/* ===== STATS CARDS - EXTREME ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--orange-gradient);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-orange);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-orange);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 5px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-dim);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FILTERS - EXTREME ===== */
.updates-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px;
}

.filter-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 50px;
    text-align: center;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn:hover {
    color: var(--text-white);
    background: rgba(255, 68, 0, 0.1);
    border-color: var(--orange-primary);
}

.filter-btn.active {
    background: var(--orange-gradient);
    color: white;
    box-shadow: var(--shadow-orange);
}

/* ===== TIMELINE - EXTREME ===== */
.updates-timeline {
    margin-bottom: 50px;
}

.timeline-date {
    margin: 50px 0 30px;
}

.date-marker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: var(--orange-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-orange);
    position: relative;
}

.date-marker::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--orange-primary);
}

.timeline-games {
    position: relative;
    padding-left: 50px;
}

.timeline-games::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--orange-gradient);
    box-shadow: var(--shadow-orange);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -44px;
    top: 28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--orange-gradient);
    border: 3px solid var(--bg-black);
    box-shadow: 0 0 0 3px var(--orange-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--orange-primary); }
    50% { box-shadow: 0 0 0 6px rgba(255, 68, 0, 0.3); }
}

/* ===== GAME CARDS - EXTREME ===== */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: var(--orange-primary);
    transform: translateX(5px) translateY(-3px);
    box-shadow: var(--shadow-orange);
}

.game-link {
    display: flex;
    text-decoration: none;
    padding: 15px;
    gap: 20px;
}

.game-cover {
    position: relative;
    width: 100px;
    height: 133px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-cover img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.badge-new {
    background: var(--orange-gradient);
    color: white;
    box-shadow: var(--shadow-orange);
}

.badge-updated {
    background: linear-gradient(145deg, #00c853, #69f0ae);
    color: black;
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.game-card:hover .game-title {
    color: var(--orange-primary);
}

.game-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 68, 0, 0.1);
    border: 1px solid var(--orange-primary);
    border-radius: 50px;
    color: var(--orange-primary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.game-rating,
.game-views,
.game-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 13px;
}

.game-rating i,
.game-views i,
.game-time i {
    color: var(--orange-primary);
}

/* ===== NO UPDATES - EXTREME ===== */
.no-updates {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.no-updates i {
    font-size: 80px;
    color: var(--orange-primary);
    margin-bottom: 25px;
    opacity: 0.5;
}

.no-updates h3 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.no-updates p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* ===== PAGINATION - EXTREME ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link i {
    font-size: 14px;
}

.page-link:hover {
    border-color: var(--orange-primary);
    color: var(--orange-primary);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--orange-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-orange);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .container { padding: 0 20px; }
    .page-header h1 { font-size: 2.5rem; }
    .stats-grid { gap: 20px; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .page-header { padding: 30px; }
    .page-header h1 { font-size: 2rem; }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .updates-filters {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .timeline-games {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -34px;
    }
    
    .game-link {
        flex-direction: column;
    }
    
    .game-cover {
        width: 100%;
        height: 200px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .page-header h1 { 
        font-size: 1.8rem;
        flex-direction: column;
        text-align: center;
    }
    
    .date-marker {
        width: 100%;
        justify-content: center;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 8px;
    }
}