/* General body styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Dark background */
    color: white; /* Light text */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Standard */
}

/* Re-enable text selection for input and text areas */
input, textarea, audio {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* Top navigation menu */
.top-nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #0d0d0d; /* Black background */
    color: white;
    min-height: 60px;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a90e2; /* Blue from logo */
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f5f5f5;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

    .nav-link:hover, .nav-link.active {
        background-color: #4a90e2; /* Blue from logo */
        color: #ffffff;
    }

/* Hamburger button styling */
.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 5px;
    padding: 0.25rem 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 850px) {
    .navbar-toggler {
        display: block;
    }

    .nav-menu-container {
        display: none;
        width: 100%;
    }

        .nav-menu-container.show {
            display: block;
        }

    .nav-links {
        flex-direction: column;
        padding-top: 1rem;
    }
}

/* Podcast and episode styling */
.podcast-info-wrapper {
    cursor: pointer;
    transition: transform 0.2s;
}

    .podcast-info-wrapper:hover {
        transform: scale(1.02);
    }

.sticky-player {
    position: sticky;
    top: 60px;
    background-color: #2c2c2c; /* Darker gray */
    padding: 1.5rem;
    border: 1px solid #444;
    border-radius: .5rem;
    z-index: 1010;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    max-height: 35vh;
    overflow-y: auto;
}

    .sticky-player .btn-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        filter: invert(1) grayscale(100) brightness(200%);
    }

.episode-detail {
    line-height: 1.6em;
    max-height: 13em;
    overflow: hidden;
    color: black;
}

.title-sticky-header {
    position: sticky;
    top: 60px;
    z-index: 100;
    background-color: #1a1a1a; /* Dark background */
    padding: 1rem 0;
    border-bottom: 1px solid #444;
}

.episode-summary {
    overflow-wrap: break-word;
    color: black;
}

/* Custom container for main content */
.main-container {
    padding: 0px 20px 20px 20px;
    background-color: #1a1a1a;
}

/* Styling for cards */
.card {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #f5f5f5;
}

.card-title {
    color: #4a90e2; /* Blue from logo */
}

.card-text {
    color: #ccc;
}

.small-text {
    font-size: 0.8em;
}

/* Styling for buttons */
.btn-primary {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

    .btn-primary:hover {
        background-color: #357abd;
        border-color: #357abd;
    }

/* Styling for forms */
.form-control {
    background-color: #333;
    color: #f5f5f5;
    border: 1px solid #555;
}

    .form-control:focus {
        background-color: #444;
        color: #f5f5f5;
        border-color: #4a90e2;
        box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.5);
    }

