/* Top 10 Games by Console - 8BitEdge Styles */

/* Main container styling */
.app-content {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d35 100%);
    padding-top: 20px;
}

.app-container {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 !important;
}

/* Hero Section - Retro Gaming Style */
.top-games-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 4px solid #00ff41;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 60px rgba(0, 255, 65, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 2rem;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
}

.hero-gradient {
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 65, 0.03) 0px,
        transparent 2px,
        transparent 4px,
        rgba(0, 255, 65, 0.03) 6px
    );
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 65, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 0, 255, 0.02) 0px,
            transparent 2px,
            transparent 4px,
            rgba(255, 0, 255, 0.02) 6px
        );
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-headline {
    font-family: 'Electrolize', 'Courier New', monospace;
    font-size: 2rem;
    color: #00ff41;
    text-shadow: 
        2px 2px 0px #ff00ff,
        4px 4px 0px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 255, 65, 0.5);
    margin: 0;
    letter-spacing: 2px;
}

/* Removed glitch animation */

.hero-subtext {
    font-family: 'Electrolize', 'Courier New', monospace;
    font-size: 1rem;
    color: #00d9ff;
    text-shadow: 
        1px 1px 0px #ff00ff,
        0 0 8px rgba(0, 217, 255, 0.6);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtext::before {
    content: '> ';
    color: #ff00ff;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Pixel corner decorations */
.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ff00ff;
}

.hero-content::before {
    top: -1rem;
    left: -1rem;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.hero-content::after {
    bottom: -1rem;
    right: -1rem;
    border-left: none;
    border-top: none;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.platform-nav {
    background: #1a1a2e;
    border-radius: 0;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
    z-index: 100;
    border: 2px solid #00d9ff;
}

.platform-nav h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00d9ff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.platform-nav h5::before {
    content: '▶ ';
    animation: blink 1s step-end infinite;
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.platform-link {
    display: inline-block;
    padding: 10px 20px;
    background: #16213e;
    border-radius: 0;
    text-decoration: none;
    color: #00d9ff;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #00d9ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.platform-link:hover {
    background: #00d9ff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.5);
}

.platform-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.platform-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px;
    border-radius: 0;
    margin-bottom: 0;
    border: 2px solid #00d9ff;
    border-bottom: none;
    position: relative;
}

.platform-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

.platform-header h2 {
    color: #00d9ff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.platform-header h2::before {
    content: '▶';
    margin-right: 15px;
    font-size: 1.5rem;
    color: #00d9ff;
}

.games-container {
    background: #0f0f1e;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 2px solid #00d9ff;
    border-top: none;
}

.top-game-item,
.top-game-item *,
.game-rank,
.game-content,
.game-header,
.game-cover,
.game-title,
.game-rating,
.game-summary {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.top-game-item {
    padding: 25px 30px;
    border-bottom: 2px solid #1a1a2e;
    position: relative;
    background: #0f0f1e;
}

.top-game-item:last-child {
    border-bottom: none;
}

.top-game-item:hover {
    background: #1a1a2e;
}

.game-rank {
    position: absolute;
    left: 10px;
    top: 25px;
    width: 50px;
    height: 50px;
    background: #00d9ff;
    color: #1a1a2e;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    padding: 10px 0;
}

.game-content {
    margin-left: 60px;
}

.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.game-cover {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-right: 15px;
    border: 2px solid #00d9ff;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-rating {
    background: #00d9ff;
    color: #1a1a2e;
    padding: 10px 16px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 2px solid #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-rating::before {
    content: '★';
    color: #1a1a2e;
}

.game-summary {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #00d9ff;
    color: #1a1a2e;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    border: 2px solid #00d9ff;
    font-weight: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.8);
    background: #1a1a2e;
    color: #00d9ff;
}

@media (max-width: 768px) {
    .top-games-hero {
        min-height: 140px;
        padding: 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .hero-headline {
        font-size: 1.25rem;
    }
    
    .hero-subtext {
        font-size: 0.875rem;
    }

    .top-games-hero h1 {
        font-size: 1.5rem;
    }
    
    .platform-nav {
        position: relative;
        top: 0;
    }
    
    .platform-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .platform-links {
        flex-direction: column;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-rating {
        margin-top: 10px;
    }
    
    .game-rank {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .game-content {
        margin-left: 50px;
    }
}

/* 8BitEdge Retro Scanlines Effect */
body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d35 100%);
}

/* Removed scanline overlay that may cause visual effects */