/* Custom Styles for Ukrainian Radio App */

/* Smooth transitions */
* {
    transition: all 0.2s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Volume slider styling */
#volumeSlider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Tab styling */
.tab-btn {
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background-color: #3b82f6 !important;
    color: white !important;
    border-bottom-color: #1d4ed8;
}

/* Station card styling */
.station-card {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: between;
    transition: all 0.2s ease;
}

.station-card:hover {
    background: #4b5563;
    border-color: #6b7280;
    transform: translateY(-1px);
}

.station-card.playing {
    background: #1e3a8a;
    border-color: #3b82f6;
}

.station-info {
    flex: 1;
}

.station-name {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.station-genre {
    color: #9ca3af;
    font-size: 14px;
}

.station-country {
    color: #60a5fa;
    font-size: 12px;
    margin-top: 2px;
}

.station-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.station-btn {
    padding: 8px 12px;
    background: #4b5563;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.station-btn:hover {
    background: #6b7280;
}

.station-btn.primary {
    background: #3b82f6;
}

.station-btn.primary:hover {
    background: #2563eb;
}

.station-btn.favorite {
    background: #dc2626;
}

.station-btn.favorite:hover {
    background: #b91c1c;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Audio visualization placeholder */
.audio-visualizer {
    height: 60px;
    background: linear-gradient(90deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    border-radius: 8px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.audio-visualizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive design improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .station-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .station-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    #volumeSlider {
        max-width: 200px;
    }
}

/* Connection status indicator */
.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1000;
    transform: translateY(100px);
    transition: transform 0.3s ease;
}

.connection-status.show {
    transform: translateY(0);
}

.connection-status.connected {
    background: #059669;
    color: white;
}

.connection-status.connecting {
    background: #d97706;
    color: white;
}

.connection-status.error {
    background: #dc2626;
    color: white;
}

/* Custom radio button styling for favorites */
.favorite-btn {
    background: none;
    border: 2px solid #6b7280;
    color: #6b7280;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.favorite-btn.active {
    border-color: #ef4444;
    background: #ef4444;
    color: white;
}

/* Now playing indicator */
.now-playing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 500;
}

.now-playing-bars {
    display: flex;
    gap: 1px;
    align-items: end;
    height: 12px;
}

.now-playing-bars span {
    width: 2px;
    background: #3b82f6;
    border-radius: 1px;
    animation: bars 0.8s ease-in-out infinite;
}

.now-playing-bars span:nth-child(2) {
    animation-delay: 0.2s;
}

.now-playing-bars span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bars {
    0%, 100% {
        height: 4px;
    }
    50% {
        height: 12px;
    }
}