/* Home showcase layout: 3 items per row per category */

.showcase-page {
    max-width: 1320px;
    margin: 0 auto;
    color: #1e293b;
    --title-color: #0f172a;
    --title-weight: 800;
    --title-tracking: -0.02em;
}

.paper-hero {
    text-align: center;
    margin: 0 auto 2.35rem;
    padding: 0.1rem 0 1.1rem;
}

.paper-hero::after {
    content: "";
    display: block;
    width: min(980px, 96%);
    height: 1px;
    margin: 1.15rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.2), transparent);
}

.paper-title {
    margin-bottom: 0.9rem;
    color: var(--title-color);
}

.paper-title-main {
    display: block;
    font-size: clamp(2rem, 1.8vw + 1.3rem, 2.9rem);
    line-height: 1.05;
    font-weight: var(--title-weight);
    letter-spacing: var(--title-tracking);
}

.paper-title-sub {
    display: block;
    margin-top: 0.45rem;
    font-size: clamp(1.05rem, 1vw + 0.9rem, 1.45rem);
    line-height: 1.28;
    font-weight: 500;
    color: #1e293b;
}

.paper-authors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.85rem;
    margin-bottom: 0.55rem;
}

.paper-authors a {
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: none;
}

.paper-authors a:hover {
    text-decoration: underline;
}

.paper-affiliation {
    margin-bottom: 0.2rem;
    color: #334155;
}

.paper-contact {
    margin-bottom: 0.25rem;
    color: #334155;
    font-family: var(--font-family-monospace);
    font-size: 0.88rem;
}

.paper-notes {
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.92rem;
}

.paper-acceptance {
    margin: -0.2rem 0 1rem;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.96rem;
    letter-spacing: 0.01em;
}

.paper-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.paper-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.48rem 0.88rem;
    border-radius: 999px;
    color: #ffffff;
    background: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0;
    line-height: 1;
}

.paper-link-btn:hover {
    color: #ffffff;
    background: #1f2937;
    text-decoration: none;
}

.paper-link-btn.is-upcoming {
    background: #6b7280;
    cursor: default;
    pointer-events: none;
}

.showcase-section {
    margin-bottom: 2.5rem;
}

.demo-video-section {
    margin-top: 0.8rem;
    margin-bottom: 1.9rem;
    padding-top: 1.15rem;
}

.demo-video-section::before {
    content: "";
    display: block;
    width: min(980px, 96%);
    height: 1px;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.22), transparent);
}

.demo-video-wrap {
    width: min(980px, 100%);
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.demo-video-frame {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.samples-heading {
    margin: 0 auto 0.2rem;
    padding-top: 0.25rem;
    text-align: center;
}

.samples-title {
    margin: 0;
    color: var(--title-color);
    font-size: clamp(1.75rem, 1.35vw + 1.05rem, 2.35rem);
    font-weight: var(--title-weight);
    letter-spacing: var(--title-tracking);
    line-height: 1.1;
}

.showcase-nav {
    margin: 1rem auto 1.75rem;
    display: flex;
    justify-content: center;
}

.showcase-nav-track {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.92);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}

.showcase-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 0.44rem 0.9rem;
    border-radius: 999px;
    color: var(--title-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.showcase-nav-link:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.showcase-section:last-child {
    margin-bottom: 0;
}

.abstract-section {
    margin-top: 0.2rem;
}

.abstract-wrap {
    width: min(980px, 100%);
    margin: 0 auto;
}

.abstract-text {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
}

.showcase-section-header {
    margin-bottom: 1rem;
    text-align: center;
}

.showcase-section-header h3 {
    margin: 0;
    color: var(--title-color);
    font-size: clamp(1.6rem, 1.05vw + 1rem, 2.05rem);
    font-weight: var(--title-weight);
    letter-spacing: var(--title-tracking);
    line-height: 1.12;
}

.showcase-item {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.showcase-media {
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0.2rem;
}

.media-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.primitive-strip {
    padding: 0.75rem 0.8rem 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.primitive-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 0.45rem;
}

.primitive-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
}

.primitive-list-daehyeop {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.primitive-list-daehyeop .primitive-chip-shape {
    grid-column: span 2;
}

.primitive-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    text-decoration: none;
    min-width: 0;
}

.primitive-tile:hover {
    border-color: rgba(29, 78, 216, 0.45);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.primitive-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    padding: 0.12rem;
    display: block;
    background: #e2e8f0;
}

.primitive-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1;
    min-height: 2.05rem;
    text-align: center;
}

.primitive-chip-text {
    justify-self: stretch;
}

.primitive-chip-shape {
    gap: 0.32rem;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.primitive-chip-shape > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primitive-shape-icon {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    background: #2563eb;
    flex: 0 0 auto;
}

.primitive-shape-circle {
    border-radius: 50%;
}

.primitive-shape-square {
    border-radius: 2px;
}

.primitive-shape-diamond {
    transform: rotate(45deg);
    border-radius: 1px;
}

.primitive-shape-triangle {
    border-radius: 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.primitive-shape-star {
    width: auto;
    height: auto;
    background: transparent;
    color: #2563eb;
    font-size: 0.65rem;
    line-height: 1;
}

.primitive-shape-star::before {
    content: "\2605";
}

.primitive-prompt {
    grid-column: 1 / -1;
    display: block;
    padding: 0.42rem 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: left;
    word-break: break-word;
}

.primitive-collection {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.74rem;
    line-height: 1.2;
}

.primitive-collection strong {
    font-weight: 700;
    color: #1e293b;
}

.primitive-collection span:last-child {
    color: #475569;
    font-weight: 600;
}

.primitive-prompt strong {
    font-weight: 700;
    color: #1e293b;
}

.primitive-empty {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.78rem;
}

@media (max-width: 991.98px) {
    .showcase-media {
        aspect-ratio: 16 / 9;
    }

    .primitive-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .primitive-list-daehyeop {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .paper-hero {
        padding: 0 0.2rem 0.9rem;
        margin-bottom: 2rem;
    }

    .paper-link-btn {
        font-size: 0.86rem;
    }

    .paper-contact {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .showcase-section {
        margin-bottom: 2rem;
    }

    .showcase-section-header h3 {
        font-size: clamp(1.35rem, 1vw + 1rem, 1.65rem);
    }

    .showcase-nav {
        margin-top: 0.35rem;
        margin-bottom: 1.3rem;
    }

    .showcase-nav-link {
        font-size: 0.84rem;
        min-width: 102px;
        padding: 0.4rem 0.75rem;
    }

    .samples-title {
        font-size: clamp(1.45rem, 1.3vw + 0.95rem, 1.85rem);
    }

    .primitive-label {
        font-size: 0.76rem;
    }

    .primitive-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .primitive-list-daehyeop {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .primitive-chip {
        font-size: 0.76rem;
    }
}
