/* HOME.CSS
  Specific styles for the Landing Page (Music Player, Newsletter, Animations)
  Global styles (body, glass-card, variables) are inherited from community.css
*/

/* --- TEXT & GLOW EFFECTS --- */
.text-glow {
    text-shadow: 0 0 8px var(--color-primary-glow), 0 0 20px var(--color-primary-glow);
}

.tron-glow {
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.5), 
                0 0 10px rgba(56, 189, 248, 0.4), 
                0 0 15px rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.7);
}

/* --- MUSIC PLAYER ANIMATIONS --- */
.player-glow {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 1.5rem; 
    box-shadow: 0 0 20px 5px rgba(56, 189, 248, 0); 
    z-index: -1;
    animation: pulse-glow 3s infinite ease-in-out;
    animation-play-state: paused; 
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px 5px rgba(56, 189, 248, 0.2); }
    50% { box-shadow: 0 0 35px 10px rgba(56, 189, 248, 0.5); }
    100% { box-shadow: 0 0 20px 5px rgba(56, 189, 248, 0.2); }
}

.player-card {
    position: relative;
    z-index: 1;
    overflow: hidden; 
}

/* --- PLAYLIST SCROLLBAR & ITEMS --- */
.playlist-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-background);
    cursor: pointer;
    transition: background-color 0.2s;
}
.playlist-item:hover {
    background-color: rgba(56, 189, 248, 0.1);
}
.playlist-item.active {
    background-color: rgba(56, 189, 248, 0.2);
    border-left: 4px solid var(--color-primary);
    padding-left: calc(1rem - 4px);
}

#playlist-container::-webkit-scrollbar { width: 6px; }
#playlist-container::-webkit-scrollbar-track { background: #1f2937; }
#playlist-container::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 3px; }
#playlist-container::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* --- NEWSLETTER FORM ANIMATION --- */
#newsletter-signup-form {
    padding: 2px;
    border-radius: 0.75rem;
    background-clip: padding-box;
    border: 2px solid transparent;
    background-image: linear-gradient(145deg, var(--color-background), var(--color-background)), 
                      linear-gradient(145deg, var(--color-secondary), var(--color-primary), var(--color-secondary));
    background-origin: border-box;
    background-position: 0% 0%;
    background-size: 300% 300%;
    animation: tron-border-glow 5s linear infinite;
}

@keyframes tron-border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.form-input:focus {
    --tw-ring-color: var(--color-primary-glow) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 15px var(--color-primary-glow) !important;
}

/* --- ACTION BUTTON (Specific Gradient for Home) --- */
.action-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    background-image: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--color-primary-glow);
    border: none; /* Ensure no border overrides */
}

.action-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.6);
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- PROGRESS BAR --- */
#progress-container:hover #progress-bar {
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}