/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a2341;
    --secondary-color: #2d4a9e;
    --accent-color: #1e3a7a;
    --highlight-color: #e63946;
    --gold-color: #c9a961;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-1: linear-gradient(135deg, #2d4a9e 0%, #1a2341 100%);
    --gradient-2: linear-gradient(135deg, #e63946 0%, #c9364a 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    background: var(--gradient-1);
    padding: 15px 20px 10px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    z-index: 100;
}

.header-content .logo {
    height: 60px;
    width: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tagline {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 300;
    margin: 0;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--secondary-color);
    padding: 8px 5px 10px 5px;
    gap: 5px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tab {
    flex: 1;
    min-width: 70px;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 12px 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.nav-tab i {
    font-size: 1.3rem;
}

/* Icon fallbacks when Font Awesome doesn't load */
.fa-radio::before { content: "📻"; font-family: system-ui; }
.fa-facebook::before { content: "f"; font-family: system-ui; font-weight: bold; }
.fa-youtube::before { content: "▶"; font-family: system-ui; }
.fa-globe::before { content: "🌐"; font-family: system-ui; }
.fa-info-circle::before { content: "ℹ"; font-family: system-ui; }
.fa-th-large::before { content: "⊞"; font-family: system-ui; }
.fa-video::before { content: "📹"; font-family: system-ui; }
.fa-music::before { content: "♪"; font-family: system-ui; }
.fa-headset::before { content: "🎧"; font-family: system-ui; }
.fa-church::before { content: "⛪"; font-family: system-ui; }
.fa-phone-alt::before, .fa-phone::before { content: "📞"; font-family: system-ui; }
.fa-envelope::before { content: "✉"; font-family: system-ui; }
.fa-share-alt::before { content: "↗"; font-family: system-ui; }
.fa-play::before { content: "▶"; font-family: system-ui; font-size: 1.6rem; }
.fa-pause::before { content: "⏸"; font-family: system-ui; font-size: 1.6rem; }
.fa-volume-up::before { content: "🔊"; font-family: system-ui; }
.fa-volume-down::before { content: "🔉"; font-family: system-ui; }
.fa-volume-mute::before { content: "🔇"; font-family: system-ui; }
.fa-external-link-alt::before { content: "↗"; font-family: system-ui; }
.fa-broadcast-tower::before { content: "📡"; font-family: system-ui; }
.fa-history::before { content: "⏱"; font-family: system-ui; }
.fa-link::before { content: "🔗"; font-family: system-ui; }
.fa-list::before { content: "☰"; font-family: system-ui; }

/* Dashboard Styles */
.dashboard-content {
    overflow-y: auto;
    padding-bottom: 10px;
}

.dashboard-section {
    margin-bottom: 25px;
}

.dashboard-title {
    color: var(--gold-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Live Streams */
.live-streams {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stream-card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.stream-card:active {
    transform: scale(0.98);
}

.stream-thumbnail {
    position: relative;
    width: 100%;
    background: #000;
}

.stream-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.youtube-embed-small {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-embed-small iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stream-info {
    padding: 15px;
}

.stream-info h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 5px;
}

.stream-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.video-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.video-card:active {
    transform: scale(0.95);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--accent-color);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: background 0.3s ease;
}

.video-card:hover .play-overlay {
    background: var(--highlight-color);
}

.video-info {
    padding: 12px;
}

.video-info h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-link-btn {
    flex: 1;
    min-width: 100px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.quick-link-btn i {
    font-size: 1.5rem;
    color: var(--gold-color);
}

.quick-link-btn span {
    font-size: 0.85rem;
    text-align: center;
}

.quick-link-btn:active {
    transform: scale(0.95);
    background: var(--accent-color);
}

.nav-tab:hover {
    background: var(--accent-color);
}

.nav-tab.active {
    background: var(--highlight-color);
    box-shadow: var(--shadow);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-section {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gold-color);
}

/* Radio Player */
.radio-player {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.player-visual {
    text-align: center;
    margin-bottom: 30px;
}

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-bottom: 20px;
}

.bar {
    width: 6px;
    background: var(--gradient-2);
    border-radius: 3px;
    animation: equalize 0.8s ease-in-out infinite;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes equalize {
    0%, 100% { height: 10px; }
    50% { height: 50px; }
}

.equalizer.paused .bar {
    animation: none;
    height: 10px;
}

.now-playing {
    margin-top: 15px;
}

.now-playing p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--highlight-color);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--gold-color);
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    transform: scale(1.05);
}

.play-button:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.volume-control i {
    font-size: 1.2rem;
    color: var(--highlight-color);
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    background: var(--accent-color);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

#volumeValue {
    font-size: 0.9rem;
    min-width: 40px;
    text-align: right;
}

/* Embed Containers */
.embed-container {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.facebook-embed {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    flex: 1;
}

.facebook-embed iframe {
    height: 100%;
}

.youtube-embed {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    min-height: 0;
}

.youtube-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.website-frame {
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    flex: 1;
    min-height: 0;
}

.website-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Info Cards */
.info-card {
    background: var(--accent-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
    margin-top: 15px;
    flex-shrink: 0;
}

.info-card h3 {
    color: var(--gold-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    line-height: 1.6;
    opacity: 0.95;
    font-size: 0.95rem;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--highlight-color);
}

.info-card p {
    line-height: 1.6;
    opacity: 0.9;
}

.info-card .note {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 10px;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    background: var(--highlight-color);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
}

.external-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* About Section */
.about-content {
    flex: 1;
    overflow-y: auto;
}

.about-section {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.about-section h3 {
    color: var(--gold-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    display: none;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--highlight-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--highlight-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.copyright {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 600px) {
    .header {
        padding: 12px 15px 8px 15px;
    }

    .header-content .logo {
        height: 50px;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .nav-tab {
        font-size: 0.7rem;
        padding: 8px 4px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .dashboard-title {
        font-size: 1rem;
    }

    .nav-tab i {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 15px;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .content-section {
        padding: 15px;
    }

    .radio-player {
        padding: 20px 15px;
    }

    .embed-container {
        padding: 12px;
    }
}

@media (max-width: 400px) {
    .content-section {
        padding: 12px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-light);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--highlight-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b81;
}
