/* Matrix Rain Background Styles - ENHANCED VERSION */
#matrix-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
    overflow: hidden;
    opacity: 0.3; /* Make rain visible through content */
}

canvas#matrix-rain {
    display: block;
    width: 100%;
    height: 100%;
}

/* Tracks page specific rain visibility - ENHANCED */
body.tracks-page #matrix-rain-container {
    z-index: 1;
    opacity: 0.25; /* More visible on tracks page */
    pointer-events: none; /* Don't interfere with content interaction */
}

body.tracks-page .main-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6); /* More transparent to show rain */
}

body.tracks-page .retro-player {
    background: rgba(42, 42, 42, 0.9); /* Semi-transparent player background */
    backdrop-filter: blur(5px); /* Blur effect for better visibility */
}

body.tracks-page .tracks-list {
    background: rgba(0, 0, 0, 0.85); /* Semi-transparent tracks list */
    backdrop-filter: blur(3px);
}

body.tracks-page .hero-section {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent hero section */
}

/* Matrix Theme Colors */
:root {
    --matrix-green-bright: #00FF00;
    --matrix-green-medium: #008F11;
    --matrix-green-dark: #003B00;
    --matrix-black: #000000;
    --matrix-dark-gray: #111111;
    --matrix-light-gray: #333333;
}

/* Gradient Text Effect for Headings */
.matrix-gradient-text {
    background: linear-gradient(to bottom, var(--matrix-green-bright), var(--matrix-green-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Glowing Border Effect */
.matrix-glow-border {
    border: 2px solid var(--matrix-green-medium);
    border-radius: 15px;
    box-shadow: 0 0 10px var(--matrix-green-bright), 
                inset 0 0 5px var(--matrix-green-bright);
    transition: all 0.3s ease;
}

.matrix-glow-border:hover {
    box-shadow: 0 0 20px var(--matrix-green-bright), 
                inset 0 0 10px var(--matrix-green-bright);
}

/* Animated Gradient Border */
.matrix-animated-border {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.matrix-animated-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, 
                var(--matrix-green-bright), 
                var(--matrix-green-dark), 
                var(--matrix-black), 
                var(--matrix-green-bright));
    background-size: 400% 400%;
    border-radius: 15px;
    animation: gradientBorder 3s ease infinite;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Character Card Styles */
.character-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--matrix-green-bright);
}

/* Enhanced visibility for tracks page content */
body.tracks-page .track-item {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

body.tracks-page .track-item:hover {
    background: rgba(0, 255, 0, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .character-card {
        padding: 15px;
    }
    
    .matrix-gradient-text {
        font-size: 90%;
    }
    
    body.tracks-page #matrix-rain-container {
        opacity: 0.2; /* Slightly less visible on mobile */
    }
}

