/* ============================================================
   BuildX Learning Center / Grid + Filter Styles
   Also used by: Floor Plans, Podcast Archive, Completed Projects
   ============================================================ */

/* ── Filter Tabs ────────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.filter-tab {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-tab:hover {
    color: #000000;
    border-color: #F5A623;
}

.filter-tab--active {
    background: #F5A623;
    color: #000;
    border-color: #F5A623;
}

.filter-tab--active:hover {
    background: #E09510;
    border-color: #E09510;
}

/* ── Learning Center Grid ───────────────────────────────────── */
.lc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Learning Center Card ───────────────────────────────────── */
.lc-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.lc-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.lc-card .card__image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #f0f0f0;
}

/* Podcast cards use 16:9 YouTube thumbnails */
.page-podcast .lc-card .card__image {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.lc-card .card__body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.lc-card .card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: #000000;
    margin-bottom: 8px;
}

.lc-card:hover .card__title {
    color: #F5A623;
}

.lc-card .card__excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.55;
    flex: 1;
}

/* ── Card Hidden State (filter) ─────────────────────────────── */
.lc-card[data-hidden="true"] {
    display: none;
}

/* ── Responsive Grid ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .lc-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 6px;
    }
    
    .filter-tab {
        padding: 6px 14px;
        font-size: 0.8125rem;
    }
}
