/**
 * Firepoint Post Listing Styles
 */

.fp-post-wrapper {
    width: 100%;
}

/* Video Hero Section */
.fp-post-video-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.fp-post-video-text {
    flex: 0 0 auto;
    max-width: 380px;
}

.fp-post-video-title {
    color: #FFF;
    font-family: "ginkamedium", serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 48px;
    margin: 0 0 16px 0;
}

.fp-post-video-subtitle {
    color: #FFF;
    font-family: "ginkalight", serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 25px;
    margin: 0;
}

.fp-post-video-player {
    flex: 1 1 auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.fp-post-video-el {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.fp-post-video-poster {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.fp-post-video-iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
}

.fp-post-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
}

.fp-post-video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.fp-post-video-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.fp-post-video-play-overlay:hover .fp-post-video-play-btn {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.fp-post-video-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

/* Filter Section */
.fp-post-filter-section {
    text-align: center;
    margin-bottom: 50px;
}

.fp-post-filter-label {
    color: #FF640F;
    font-family: "grotesque", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.fp-post-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.fp-post-filter-btn {
    background-color: transparent;
    border: 1px solid #FFF;
    border-radius: 50px;
    color: #FFF;
    font-family: "grotesque", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fp-post-filter-btn:hover {
    background-color: rgba(255, 100, 15, 0.3);
    border-color: #FF640F;
    color: #FFF;
}

.fp-post-filter-btn.active {
    background-color: #FF640F;
    border-color: #FF640F;
    color: #FFF;
}

.fp-post-filter-btn.active:hover {
    background-color: #e85a0d;
    border-color: #e85a0d;
    color: #FFF;
}

/* Posts Grid */
.fp-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Post Card */
.fp-post-card {
    background-color: #2D2D2D;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fp-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.fp-post-card.hidden {
    display: none;
}

.fp-post-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.fp-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    backface-visibility: hidden;
    transition: transform 0.4s ease;
}

.fp-post-card:hover .fp-post-card-image img {
    transform: scale(1.05);
}

.fp-post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fp-post-eyebrow {
    color: #FF640F;
    font-family: "General Grotesque Mono", monospace;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    margin: 0;
}

.fp-post-headline {
    color: #FFF;
    font-family: "Ginka", serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    margin: 0;
}

.fp-post-date {
    color: #FFF;
    font-family: "ginkalight", serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
    margin: 10px 0 20px 0;
}

.fp-post-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid #FFF;
    color: #FFF;
    font-family: "grotesque", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.fp-post-card:hover .fp-post-cta {
    background-color: #FF640F;
    border-color: #FF640F;
    color: #FFF;
}

.fp-post-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.fp-post-card:hover .fp-post-cta svg {
    transform: translateX(4px);
}

/* Tablet */
@media (max-width: 1024px) {
    .fp-post-video-section {
        gap: 40px;
    }

    .fp-post-video-title {
        font-size: 32px;
        line-height: 40px;
    }

    .fp-post-video-subtitle {
        font-size: 16px;
        line-height: 22px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .fp-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .fp-post-headline {
        font-size: 22px;
    }

    .fp-post-date {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fp-post-video-section {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }

    .fp-post-video-text {
        max-width: 100%;
        text-align: center;
    }

    .fp-post-video-title {
        font-size: 28px;
        line-height: 36px;
    }

    .fp-post-video-play-btn {
        width: 52px;
        height: 52px;
    }

    .fp-post-video-play-btn svg {
        width: 20px;
        height: 20px;
    }

    .fp-post-filter-section {
        margin-bottom: 35px;
    }

    .fp-post-filter-buttons {
        gap: 10px;
    }

    .fp-post-filter-btn {
        font-size: 12px;
        padding: 10px 20px;
    }

    .fp-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .fp-post-card-content {
        padding: 18px;
        gap: 6px;
    }

    .fp-post-eyebrow {
        font-size: 12px;
    }

    .fp-post-headline {
        font-size: 18px;
    }

    .fp-post-date {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .fp-post-cta {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* Small Mobile - still 2 columns but tighter */
@media (max-width: 480px) {
    .fp-post-grid {
        gap: 12px;
    }

    .fp-post-card-content {
        padding: 15px;
    }

    .fp-post-headline {
        font-size: 16px;
    }

    .fp-post-date {
        font-size: 13px;
    }
}
