/*
 * Showcase Styles
 * Langgam Fikir WordPress Theme
 *
 * Loaded on the front page only, when the showcase is enabled
 * (see inc/enqueue.php). Companion script: assets/js/showcase.js.
 */

/*--------------------------------------------------------------
# Section Shell
--------------------------------------------------------------*/
.lf-showcase {
    position: relative;
    overflow: hidden;
    background-color: #211A13; /* deep variant of --color-primary */
    padding: clamp(3.5rem, 9vh, 6rem) 0;
}

/*--------------------------------------------------------------
# Background Layers
--------------------------------------------------------------*/
.lf-showcase-backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lf-showcase-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.045);
    transition: opacity 0.7s ease, transform 1.4s ease;
    will-change: opacity, transform;
}

.lf-showcase-bg.is-active {
    opacity: 1;
    transform: scale(1);
}

.lf-showcase-bg-default {
    background-image: radial-gradient(
        120% 85% at 50% 0%,
        rgba(201, 169, 97, 0.14) 0%,
        rgba(201, 169, 97, 0) 55%
    );
    background-color: #211A13;
}

.lf-showcase-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(33, 26, 19, 0.62); /* keeps titles readable over any cover */
    z-index: 1;
}

/*--------------------------------------------------------------
# Inner Layout
--------------------------------------------------------------*/
.lf-showcase-inner {
    position: relative;
    z-index: 2;
}

.lf-showcase-heading {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #FAF7F1;
    text-align: center;
    margin: 0 0 var(--spacing-lg, 2.5rem);
}

/*--------------------------------------------------------------
# Title Grid
--------------------------------------------------------------*/
.lf-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(201, 169, 97, 0.18);
    border-left: 1px solid rgba(201, 169, 97, 0.18);
}

.lf-showcase-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.lf-showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 230px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    border-right: 1px solid rgba(201, 169, 97, 0.18);
    border-bottom: 1px solid rgba(201, 169, 97, 0.18);
}

.lf-showcase-status {
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(201, 169, 97, 0.6);
    transition: color 0.35s ease;
}

.lf-showcase-title {
    font-family: var(--font-primary);
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    font-weight: 400;
    line-height: 1.35;
    max-width: 22ch;
    color: rgba(250, 247, 241, 0.65);
    transition: color 0.35s ease;
}

/*--------------------------------------------------------------
# Hover / Focus States
--------------------------------------------------------------*/
.lf-showcase-grid:hover .lf-showcase-item:not(:hover) .lf-showcase-title,
.lf-showcase-grid:focus-within .lf-showcase-item:not(:focus) .lf-showcase-title {
    color: rgba(250, 247, 241, 0.3);
}

.lf-showcase-grid:hover .lf-showcase-item:not(:hover) .lf-showcase-status,
.lf-showcase-grid:focus-within .lf-showcase-item:not(:focus) .lf-showcase-status {
    color: rgba(201, 169, 97, 0.3);
}

.lf-showcase-item:hover .lf-showcase-title,
.lf-showcase-item:focus .lf-showcase-title {
    color: #FFFFFF;
}

.lf-showcase-item:hover .lf-showcase-status,
.lf-showcase-item:focus .lf-showcase-status {
    color: var(--color-accent);
}

.lf-showcase-item:focus-visible {
    outline: 1px solid rgba(201, 169, 97, 0.65);
    outline-offset: -10px;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 968px) {
    .lf-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lf-showcase-item {
        min-height: 190px;
    }
}

@media (max-width: 600px) {
    .lf-showcase-grid {
        grid-template-columns: 1fr;
    }

    .lf-showcase-item {
        min-height: 130px;
        padding: 1.5rem 1rem;
    }
}

/*--------------------------------------------------------------
# Reduced Motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
    .lf-showcase-bg {
        transform: none;
        transition: opacity 0.15s linear;
    }

    .lf-showcase-bg.is-active {
        transform: none;
    }
}
