/* start grid section */
/* start card style */
.podcastWrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 6rem 1rem;
    text-align: center;
}

.grid {
    max-width: 1440px;
    padding: 0;
}

.card {
    text-decoration: none;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    color: var(--foreground);
    background: var(--podcast2);
    border-radius: 1rem;
    box-shadow: 0 4px 30px var(--shadow);
    padding: 0;
}

.thumb {
    width: 100%;
    padding-bottom: 57%;
    background-size: cover;
    background-position: center center;
    border-radius: 1rem 1rem 0 0;
}

.category {
    height: 25px;
    width: auto;
    padding: 0 0.5rem;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 1;
    border-radius: 25px;
    border: 1px solid var(--podcast1);
    background: var(--podcast2);
}

.tag {
    font-size: 16px;
    text-transform: uppercase;
}

article {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    justify-content: space-between;
}

.date {
    font-size: 14px;
    font-family: monospace;
    letter-spacing: 0.05rem;
}

.description {
    overflow: hidden;
    max-height: 3rem;
    margin-top: 1rem;
    transition: max-height .35s ease;
    position: relative;
}

.description.expanded {
    max-height: 1000px;
}

.description p {
    margin: 0 0 1rem;
}

.description p:last-child {
    margin-bottom: 0;
}

.readMore {
    display: inline-block;
    color: var(--podcast1);
    transition: 0.3s;
    cursor: pointer;
    user-select: none;
}

.readMore:hover {
    color: var(--foreground);
}

.listenLabel {
    margin: 1rem 0 0 0;
}

.platformLinks {
    text-align: center;
    margin-bottom: 1rem;
}

.spotify {
    color: rgba(30, 215, 96, 1);
}

.spotify:hover {
    color: rgba(30, 215, 96, .4);
}

.youtube {
    color: rgba(253, 0, 51, 1);
}

.youtube:hover {
    color: rgba(253, 0, 51, .4);
}

.applePodcasts {
    color: rgba(208, 111, 243, 1);
}

.applePodcasts:hover {
    color: rgba(208, 111, 243, .4);
}

.patreon {
    color: rgba(255, 255, 255, 1);
}

.patreon:hover {
    color: rgba(255, 255, 255, .4);
}

/* end card style */
/* end grid section */


/* start podcast search */
/* ============================= */
/* Search Wrapper */
/* ============================= */

.searchWrapper {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;

    max-width: calc(1440px + 2rem);
    margin: 0 auto;
    padding: 0 1rem 1rem 1rem;

    box-sizing: border-box;
}


/* ============================= */
/* Search Panel */
/* ============================= */

.searchPanel {
    position: relative;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;

    opacity: 0;
    pointer-events: none;

    transform: translateX(30px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}


/* Geöffnet */

.searchWrapper.open .searchPanel {
    opacity: 1;
    pointer-events: auto;

    transform: translateX(0);
}


/* ============================= */
/* Filter Chips */
/* ============================= */

.filterBar {
    display: flex;

    width: 100%;

    gap: .35rem;

    overflow-x: auto;
    overflow-y: hidden;

    flex-wrap: nowrap;

    scrollbar-width: none;
}


.filterBar::-webkit-scrollbar {
    display: none;
}


/* ============================= */
/* Filter Buttons */
/* ============================= */

.filter {
    height: 25px;

    width: auto;

    padding: 0 .5rem;

    flex-shrink: 0;

    border-radius: 25px;

    border: 1px solid var(--podcast1);

    background: var(--podcast2);

    cursor: pointer;

    font-size: 16px;

    box-shadow: none;
}


.filter:hover {
    background: var(--gradient);
    border: 1px solid var(--transparent);
}


.filter.active {
    background: var(--gradient2);
    border: none;
}


.filter::after {
    content: none;
}


/* ============================= */
/* Search Container */
/* ============================= */

.searchContainer {
    position: relative;

    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    box-sizing: border-box;
}


/* ============================= */
/* Input */
/* ============================= */

#searchInput {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    font-size: 1rem;
    background: var(--input1);
}

#searchInput:focus {
    border: 1px solid var(--podcast1);
}

/* ============================= */
/* Search Button */
/* ============================= */

#searchToggle {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 25px;
    cursor: pointer;
}

/* end podcast search */

/* start responsive design */
/* screen larger than 600px 2 column */
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* screen larger than 900px 3 columns */
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* end responsive design */