/**
 * Radio Salus FM 97.0 - Main Stylesheet
 * UR Branding Colors: #00628b (Zurich Bold)
 */

:root {
    --ur-blue: #00628b;
    --ur-blue-dark: #004a6b;
    --ur-blue-light: #00a3e0;
    --ur-gold: #f5a623;
    --ur-gold-dark: #d48a0b;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --dark: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--gray-light);
    color: var(--dark);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--ur-blue-dark) !important;
    color: white !important;
}

/* ============================================
   Navigation Bar
   ============================================ */
.main-navbar {
    background: var(--ur-blue) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background: var(--ur-blue) !important;
    min-height: 55px;
}

.navbar-brand {
    color: white !important;
    font-size: 1.3rem;
    font-weight: bold;
}

.navbar-brand:hover {
    color: var(--ur-gold) !important;
}

.navbar-toggler {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-nav {
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--ur-gold) !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--ur-gold) !important;
    color: var(--ur-blue-dark) !important;
    box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--ur-blue);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-top: 10px;
}

.dropdown-item {
    color: white !important;
    padding: 8px 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--ur-gold) !important;
    color: var(--ur-blue-dark) !important;
}

.dropdown-item.active {
    background: var(--ur-gold);
    color: var(--ur-blue-dark);
}

/* Search Form */
.search-form .form-control {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.search-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-form .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: var(--ur-gold);
    color: white;
}

.btn-outline-light {
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: var(--ur-gold);
    border-color: var(--ur-gold);
    color: var(--ur-blue-dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--ur-blue) 0%, var(--ur-blue-dark) 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,98,139,0.3) 0%, transparent 70%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, #f5a623, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245,166,35,0.3);
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: #f5a623;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    display: inline-block;
}

/* Current Show Card */
.current-show-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.current-show-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.15);
}

.current-show-badge {
    background: #f5a623;
    color: #004a6b;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.current-show-details {
    flex: 1;
}

.current-show-label {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.current-show-title {
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
}

.current-show-host {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 4px;
}

.current-show-stats {
    background: rgba(0,0,0,0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Stats Row */
.hero-stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f5a623, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-listen {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(220,53,69,0.3);
}

.btn-listen:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220,53,69,0.5);
    background: linear-gradient(135deg, #c82333, #a71d2a);
}

.btn-listen small {
    font-size: 0.6rem;
    opacity: 0.8;
    font-weight: normal;
}

.btn-primary {
    background: linear-gradient(135deg, #f5a623, #e09612);
    border: none;
    color: #004a6b;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245,166,35,0.4);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-outline-light:hover {
    background: white;
    color: #00628b;
    transform: translateY(-3px);
}

/* News Slider */
.news-slider-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.slider-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f5a623, #e09612);
    color: #004a6b;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-item img {
    height: 450px;
    object-fit: cover;
    width: 100%;
}

.slider-placeholder {
    height: 450px;
    background: linear-gradient(135deg, #00628b, #00a3e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-placeholder i {
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
}

.carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    text-align: left;
    padding: 2rem;
}

.slider-category {
    display: inline-block;
    background: #f5a623;
    color: #004a6b;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-caption h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    max-width: 80%;
}

.slider-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: white;
    opacity: 0.5;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: #f5a623;
    transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
    transition: all 0.3s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #f5a623;
    transform: scale(1.1);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

/* ============================================
   Cards & Sections
   ============================================ */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--ur-blue);
}

.badge-primary {
    background: var(--ur-blue) !important;
    color: white;
}

.badge-gold {
    background: var(--ur-gold) !important;
    color: var(--ur-blue-dark);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 30px;
    color: var(--dark);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--ur-blue);
    border-radius: 3px;
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f5a623;
    font-weight: 600;
}

.section-description {
    color: #6c757d;
    margin-top: 0.5rem;
}

.view-all-link {
    color: #00628b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all-link:hover {
    color: #f5a623;
    transform: translateX(5px);
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.category-card:hover {
    background: linear-gradient(135deg, #00628b, #00a3e0);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,98,139,0.3);
}

.category-card:hover .category-icon,
.category-card:hover h6,
.category-card:hover .category-count {
    color: white;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1a1a2e;
}

.category-count {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Trending Cards */
.trending-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.trending-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00628b, #00a3e0);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.trending-image {
    height: 180px;
    overflow: hidden;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.trending-card:hover .trending-image img {
    transform: scale(1.1);
}

.trending-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #e0e0e0, #ccc);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-placeholder i {
    font-size: 3rem;
    color: rgba(0,0,0,0.2);
}

.trending-content {
    padding: 1rem;
}

.trending-category {
    font-size: 0.7rem;
    color: #f5a623;
    font-weight: 600;
    text-transform: uppercase;
}

.trending-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.trending-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.trending-title a:hover {
    color: #00628b;
}

.trending-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #6c757d;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.featured-article-image {
    height: 280px;
    overflow: hidden;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-article:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: #f5a623;
    color: #004a6b;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.featured-article-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.featured-article-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.featured-article-title a:hover {
    color: #00628b;
}

.featured-article-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Side Articles */
.side-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.side-article {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.side-article:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.side-article-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.side-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-article-content {
    flex: 1;
}

.side-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.side-article-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.side-article-title a:hover {
    color: #00628b;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #00628b, #00a3e0);
    border-radius: 24px;
    margin-top: 3rem;
    overflow: hidden;
}

.newsletter-content {
    padding: 3rem;
    text-align: center;
    color: white;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-group input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-input-group input:focus {
    outline: none;
}

.newsletter-input-group button {
    background: #f5a623;
    border: none;
    padding: 0 2rem;
    border-radius: 50px;
    color: #004a6b;
    font-weight: 600;
    transition: all 0.3s;
}

.newsletter-input-group button:hover {
    background: #e09612;
    transform: translateY(-2px);
}

.newsletter-message {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.success-message {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.error-message {
    background: rgba(220,53,69,0.8);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.empty-state {
    text-align: center;
    padding: 4rem;
    background: #f8f9fa;
    border-radius: 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--ur-blue-dark) !important;
    color: white;
}

footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

footer a:hover {
    color: var(--ur-gold);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--ur-gold);
    color: var(--ur-blue-dark);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--ur-gold-dark);
    transform: translateY(-3px);
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .carousel-item img,
    .slider-placeholder {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title-highlight {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-stats-row {
        justify-content: center;
    }
    
    .current-show-card {
        flex-direction: column;
        text-align: center;
    }
    
    .current-show-stats {
        margin-left: 0;
    }
    
    .hero-buttons .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .newsletter-content {
        padding: 2rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-input-group button {
        padding: 0.8rem;
    }
    
    .carousel-item img,
    .slider-placeholder {
        height: 280px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h3 {
        font-size: 0.9rem;
    }
    
    .slider-meta {
        display: none;
    }
    
    .side-article {
        flex-direction: column;
        text-align: center;
    }
    
    .side-article-image {
        width: 100%;
        height: 150px;
    }
    
    .navbar-nav {
        padding: 15px 0;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Utility Classes */
.bg-ur-blue {
    background: var(--ur-blue) !important;
}

.bg-ur-blue-dark {
    background: var(--ur-blue-dark) !important;
}

.bg-ur-gold {
    background: var(--ur-gold) !important;
}

.text-ur-blue {
    color: var(--ur-blue) !important;
}

.text-ur-gold {
    color: var(--ur-gold) !important;
}

.text-white {
    color: white !important;
}