/* Custom CSS for Radio Portal */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Header Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-bg);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Radio Station Cards */
.radio-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.radio-card .station-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 3px solid #f8f9fa;
}

.radio-card .station-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.radio-card .station-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.radio-card .station-meta {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.radio-card .play-btn {
    background: var(--gradient-bg);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.radio-card .play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Category Tags */
.category-tags {
    margin: 2rem 0;
}

.category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    margin: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--dark-color);
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.category-tag.language { background: #28a745; }
.category-tag.genre { background: #dc3545; }
.category-tag.country { background: #ffc107; color: #212529; }

/* Search Results */
.search-results {
    margin: 2rem 0;
}


.search-info {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

/* Audio Player Styles */
.radio-player {
    padding: 2rem;
}

.station-logo {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.player-controls {
    margin: 2rem 0;
}

.control-buttons button {
    margin: 0.25rem;
    border-radius: 25px;
    font-weight: 600;
}

.volume-control {
    max-width: 300px;
    margin: 0 auto;
}

.station-details {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .radio-card {
        text-align: center;
    }
    
    .radio-card .station-logo {
        width: 60px;
        height: 60px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Custom colors */
.bg-dark-800 {
    background-color: #1a1a1a;
}

/* Hover effects */
.hover-primary:hover {
    color: #0d6efd !important;
    transition: color 0.2s ease;
}

/* Player controls */
.progress-container {
    cursor: pointer;
}

.station-logo {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Truncate text */
.station-name-truncate, .track-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Rating stars */
.rating i {
    cursor: pointer;
    color: #6c757d;
}

.rating i.active {
    color: #ffc107;
}

/* Mini player */
.mini-player {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    border-top: 1px solid #333;
    z-index: 1040;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem auto;
    }
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-bg) 1;
}


/* Print Styles */
@media print {
    .navbar, footer, .modal {
        display: none !important;
    }
    
    .radio-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

