/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Toetsenbord-navigatie zichtbaar houden */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #091c2b;
    outline-offset: 2px;
}

.orange {
    background: #fd7f13;

}

.bghero {
    background-image: url('podcast_guy_split.png');
    background-size: cover;
    background-color: #0d202e;
}

/* Header Menu */
header {
    background-color: #091c2b;
    color: white;
    /* Iets minder ruimte boven/onder dan de oude 20px: daarmee past het
       beeldmerk royaler in dezelfde balkhoogte als het vroegere tekstlogo. */
    padding: 16px 20px;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul.menu li {
    margin-left: 20px;
}

nav ul.menu li a {
    color: white;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 4px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px;
}

.close-menu {
        display: none;
}        

/* Hero Section */
.hero {
    display: flex;
    align-items: stretch; /* Ensure elements stretch to fill the container height */
    padding: 0; /* Remove padding from hero section */
    background-color: #067b7e;
    color: white;
}

.hero-text {
    flex: 1;
    padding: 50px; /* Add padding only to the text section */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    overflow: hidden; /* Ensure no overflow from image */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fully covers the container */
    border-radius: 0; /* Remove the border-radius if any */
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-button {
    display: inline-block; /* voorkomt gebroken achtergrond bij regelafbreking */
    background-color: #091c2b;
    padding: 14px 26px;
    color: #fd7f13;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Cards Section */
.cards-section {
    padding: 50px;
    background-color: #fd7f13;
}

.container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.card {
    background-color: #ffffff; /* White background */
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    margin-bottom: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.card-footer a {
    text-decoration: none;
    color: #fd7f13;
}

/* Embed Button Styles */
.embed-btn {
    background-color: #067b7e;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.embed-btn:hover {
    background-color: #055a5c;
}

.embed-btn::before {
    content: "⟨/⟩";
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal h2 {
    color: #091c2b;
    margin-bottom: 20px;
    margin-top: 0;
    padding-right: 40px;
}

.code-container {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.4;
}

.copy-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.copy-btn {
    background-color: #fd7f13;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: #e56b0b;
}

.copy-btn.copied {
    background-color: #28a745;
}

.copy-btn.download {
    background-color: #067b7e;
}

.copy-btn.download:hover {
    background-color: #055a5c;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #091c2b;
    font-weight: bold;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Logo als link: het beeldmerk schaalt mee, de hoogte is leidend */
.logo {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.logo img {
    height: 30px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .logo img {
        height: 26px;
    }
}

/* Filterbalk: categorie-chips + zoekveld */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.chip:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.chip.active {
    background-color: #091c2b;
}

.chip.small {
    font-size: 11px;
    padding: 3px 10px;
    background-color: #067b7e;
}

.chip.small:hover {
    background-color: #055a5c;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    min-width: 200px;
}

.search-form button {
    background-color: #091c2b;
    color: #fd7f13;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.category-intro {
    color: white;
    margin-bottom: 20px;
}

/* Podcast-grid en kaarten */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.podcast-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.podcast-card .card-footer {
    margin-top: auto;
}

.podcast-card-head {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.podcast-card-head h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.podcast-card-head h2 a,
.podcast-card-head h1 {
    color: #091c2b;
    text-decoration: none;
    margin: 0 0 5px 0;
}

.podcast-cover {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.podcast-cover.large {
    width: 120px;
    height: 120px;
}

/* Link om een tegel heen mag geen onderstreping onder de initialen tekenen */
.podcast-card-head a {
    text-decoration: none;
}

/* Initialen-tegel: cover-vervanger in merkkleuren */
.cover-initials {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 1px;
    flex-shrink: 0;
    box-shadow: inset 0 -18px 24px rgba(9, 28, 43, 0.25);
    text-decoration: none;
}

.cover-initials.large {
    width: 120px;
    height: 120px;
    font-size: 44px;
    border-radius: 14px;
}

.publisher {
    color: #666;
    font-size: 13px;
    margin: 0 0 5px 0;
}

.rating {
    color: #fd7f13;
    font-size: 14px;
}

.rating.muted {
    color: #999;
    font-size: 12px;
}

.latest-episode {
    font-size: 13px;
    color: #333;
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
}

.card-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}

/* Detailpagina */
.breadcrumb a {
    color: white;
    text-decoration: none;
}

.podcast-detail .card {
    margin-bottom: 20px;
}

.episode-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.episode-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.episode-list li:last-child {
    border-bottom: none;
}

.episode-list a {
    color: #067b7e;
    text-decoration: none;
}

.episode-list small {
    color: #999;
    margin-left: 8px;
}

/* Accounts, portal en reviews */
.page-title {
    color: white;
    margin-top: 0;
}

.auth-card {
    max-width: 460px;
    margin: 0 auto 20px;
}

.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    background: #d4edda;
    color: #155724;
}

.flash.error {
    background: #f8d7da;
    color: #721c24;
}

.star-input {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.star-input label {
    background: #f5f5f5;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
    border: 2px solid transparent;
}

.star-input label:hover {
    border-color: #067b7e;
}

.star-input label:has(input:checked) {
    background: #067b7e;
    color: #fff;
}

.star-input input {
    margin-right: 4px;
}

.review {
    border-top: 1px solid #eee;
    padding: 12px 0;
}

.review p {
    margin: 6px 0 0;
}

.claim-cta {
    margin-top: 12px;
    color: #666;
}

.claim-cta a {
    color: #067b7e;
}

/* Footer */
.site-footer {
    background-color: #091c2b;
    color: white;
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

.site-footer a {
    color: #fd7f13;
}

/* Mobile Styles */

@media (min-width: 768px) {
    /* Center and constrain max width */
    .wrapper {
        max-width: 1024px;
        margin: 0 auto;  /* Centers the content */
        padding: 0 20px; /* Optional padding for mobile to prevent edges from touching */
    }
}

@media (max-width: 768px) {
    .menu-container {
        justify-content: space-between;
    }

    .container {
        flex-direction: column; /* Stack cards vertically on mobile */
    }

    .card {
        flex: 1 1 100%; /* Cards take full width on smaller screens */
        padding: 18px;
    }

    /* Hero: tekst boven, beeld eronder — geen afgesneden gezichten meer */
    .hero {
        flex-direction: column;
    }

    .hero-text {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 28px;
        margin-top: 0;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-image {
        max-height: 280px;
    }

    .hero-image img {
        height: auto;
        max-height: 280px;
        object-position: top;
    }

    .cards-section {
        padding: 30px 20px;
    }

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

    /* Grotere tikdoelen voor filters en zoeken */
    .chip {
        padding: 10px 16px;
        font-size: 14px;
    }

    .chip.small {
        padding: 4px 12px;
        font-size: 12px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="search"] {
        flex: 1;
        min-width: 0;
        padding: 12px;
        font-size: 16px; /* voorkomt inzoomen op iOS */
    }

    .search-form button {
        padding: 12px 20px;
    }

    .star-input label {
        flex: 1;
        text-align: center;
    }

    .page-title {
        font-size: 26px;
    }

    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }

    nav ul.menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #2c3e50;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 10;
        padding-top: 20px;
    }

    nav ul.menu.active {
        display: flex;
    }

    /* Sluitkruis: alleen zichtbaar zolang het menu openstaat. Fixed (niet
       absolute) zodat hij boven het fullscreen-menu zweeft, met een z-index
       één hoger dan dat menu. */
    .close-menu {
        display: none;
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 11;
        width: 44px;
        height: 44px;
        line-height: 1;
        font-size: 30px;
        color: white;
        background: none;
        border: 0;
        cursor: pointer;
    }

    .close-menu.active {
        display: block;
    }

    .modal-content {
        margin: 2% auto;
        padding: 20px;
        width: 95%;
        max-height: 95vh;
    }

    .copy-container {
        flex-direction: column;
    }

    .copy-btn {
        justify-content: center;
    }

    .embed-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}