/* =============================================================
   Website Showcase by Foxco  |  v2.0.0
   Image-first layout. Tabs optional via repeater.
   ============================================================= */

/* ---- Wrapper ---------------------------------------------- */
.foxco-showcase {
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ---- Card -------------------------------------------------- */
.fsc-card {
    width: 100%;
    background: #0e0e0e;
    border-radius: 20px;
    padding: 40px 44px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        0 24px 64px rgba(0,0,0,0.5),
        0  0   0  1px rgba(255,255,255,0.025);
    box-sizing: border-box;
    overflow: hidden;
}

/* Accent top line */
.fsc-top-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 2;
    pointer-events: none;
    transition: background 0.45s ease;
}

/* ---- Header row: brand + tabs ----------------------------- */
.fsc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.fsc-brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2c2c2c;
}

/* ---- Tab pills -------------------------------------------- */
.fsc-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fsc-tab {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1.5px solid #222;
    background: transparent;
    color: #3a3a3a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.fsc-tab:hover:not(.active) {
    border-color: #2e2e2e;
    color: #555;
}

/* ---- Item panels ------------------------------------------ */
.fsc-item {
    display: none;
}

.fsc-item.active {
    display: block;
    animation: fscFadeIn 0.25s ease both;
}

/* ---- Image area ------------------------------------------- */
.fsc-image-area {
    width: 100%;
    min-height: 400px;
    background-color: #080808;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    box-sizing: border-box;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 24px 48px rgba(0,0,0,0.45);
    transition: border-color 0.4s ease;
}

/* Glow blob */
.fsc-image-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.30;
    transition: opacity 0.4s ease;
}

/* Dot grid (shown when bg_style=dots) */
.fsc-image-dots {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Gradient overlay (shown when bg_style=gradient) */
.fsc-image-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Image itself */
.fsc-image-area img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
    animation: fscImgUp 0.45s 0.05s ease both;
    display: block;
}

/* Placeholder when no image */
.fsc-image-placeholder {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.6;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ---- Meta section (below image) --------------------------- */
.fsc-meta {
    padding-top: 28px;
}

.fsc-meta-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

/* ---- Headline + tagline ----------------------------------- */
.fsc-headline {
    font-family: 'Syne', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.028em;
    color: #fff;
    animation: fscUp 0.30s ease both;
}

.fsc-tagline {
    font-size: 15px;
    font-weight: 500;
    color: #3a3a3a;
    line-height: 1.45;
    animation: fscUp 0.32s 0.05s ease both;
}

/* ---- Feature grid ----------------------------------------- */
.fsc-feat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.fsc-feat-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 0;
    border-bottom: 1px solid #1a1a1a;
    opacity: 0;
    animation: fscUp 0.32s ease both;
}

.fsc-feat-item:last-child,
.fsc-feat-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.fsc-feat-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fsc-feat-label {
    font-size: 13.5px;
    font-weight: 500;
    color: #777;
    line-height: 1.3;
}

/* ---- CTA row ---------------------------------------------- */
.fsc-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.fsc-price-block {
    line-height: 1;
}

.fsc-price-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #282828;
}

.fsc-price-amount {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #404040;
    margin-top: 4px;
}

.fsc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    text-decoration: none;
    line-height: 1;
    color: #fff;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.fsc-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    color: #fff;
}

/* ---- Keyframes -------------------------------------------- */
@keyframes fscFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fscUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fscImgUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 768px) {
    .fsc-card {
        padding: 28px 24px;
    }
    .fsc-headline {
        font-size: 28px;
    }
    .fsc-feat-grid {
        grid-template-columns: 1fr;
    }
    .fsc-image-area {
        padding: 28px 20px;
        min-height: 260px;
    }
    .fsc-image-area img {
        max-height: 260px;
    }
}
