/* Global Styles */
:root {
   --primary-color:   #f20707;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    line-height: 1.6;
    padding-bottom: 70px; /* Space for bottom nav */
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--secondary-color);
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-menu li a i {
    margin-right: 0.5rem;
}

.nav-menu li a:hover, .nav-menu li a.active {
    color: var(--secondary-color);
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
}



/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Showcase Section */
.showcase {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.program-poster {
    height: 100%;
}

.program-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-info {
    padding: 1.5rem;
}

.program-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hosts, .guests {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-info {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--secondary-color);
}

.player-container {
    grid-column: 1 / -1;
    padding: 1rem;
    background-color: var(--light-color);
    border-top: 1px solid #ddd;
}

audio {
    width: 100%;
    margin-bottom: 1rem;
}

.player-controls {
    display: flex;
    gap: 1rem;
}

.player-controls button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.player-controls button:hover {
    background-color: var(--primary-color);
}

.player-controls button i {
    font-size: 1rem;
}

#like-btn.liked {
    background-color: var(--accent-color);
}

/* Up Next Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.view-all {
    color: var(--secondary-color);
    font-weight: 500;
}

.up-next-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.next-program {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.next-program img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.next-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.next-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Advertisers Section */
.advertisers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.advertiser {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.advertiser:hover {
    transform: translateY(-5px);
}

.advertiser img {
    max-height: 60px;
    width: auto;
}
 
.advertiser img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .advertisers-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advertiser {
        padding: 10px;
    }
    
    .advertiser img {
        max-height: 60px;
    }
}


/* Program Poster Styles */
.program-poster {
    position: relative;
    height: 100%;
    background: #f0f0f0;
}

.program-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 1.2rem;
}

.poster-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.poster-placeholder.small {
    min-height: 80px;
    min-width: 80px;
}

.poster-placeholder.small i {
    font-size: 1.5rem;
}

/* Program Description */
.program-description {
    margin: 15px 0;
    line-height: 1.6;
}

/* Sponsor Fallback Text */
.sponsor-name {
    word-break: break-word;
    text-align: center;
    padding: 10px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    padding: 0.5rem;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.bottom-nav a i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.bottom-nav a span {
    font-size: 0.7rem;
}

.bottom-nav a.active {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        transition: left 0.3s ease;
        z-index: 2000;
        overflow-y: auto;
    }
    
    /* Mobile Menu Active State */
.nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu li a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .showcase-container {
        grid-template-columns: 1fr;
    }

    .program-poster {
        height: 200px;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .player-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .program-info h2 {
        font-size: 1.4rem;
    }

    .bottom-nav a span {
        display: none;
    }

    .bottom-nav a i {
        margin-bottom: 0;
        font-size: 1.4rem;
    }
}

/* added later */


/* Sticky Player */
.sticky-player {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
}

.sticky-player audio {
    width: 60%;
    max-width: 300px;
}

.player-info {
    padding: 0 10px;
}

.now-playing {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
}

@media (min-width: 769px) {
    .sticky-player {
        bottom: 0;
    }
    
    .bottom-nav {
        display: none;
    }
}



/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.stat-card p {
    font-size: 2rem;
    margin: 10px 0;
    font-weight: bold;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: var(--primary-color);
    color: white;
}

.admin-table tr:hover {
    background-color: #f5f5f5;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-edit {
    background-color: #ffc107;
    color: #212529;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge.active {
    background-color: #28a745;
    color: white;
}

.badge.inactive {
    background-color: #6c757d;
    color: white;
}

.sponsor-logo {
    max-height: 40px;
    max-width: 100px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}









/* Under Development Notice */
.under-dev-notice {
    background-color: #ffc107;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.under-dev-notice i {
    margin-right: 10px;
}

/* Placeholder Styles */
.placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.podcast-card .podcast-image {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.music-player-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.music-player-placeholder .player-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Schedule Page Styles */
.schedule-day {
    margin-bottom: 30px;
}

.program-item {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.program-time {
    min-width: 200px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .program-item {
        padding: 0;
    }
    
    .program-time {
        margin-bottom: 5px;
    }
}