/**
 * 섹션 캠페인 카드 공통 스타일
 *
 * 사용처: inc_fcfs_campaign, inc_assaview_time_preview, inc_assaview_time 등
 * 클래스 접두어: sc_ (section-card)
 *
 * 카드 상세(details, tag_area, subject, desc 등)는 기존 campaign_card 글로벌 스타일을 사용.
 * 여기에는 이미지/오버레이/배지/캐러셀/네비 등 섹션 전용 공통만 포함.
 */

/* ===== 오버레이 (어두운 그라디언트) ===== */
.sc_overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.sc_overlay_text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 24px;
}

/* ===== 신청 현황 배지 (이미지 위) ===== */
.sc_apply_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 9.5px;
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1;
    line-height: 1;
}
.sc_apply_badge b {
    color: #69f0ff;
    font-weight: 700;
}

/* ===== Embla 캐러셀 공통 ===== */
.sc_embla {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.sc_embla__container {
    display: flex;
    gap: 16px;
}

.sc_embla__slide {
    flex: 0 0 220px;
    max-width: 220px;
    min-width: 0;
}
/* ===== 캠페인 카드 공통 — 디자인 시스템 리뉴얼 ===== */
.campaign_card .tag_area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-8);
}
.campaign_card .cp_type {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}
.campaign_card .subject {
    font: var(--font-body-m-medium);
    letter-spacing: var(--body-m-letter);
    color: var(--color-content-strong);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}
.campaign_card .tag_area .timer {
    font: var(--font-body-s-medium) !important;
}
.campaign_card .tag_area .timer .timer_num {
    color: var(--color-content-brand);
    font-weight: 600;
}
.campaign_card .desc > div {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    font: var(--font-body-s-medium);
    letter-spacing: var(--body-s-letter);
}
.campaign_card .desc > div span { color: var(--color-content-default); }
.campaign_card .desc > div b {
    color: var(--color-content-brand);
    font-weight: 500;
}

/* 미션 완료 리워드 칩 */
.campaign_card .fill_label {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #d4f1f4;
    border-radius: 5px;
    padding: 2px 6px;
    white-space: nowrap;
    line-height: normal;
    height: auto;
}
.campaign_card .fill_label .text {
    font-size: 12px;
    font-weight: 500;
    color: #1aacbc;
    letter-spacing: -0.5px;
}
.campaign_card .fill_label svg {
    width: 14px;
    height: 14px;
    color: #1aacbc;
    fill: #1aacbc;
}

/* 수익 블록 공통 */
.revenue_block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #efe9ff;
    border-radius: var(--radius-8);
    padding: var(--spacing-8) var(--spacing-12);
    margin-top: var(--spacing-8);
    width: 100%;
    box-sizing: border-box;
}
.revenue_block__left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.revenue_block__icon { width: 20px; height: 20px; }
.revenue_block__label {
    font: var(--font-body-s-medium);
    letter-spacing: var(--body-s-letter);
    color: #8635f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.revenue_block__amount {
    font: var(--font-body-s-semibold);
    letter-spacing: var(--body-s-letter);
    color: #8635f6;
    white-space: nowrap;
}
@media (max-width: 799px) {
    .revenue_block {
        padding: var(--spacing-8);
    }
    .revenue_block__icon {
        display: none;
    }
    .revenue_block__label {
        font-size: 10px;
        font-weight: 500;
        line-height: 1;
    }
    .revenue_block__amount {
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
    }
}

/* ===== 카드 상세 (기존 Embla 섹션 공통) ===== */
.sc_embla__slide.campaign_card .details {
    padding: 16px 0 0;
    color: #666;
}
.sc_embla__slide.campaign_card .desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.sc_embla__slide.campaign_card .desc .opt_name {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: block;
    width: 100%;
    line-height: 1;
    height: 19px;
}

/* 글로벌 스타일 리셋 + 카드 고정 크기 강제 */
.sc_embla__slide.campaign_card {
    max-width: 220px !important;
    width: 220px !important;
    margin: 0 !important;
    flex-shrink: 0;
}
/* 이미지 정사각 강제 */
.sc_embla__slide.campaign_card .imgBox {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}
.sc_embla__slide.campaign_card .imgBox > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 네비게이션 버튼 (48px, 투명) ===== */
.sc_nav {
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.sc_nav:hover { opacity: 1; }
.sc_nav:focus { box-shadow: none; }
.sc_nav:disabled { opacity: 1; cursor: default; }

/* ===== 모바일 ===== */
@media (max-width: 799px) {
    .sc_overlay_text {
        font-size: 14px;
    }
    .sc_apply_badge {
        font-size: 12px;
        padding: 4px;
        top: 5px;
        left: 5px;
    }
    .sc_embla__slide.campaign_card .imgBox {
        border-radius: 8px;
    }
    .sc_overlay {
        border-radius: 8px;
    }
    .sc_embla__container {
        gap: 10px;
        padding-left: 15px;
    }
    .sc_embla__slide {
        flex: 0 0 128px;
        max-width: 128px;
    }
    .sc_embla__slide.campaign_card {
        max-width: 128px !important;
        width: 128px !important;
    }
    .sc_embla__slide.campaign_card .details {
        padding: 8px 0 0;
    }
    .sc_embla__slide.campaign_card .tag_area {
        margin-bottom: 6px;
    }
    .sc_embla__slide.campaign_card .tag_area img {
        width: 18px;
        height: 18px;
    }
    .sc_embla__slide.campaign_card .tag_area .cp_type img {
        max-width: 18px;
    }
    .sc_embla__slide.campaign_card .tag_area span {
        font-size: 12px;
        line-height: 18px;
    }
    .sc_embla__slide.campaign_card .subject {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        margin-bottom: 2px;
    }
    .sc_embla__slide.campaign_card .desc .opt_name {
        font-size: 12px;
        height: auto;
        line-height: 1.3;
    }
    .sc_nav {
        display: none;
    }
}

/* 캠페인 유형 칩 — campaign_card 공통 */
.campaign_card .tag_area .rs_cp_type_chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 var(--spacing-4);
    background: var(--color-surface-muted);
    border-radius: var(--radius-4);
    font: var(--font-body-s-medium) !important;
    letter-spacing: var(--body-s-letter) !important;
    color: var(--color-content-default) !important;
    white-space: nowrap;
}
