/* =============================================================
   동화책 전시·후기 쇼케이스 (showcase.css)
   Warm Ivory (#FAF8F5) / Deep Forest (#234236) / Terracotta (#C86D51)
   Noto Serif KR / Pretendard Variable 아틀리에 디자인 시스템
   ============================================================= */

.sc-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding-bottom: 48px;
}

/* 상단 히어로 배너 */
.sc-banner {
    background: #F2EDE4;
    border: 1px solid #E5DFD5;
    border-radius: 18px;
    padding: 32px 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sc-banner-text {
    max-width: 680px;
}

.sc-kicker {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #C86D51;
    margin-bottom: 8px;
}

.sc-banner h2 {
    font-family: 'Noto Serif KR', 'Gowun Batang', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1E1E1C;
    line-height: 1.28;
    margin: 0 0 10px;
}

.sc-banner p {
    margin: 0;
    font-size: 0.96rem;
    color: #5C5852;
    line-height: 1.65;
}

.sc-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #234236;
    background: #234236;
    color: #FAF8F5;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sc-btn-3d:hover {
    background: #1A3329;
    border-color: #1A3329;
    color: #FAF8F5;
}

.sc-btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #C86D51;
    background: #C86D51;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sc-btn-add:hover {
    background: #B25B40;
}

/* 필터 & 검색 바 */
.sc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #FFFFFF;
    border: 1px solid #E5DFD5;
    border-radius: 14px;
    padding: 12px 16px;
}

.sc-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sc-chip {
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #E5DFD5;
    background: #FAF8F5;
    color: #5C5852;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.sc-chip:hover {
    border-color: #234236;
    color: #234236;
}

.sc-chip.active {
    background: #234236;
    border-color: #234236;
    color: #FAF8F5;
}

.sc-search {
    position: relative;
    min-width: 220px;
    flex: 0 1 280px;
}

.sc-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5C5852;
    font-size: 0.85rem;
    pointer-events: none;
}

.sc-search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px 8px 34px;
    border-radius: 10px;
    border: 1px solid #E5DFD5;
    background: #FAF8F5;
    color: #1E1E1C;
    font-size: 0.86rem;
}

/* 카드 그리드 */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.sc-card {
    background: #FFFFFF;
    border: 1px solid #E5DFD5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-card:hover {
    border-color: #C86D51;
    box-shadow: 0 10px 26px rgba(35, 66, 54, 0.08);
}

.sc-card.is-private {
    border-style: dashed;
    border-color: #C86D51;
    background: #FFFDFB;
}

.sc-cover-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #F2EDE4;
    overflow: hidden;
    cursor: pointer;
}

.sc-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.sc-card:hover .sc-cover-img {
    transform: scale(1.03);
}

.sc-cover-fallback {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background: linear-gradient(145deg, #F2EDE4 0%, #FAF8F5 100%);
    color: #234236;
}

.sc-cover-fallback i {
    font-size: 2rem;
    color: #C86D51;
}

.sc-cover-fallback span {
    font-family: 'Noto Serif KR', 'Gowun Batang', serif;
    font-weight: 700;
    font-size: 1rem;
}

.sc-video-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 30, 28, 0.78);
    color: #FAF8F5;
    font-size: 0.74rem;
    font-weight: 600;
}

.sc-private-pill {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #C86D51;
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 700;
}

.sc-admin-ops {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.sc-admin-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #E5DFD5;
    background: rgba(255, 255, 255, 0.94);
    color: #1E1E1C;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    cursor: pointer;
}

.sc-admin-icon:hover {
    background: #234236;
    color: #FAF8F5;
    border-color: #234236;
}

.sc-admin-icon.is-del:hover {
    background: #B93829;
    border-color: #B93829;
}

.sc-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.sc-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sc-course-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #EBF0ED;
    color: #234236;
    font-size: 0.76rem;
    font-weight: 700;
}

.sc-title {
    font-family: 'Noto Serif KR', 'Gowun Batang', serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #1E1E1C;
    line-height: 1.35;
    margin: 0;
}

.sc-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5C5852;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-review-quote {
    margin: 2px 0 0;
    padding: 10px 12px;
    border-left: 3px solid #C86D51;
    background: #FAF8F5;
    border-radius: 0 10px 10px 0;
    font-size: 0.88rem;
    color: #1E1E1C;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-card-foot {
    margin-top: auto;
    padding-top: 8px;
}

.sc-detail-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #234236;
    background: transparent;
    color: #234236;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.sc-detail-btn:hover {
    background: #234236;
    color: #FAF8F5;
}

/* 빈 상태 */
.sc-empty {
    grid-column: 1 / -1;
    background: #FFFFFF;
    border: 1px dashed #D6CEC0;
    border-radius: 18px;
    padding: 54px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sc-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F2EDE4;
    color: #C86D51;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.sc-empty h3 {
    margin: 0;
    font-family: 'Noto Serif KR', 'Gowun Batang', serif;
    font-size: 1.2rem;
    color: #1E1E1C;
}

.sc-empty p {
    margin: 0;
    color: #5C5852;
    font-size: 0.92rem;
    max-width: 440px;
}

/* 상세 모달 */
.sc-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.sc-modal.hidden {
    display: none !important;
}

.sc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(24, 34, 29, 0.65);
    backdrop-filter: blur(4px);
}

.sc-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    background: #FAF8F5;
    border: 1px solid #E5DFD5;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.sc-modal-media {
    background: #1B2822;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 320px;
    padding: 18px;
}

.sc-media-tabs {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(20, 30, 26, 0.8);
}

.sc-media-tab {
    border: none;
    background: transparent;
    color: #E5E7EB;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 7px;
    cursor: pointer;
}

.sc-media-tab.active {
    background: #C86D51;
    color: #FFFFFF;
}

.sc-modal-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-modal-stage img {
    max-width: 100%;
    max-height: 74vh;
    border-radius: 12px;
    object-fit: contain;
}

.sc-modal-stage video {
    width: 100%;
    max-height: 72vh;
    border-radius: 12px;
    background: #000000;
}

.sc-iframe-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
}

.sc-iframe-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.sc-modal-info {
    padding: 24px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sc-modal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sc-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #E5DFD5;
    background: #FFFFFF;
    color: #1E1E1C;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
}

.sc-modal-close:hover {
    background: #F2EDE4;
}

.sc-modal-title {
    font-family: 'Noto Serif KR', 'Gowun Batang', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1E1E1C;
    line-height: 1.3;
    margin: 0;
}

.sc-modal-author {
    font-size: 0.92rem;
    font-weight: 700;
    color: #234236;
}

.sc-modal-review {
    padding: 14px 16px;
    border-left: 4px solid #C86D51;
    background: #FFFFFF;
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1E1E1C;
    white-space: pre-wrap;
}

.sc-modal-story {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #5C5852;
    white-space: pre-wrap;
}

.sc-modal-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #E5DFD5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-ebook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 12px;
    background: #234236;
    color: #FAF8F5;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.sc-ebook-btn:hover {
    background: #1A3329;
    color: #FAF8F5;
}

.sc-lecture-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid #C86D51;
    background: #F9ECE7;
    color: #A84623;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.sc-lecture-cta:hover {
    background: #C86D51;
    color: #FFFFFF;
}

@media (max-width: 860px) {
    .sc-modal-box {
        grid-template-columns: 1fr;
        max-height: 92vh;
        overflow-y: auto;
    }
    .sc-modal-media {
        min-height: 230px;
    }
}

@media (max-width: 640px) {
    .sc-banner {
        padding: 22px 18px;
    }
    .sc-banner-actions {
        width: 100%;
    }
    .sc-btn-3d, .sc-btn-add {
        flex: 1;
    }
    .sc-search {
        width: 100%;
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-card, .sc-cover-img, .sc-detail-btn, .sc-btn-3d, .sc-btn-add, .sc-chip, .sc-ebook-btn, .sc-lecture-cta {
        transition: none !important;
        transform: none !important;
    }
}
