@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

:root {
    --dark-blue-bg: #0a192f;
    --primary-blue: #3a7bd5;
    --glow-blue: #00c6ff;
    --light-slate: #ccd6f6;
    --slate: #8892b0;
    --white: #e6f1ff;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark-blue-bg);
    font-family: var(--font-sans);
    color: var(--light-slate);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before, body::after {
    content: "";
    position: fixed;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 250px;
    z-index: -1;
    background-repeat: repeat-x;
    background-size: 1440px 250px;
    animation: wave 24s linear infinite;
    will-change: transform;
}

body::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C240,20 240,100 480,60 C720,20 720,100 960,60 C1200,20 1200,100 1440,60 L1440,120 L0,120 Z' fill='%2300c6ff' fill-opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation-duration: 24s;
}

body::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C240,90 240,10 480,50 C720,90 720,10 960,50 C1200,90 1200,10 1440,50 L1440,120 L0,120 Z' fill='%233a7bd5' fill-opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.3;
    animation-duration: 30s;
}

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

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

header {
    text-align: center;
    padding: 2rem 0 1rem;
}

.logo {
    width: clamp(96px, 18vw, 130px);
    height: clamp(96px, 18vw, 130px);
    margin-bottom: 1rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 0 30px var(--glow-blue), 0 0 60px rgba(0, 198, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--glow-blue), 0 0 80px rgba(0, 198, 255, 0.4);
}

.site-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 0 12px var(--glow-blue), 0 0 24px rgba(0, 198, 255, 0.3);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.scripture-verse {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-slate);
    margin-bottom: 2rem;
    text-align: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(100, 125, 170, 0.2);
    border-bottom: 1px solid rgba(100, 125, 170, 0.2);
}

.main-nav a {
    color: var(--light-slate);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    text-shadow: 0 0 8px var(--glow-blue);
    background-color: rgba(0, 198, 255, 0.1);
}

main {
    padding-top: 2rem;
}

main section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(100, 125, 170, 0.2);
}

main section:last-child {
    border-bottom: none;
}

h2.section-title {
    font-size: 2rem;
    color: var(--white);
    text-shadow: 0 0 10px var(--glow-blue), 0 0 20px rgba(0, 198, 255, 0.2);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: justify;
    color: var(--light-slate);
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-button {
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.3));
    border: 2px solid var(--primary-blue);
    color: var(--light-slate);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(58, 123, 213, 0.2);
    transition: all 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 198, 255, 0.4);
    background: linear-gradient(145deg, rgba(0, 198, 255, 0.15), rgba(58, 123, 213, 0.1));
    transform: translateY(-3px);
    color: var(--white);
    border-color: var(--glow-blue);
}

.search-bar {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background-color: var(--dark-blue-bg);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    color: var(--light-slate);
    box-shadow: 0 0 10px -5px var(--glow-blue);
}

.search-bar::placeholder {
    color: var(--slate);
}

/* Music Page Additions */
.playlist-controls {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playlist-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--slate);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--light-slate);
    border-color: var(--glow-blue);
    background-color: rgba(0, 198, 255, 0.1);
    box-shadow: 0 0 8px -2px var(--glow-blue);
}

.music-player {
    max-width: 600px;
    margin: auto;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.9), rgba(13, 37, 63, 0.8));
    border-radius: 12px;
    border: 1px solid rgba(58, 123, 213, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 198, 255, 0.15);
}

.music-player h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

.music-player audio {
    width: 100%;
    margin-top: 1rem;
}

.music-columns {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.music-panel {
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(58, 123, 213, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.music-panel h4 {
    margin: 0 0 1rem;
    color: var(--white);
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.35);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.panel-header h4 {
    margin: 0;
}

.collapse-toggle {
    border: 1px solid rgba(0, 198, 255, 0.4);
    background: rgba(0, 198, 255, 0.08);
    color: var(--light-slate);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.collapse-toggle:hover {
    border-color: var(--glow-blue);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
    color: var(--white);
}

.pinned-panel {
    position: sticky;
    top: 1.5rem;
    align-self: start;
}

/* Custom Audio Player Styles (limited by browser) */
audio::-webkit-media-controls-panel {
    background-color: var(--dark-blue-bg);
}
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-timeline {
    filter: invert(1) grayscale(1) brightness(2);
}

.music-playlist {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.music-playlist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(100, 125, 170, 0.2);
}

.music-playlist li:last-child {
    border-bottom: none;
}

.music-playlist a {
    display: block;
    flex: 1;
    padding: 0.5rem 0.75rem;
    color: var(--light-slate);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.music-playlist a:hover {
    color: var(--light-slate);
    background-color: rgba(0, 198, 255, 0.1);
    text-shadow: 0 0 5px var(--glow-blue);
}

.pin-btn {
    border: 1px solid rgba(0, 198, 255, 0.4);
    background: rgba(0, 198, 255, 0.08);
    color: var(--light-slate);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pin-btn:hover {
    border-color: var(--glow-blue);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
    color: var(--white);
}


footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--light-slate);
}

footer p {
    text-align: center;
}

.privacy-note {
    max-width: 700px;
    margin: 0.75rem auto 0;
    font-size: 0.85rem;
    color: var(--slate);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .tabs-container {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 100%;
        max-width: 350px;
        text-align: center;
    }
    
    p {
        text-align: left;
    }

    .music-columns {
        grid-template-columns: 1fr;
    }

    .pinned-panel {
        position: static;
    }
}
