/* Shared Content Page Styles (Movies & Videogames) */
body {
    background-color: rgb(0,0,0);
    font-family: arial, sans-serif;
    color: rgb(255,255,255);
    letter-spacing: 0.01em;     
    word-spacing: 0.01em;     
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Page Layout */
.page-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.banner-container {
    height: 60px;
    flex-shrink: 0;
}

.ab-test-section {
    height: 100vh;
    flex-shrink: 0;
}

.content-section {
    min-height: 100vh;
    padding: 2rem 1rem;
}

.content-header {
    text-align: center;
    margin-bottom: 2rem;
}

.content-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.content-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    color: #e0e0e0;
}

/* Content Grid */
.content-main {
    max-width: 1200px;
    margin: 0 auto;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    padding: 2rem;
    color: #ccc;
}

.loading.error {
    color: #ff6b6b;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.content-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.content-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.content-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.content-card h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: #fff;
    text-align: left;
}

.content-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.content-details span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.year {
    background: rgba(102, 126, 234, 0.3) !important;
}

.elo-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    margin: 1rem 0;
}

.elo-rating {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.win-loss {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.2rem;
}

.win-rate {
    font-size: 0.9rem;
    color: #4caf50;
}

.description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
    margin: 1rem 0;
    text-align: left;
}

.content-link {
    display: inline-block;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.content-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .content-section {
        padding: 1rem 0.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-card {
        padding: 1rem;
    }
}

/* Theme-specific styles (to be overridden) */
.movies-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.games-section {
    background: linear-gradient(135deg, #2e1a1a 0%, #3e1616 50%, #601f0f 100%);
}

.movie-rank {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-rank {
    background: linear-gradient(135deg, #ea6667 0%, #a27664 100%);
}

.movies-section .elo-stats {
    border-left: 4px solid #667eea;
}

.games-section .elo-stats {
    border-left: 4px solid #ea6667;
}

.movies-section .elo-rating {
    color: #667eea;
}

.games-section .elo-rating {
    color: #ea6667;
}

.movie-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.movie-link:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.game-link {
    background: linear-gradient(135deg, #ea6667 0%, #a27664 100%);
}

.game-link:hover {
    background: linear-gradient(135deg, #d85a5b 0%, #916b53 100%);
}

/* Videogame-specific detail tags */
.platform {
    background: rgba(162, 118, 100, 0.3) !important;
}

.genre {
    background: rgba(255, 193, 7, 0.3) !important;
}

.rating {
    background: rgba(76, 175, 80, 0.3) !important;
}