/* ============================================================
   pages/showcase.css — 展示作品頁
   創巢數位 Nest Digital | 版本 redesign-v1
   ============================================================ */

/* ════════════════════════════════════════════════
   Hero
   ════════════════════════════════════════════════ */

.sc-hero {
    padding: calc(var(--sp-w1) + 56px) var(--sec-px) var(--sp-m2);
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(400px, 70vw, 900px);
    height: clamp(300px, 50vw, 600px);
    background: radial-gradient(
        ellipse,
        rgba(var(--c-blue-rgb), 0.12) 0%,
        rgba(var(--c-blue-rgb), 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.sc-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sc-hero__eyebrow {
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(var(--c-cyan-rgb), 0.72);
    margin: 0 0 var(--sp-md);
    padding-top: 0.6em;
    border-top: 1px solid rgba(var(--c-yellow-rgb), 0.45);
}

.sc-hero__title {
    font-family: var(--f-serif-cjk);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: var(--c-stellar);
    margin: 0;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 1),
        2px 2px 3px rgba(0, 0, 0, 0.85),
        0 0 12px rgba(0, 0, 0, 1),
        0 0 24px rgba(0, 0, 0, 0.5);
}

.sc-hero__title-en {
    font-family: var(--f-display-en);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.08em;
    color: rgba(var(--c-cyan-rgb), 0.85);
    margin: 0.5em 0 0;
}

.sc-hero__divider {
    width: clamp(160px, 25vw, 280px);
    height: 1px;
    margin: var(--sp-md) 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--c-blue-rgb), 0.30) 25%,
        rgba(var(--c-blue-rgb), 0.85) 50%,
        rgba(var(--c-blue-rgb), 0.30) 75%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(var(--c-blue-rgb), 0.40);
}

.sc-hero__lead {
    font-family: var(--f-sans);
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: rgba(var(--c-stellar-rgb), 0.65);
    margin: 0;
}

/* ════════════════════════════════════════════════
   卡片格線
   ════════════════════════════════════════════════ */

.sc-grid-section {
    padding-bottom: var(--sp-w1);
}

.sc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--sec-px);
}

.sc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
}

/* ════════════════════════════════════════════════
   作品卡片
   ════════════════════════════════════════════════ */

.sc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    position: relative;
}

/* ── 縮圖區 ── */

.sc-card__thumb-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}

.sc-card__thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-card__thumb-link:hover img {
    transform: scale(1.04);
}

/* 佔位符（截圖補上後可移除） */
.sc-card__placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            rgba(var(--c-blue-rgb), 0.08) 0%,
            rgba(var(--c-navy-rgb), 0.25) 100%);
    border-bottom: 1px solid rgba(var(--c-stellar-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-base);
}

.sc-card__thumb-link:hover .sc-card__placeholder {
    background:
        linear-gradient(135deg,
            rgba(var(--c-blue-rgb), 0.14) 0%,
            rgba(var(--c-navy-rgb), 0.35) 100%);
}

.sc-card__placeholder-text {
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    color: rgba(var(--c-stellar-rgb), 0.20);
    text-align: center;
    line-height: 1.8;
}

/* Hover overlay */
.sc-card__thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--c-black-rgb), 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t-base);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sc-card__thumb-link:hover .sc-card__thumb-overlay {
    opacity: 1;
}

.sc-card__view-btn {
    font-family: var(--f-mono);
    font-size: var(--fs-sm);
    letter-spacing: 0.12em;
    color: var(--c-stellar);
    padding: 0.6em 1.4em;
    border: 1px solid rgba(var(--c-cyan-rgb), 0.55);
    border-radius: 6px;
    background: rgba(var(--c-black-rgb), 0.60);
    transition: background var(--t-fast), border-color var(--t-fast);
}

.sc-card__thumb-link:hover .sc-card__view-btn {
    background: rgba(var(--c-cyan-rgb), 0.12);
    border-color: rgba(var(--c-cyan-rgb), 0.85);
}

/* ── 內文區 ── */

.sc-card__body {
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    flex: 1;
    position: relative;
    z-index: 1;
}

.sc-card__label {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(var(--c-cyan-rgb), 0.65);
    padding-top: 0.5em;
    border-top: 1px solid rgba(var(--c-yellow-rgb), 0.30);
    align-self: flex-start;
}

.sc-card__title {
    font-family: var(--f-serif-cjk);
    font-size: clamp(1.1rem, 1.8vw, 1.375rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-stellar);
    margin: 0;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 1),
        2px 2px 3px rgba(0, 0, 0, 0.85),
        0 0 12px rgba(0, 0, 0, 1),
        0 0 24px rgba(0, 0, 0, 0.5);
}

.sc-card__desc {
    font-family: var(--f-sans);
    font-size: var(--fs-sm);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: rgba(var(--c-stellar-rgb), 0.60);
    margin: 0;
    flex: 1;
}

/* ── 查看連結（呼應 service-card__arrow 設計語言）── */

.sc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    font-family: var(--f-display-en);
    font-size: var(--fs-sm);
    font-style: italic;
    letter-spacing: 0.06em;
    color: rgba(var(--c-stellar-rgb), 0.65);
    text-decoration: none;
    margin-top: 0.4em;
    align-self: flex-start;
    transition: color var(--t-base);
}

.sc-card__link-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: rgba(var(--c-stellar-rgb), 0.45);
    transition: width var(--t-base), background var(--t-base);
}

.sc-card__link:hover {
    color: var(--c-yellow);
}

.sc-card__link:hover .sc-card__link-line {
    width: 56px;
    background: rgba(var(--c-yellow-rgb), 0.80);
}

/* ════════════════════════════════════════════════
   底部 CTA
   ════════════════════════════════════════════════ */

.sc-cta {
    margin-top: var(--sp-m2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-md);
    text-align: center;
}

.sc-cta__text {
    font-family: var(--f-sans);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(var(--c-stellar-rgb), 0.60);
    margin: 0;
}

/* ════════════════════════════════════════════════
   RWD
   ════════════════════════════════════════════════ */

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

    .sc-grid .sc-card:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        justify-self: center;
    }
}

@media (max-width: 580px) {
    .sc-hero {
        padding: calc(var(--sp-m2) + 56px) var(--sec-px) var(--sp-m1);
    }

    .sc-container {
        padding: 0 1.25rem;
    }

    .sc-grid {
        grid-template-columns: 1fr;
    }

    .sc-grid .sc-card:last-child {
        grid-column: auto;
        max-width: none;
        justify-self: auto;
    }
}
