/*
* Busoga One FM - Custom Styles
* Primary: #E31E24 (Busoga Red)
* Secondary: #000000 (Deep Black)
* Accent: #FFFFFF (Pure White)
*/

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #E31E24;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #b91919;
}

.bg-danger, .btn-danger {
    background-color: #E31E24 !important;
    border-color: #E31E24 !important;
}

.text-danger {
    color: #E31E24 !important;
}

.btn-outline-danger {
    border-color: #E31E24 !important;
    color: #E31E24 !important;
}

.btn-outline-danger:hover {
    background-color: #E31E24 !important;
    color: #fff !important;
}

/* Header Styles */
.top-bar {
    font-size: 0.85rem;
}

.social-links .list-inline-item {
    margin-right: 10px;
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #E31E24;
    color: #fff !important;
}

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

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #E31E24;
}

/* Breaking News Ticker */
.breaking-news {
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breaking-label {
    border-radius: 4px;
    display: inline-block;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
    flex: 1;
}

.ticker {
    display: flex;
    animation: ticker 30s infinite linear;
    white-space: nowrap;
}

.ticker-item {
    margin-right: 50px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Section Styles */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #E31E24;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title a {
    color: #333;
}

.card-title a:hover {
    color: #E31E24;
}

/* News Styles */
.news-item {
    margin-bottom: 20px;
}

.news-category {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.8rem;
    color: #777;
}

.news-featured {
    position: relative;
}

.news-featured .news-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
}

.news-featured .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    border-radius: 0 0 0.5rem 0.5rem;
}

.news-featured .news-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.news-featured .news-meta {
    color: rgba(255, 255, 255, 0.7);
}

/* Program Schedule */
.program-schedule {
    position: relative;
    padding: 15px;
    border-radius: 0.5rem;
    margin-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.program-schedule:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.program-schedule.current {
    border-left: 4px solid #E31E24;
}

.program-time {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f8f9fa;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.program-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.program-presenter {
    font-size: 0.85rem;
    color: #777;
}

/* Events */
.event-item {
    position: relative;
    margin-bottom: 20px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.event-content {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.event-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #E31E24;
    color: #fff;
    padding: 5px 10px;
    text-align: center;
    border-radius: 3px;
    font-weight: 600;
    line-height: 1.2;
}

.event-date .day {
    font-size: 1.2rem;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Gallery */
.gallery-item {
    position: relative;
    margin-bottom: 30px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.gallery-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    background-color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    color: #E31E24;
    transform: scale(0);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Radio Player */
#radio-player {
    z-index: 1050;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    color: rgba(255, 255, 255, 0.7);
}

footer h5 {
    font-weight: 600;
    color: #fff;
}

footer .social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

footer .social-link:hover {
    background-color: #E31E24;
    color: #fff;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }

    .news-featured .news-image {
        height: 300px;
    }

    .news-featured .news-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .news-featured .news-image {
        height: 250px;
    }

    .event-image, .gallery-image {
        height: 180px;
    }

    .card-img-top {
        height: 180px;
    }
}

/* Floating Now Playing Bar */
.floating-now-playing {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    border-top: 2px solid #E31E24;
}

.now-playing-content {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.now-playing-logo {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}

.now-playing-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder-mini {
    width: 100%;
    height: 100%;
    background-color: #E31E24;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.now-playing-info {
    margin-left: 15px;
    flex-grow: 1;
    overflow: hidden;
}

.now-playing-title {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    color: #E31E24;
    font-weight: 700;
}

.live-badge i.pulse {
    font-size: 8px;
    margin-right: 4px;
    animation: pulse 1.5s infinite;
}

.now-playing-track {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-artist {
    font-size: 14px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.floating-play-button {
    width: 40px;
    height: 40px;
    background-color: #E31E24;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.4);
    transition: all 0.2s;
    margin-right: 8px;
}

.floating-play-button:hover {
    background-color: #d01c22;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.5);
}

.floating-expand-button {
    width: 34px;
    height: 34px;
    background-color: #f1f1f1;
    color: #555;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.floating-expand-button:hover {
    background-color: #e5e5e5;
    color: #333;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Adjust main content to prevent overlap with fixed player */
main {
    padding-bottom: 90px;
}

@media (max-width: 767px) {
    main {
        padding-bottom: 90px;
    }
    
    .floating-now-playing {
        height: 70px;
    }
    
    .now-playing-logo {
        width: 40px;
        height: 40px;
    }
    
    .floating-play-button {
        width: 36px;
        height: 36px;
    }
    
    .floating-expand-button {
        width: 30px;
        height: 30px;
    }
    
    .now-playing-track {
        font-size: 14px;
    }
    
    .now-playing-artist {
        font-size: 12px;
    }
}
