/* ── Project Showcase Bar ─────────────────────────── */
/* Self-contained widget — no theme variable dependencies */

.wh-showcase-bar {
    background: #ebe3ca;
    padding: 32px 24px 28px;
    border-bottom: 2px solid #8b7355;
    text-align: center;
    transition: padding 0.35s ease;
}

.wh-showcase-bar-inner {
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
}

.wh-showcase-toggle {
    display: block;
    margin: 14px 0 0 auto;
    background: #f4edd8;
    border: 1px solid #8b7355;
    border-radius: 4px;
    padding: 5px 14px;
    cursor: pointer;
    color: #5c4a38;
    font-size: 0.9rem;
    transition: color 0.2s, border-color 0.2s, background 0.2s, margin 0.35s ease;
    line-height: 1;
}

.wh-showcase-toggle:hover {
    color: #3d2b1f;
    border-color: #3d2b1f;
    background: #ebe3ca;
}

.wh-showcase-bar-tagline,
.wh-showcase-bar-cards {
    transition: opacity 0.3s ease, max-height 0.35s ease;
    opacity: 1;
    max-height: 1200px;
    overflow: hidden;
}

.wh-showcase-bar--collapsed .wh-showcase-bar-tagline,
.wh-showcase-bar--collapsed .wh-showcase-bar-cards {
    opacity: 0;
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

.wh-showcase-bar--collapsed .wh-showcase-bar-tagline {
    margin-bottom: 0;
}

.wh-showcase-bar--collapsed {
    padding: 10px 24px;
}

.wh-showcase-bar--collapsed .wh-showcase-toggle {
    margin-top: 0;
}

.wh-showcase-bar-tagline {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #8b7355;
    margin: 0 0 6px;
    transition: opacity 0.3s ease, max-height 0.35s ease, margin 0.35s ease;
}

.wh-showcase-bar-subtitle {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.00rem;
    color: #5c4a38;
    margin: 0 0 18px;
    transition: opacity 0.3s ease, max-height 0.35s ease, margin 0.35s ease;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
}

.wh-showcase-bar--collapsed .wh-showcase-bar-subtitle {
    opacity: 0;
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

.wh-showcase-bar-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 10px;
}

.wh-project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 14px;
    background: #f4edd8;
    border: 1px solid #c9b99a;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    cursor: pointer;
}

.wh-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #8b7355;
    text-decoration: none;
    color: inherit;
}

.wh-project-card {
    user-select: text;
    -webkit-user-select: text;
}

.wh-project-card--active {
    border-color: #d4a853;
    border-width: 2px;
    box-shadow: 0 2px 12px rgba(212, 168, 83, 0.15);
    cursor: default;
    padding: 15px 15px 13px;
}

.wh-project-card--active:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(212, 168, 83, 0.15);
    border-color: #d4a853;
}

.wh-project-card-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #3d2b1f;
    background: #d4a853;
    padding: 2px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

.wh-project-card-thumb {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid rgba(201, 185, 154, 0.4);
    height: auto;
}

.wh-project-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    user-select: text;
    -webkit-user-select: text;
}

.wh-project-card-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #3d2b1f;
    line-height: 1.2;
}

.wh-project-card-desc {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.82rem;
    color: #5c4a38;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .wh-showcase-bar-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .wh-showcase-bar {
        padding: 24px 16px 20px;
    }

    .wh-showcase-bar-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
