/* Custom Saturn-themed styles */

.scanlines {
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 162, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    height: 100%;
    width: 100%;
    animation: scanline-move 0.1s linear infinite;
}

@keyframes scanline-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

.gradient-text {
    background: linear-gradient(45deg, #00a2ff, #ffffff, #00a2ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.retro-button {
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.2),
        inset -2px -2px 4px rgba(0, 0, 0, 0.2),
        4px 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.retro-button:hover {
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.3),
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        6px 6px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.retro-card {
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 162, 255, 0.2);
    transition: all 0.3s ease;
}

.retro-card:hover {
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.4),
        inset 1px 1px 2px rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 162, 255, 0.4);
}

.retro-border {
    border: 2px solid;
    border-image: linear-gradient(45deg, #00a2ff, transparent, #00a2ff) 1;
    position: relative;
}

.retro-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00a2ff, transparent, #00a2ff);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 162, 255, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 162, 255, 0.8);
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 3rem;
    }
}

/* Special hover effects for interactive elements */
.game-card:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #00a2ff;
    outline-offset: 2px;
}

/* Animation for specs counter (if we were to add number counting) */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.spec-item {
    animation: countUp 0.6s ease-out forwards;
}

/* 90s-style glow effect */
.glow {
    text-shadow: 
        0 0 5px rgba(0, 162, 255, 0.5),
        0 0 10px rgba(0, 162, 255, 0.3),
        0 0 15px rgba(0, 162, 255, 0.2);
}

/* Retro grid background pattern */
.grid-bg {
    background-image: 
        linear-gradient(rgba(0, 162, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 162, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}