/* ============================================================
   xisom_download_redesign.css
   다운로드 페이지 카드/섹션/주의 박스 스타일.
   - v3rd-* prefix 로 redesign 클래스 분리 (기존 v3-download-* 미수정)
   - v3-download-productBox 외형 토큰 (흰 배경/보더/그림자/라운드) 상속
   ============================================================ */

/* -------------------------
   NOTE / 주의 BOX
------------------------- */
.v3rd-note__box {
    border: 1px solid rgba(200, 60, 60, .22);
    background: rgba(200, 60, 60, .04);
    border-radius: 12px;
    padding: 14px 18px 16px;
}

.v3rd-note__title {
    margin: 0 0 8px;
    font-weight: 700;
    color: rgba(160, 40, 40, .85);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.v3rd-note__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: rgba(120, 40, 40, .82);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.v3rd-note__list > li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
}

.v3rd-note__list > li:last-child {
    margin-bottom: 0;
}

.v3rd-note__list > li::before {
    content: "·";
    position: absolute;
    left: 4px;
    top: -1px;
    font-weight: 700;
    color: rgba(160, 40, 40, .50);
}

/* -------------------------
   SECTION HEADER (SCADA / DAS / AI)
------------------------- */
.v3rd-section__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.v3-download-grid > .v3rd-section__head ~ .v3rd-section__head {
    margin-top: 8px;
}

.v3rd-section__eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(55, 132, 255, .85);
    text-transform: uppercase;
    line-height: 1;
}

.v3rd-section__title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, .82);
    line-height: 1.3;
}

/* -------------------------
   FULL CARD
------------------------- */
.v3rd-card {
    gap: 16px;
}

.v3rd-card__head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.v3rd-card__logo {
    height: 34px;
    width: auto;
    max-width: 100%;
    display: block;
}

.v3rd-card__desc {
    margin: 12px 0 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
    color: rgba(0, 0, 0, .72);
    word-break: keep-all;
}

/* -------------------------
   CHANNEL HEAD (정식/베타 공통)
------------------------- */
.v3rd-card__channelHead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.v3rd-card__channelName {
    font-size: 15px;
    font-weight: 700;
    color: rgba(0, 0, 0, .84);
    letter-spacing: -0.01em;
}

.v3rd-card__channelChip {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 7px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
}

.v3rd-card__channelChip--beta {
    color: rgba(0, 0, 0, .58);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(0, 0, 0, .14);
}

.v3rd-card__channelChip--component {
    color: rgba(0, 0, 0, .68);
    background: rgba(0, 0, 0, .04);
    border: 1px solid rgba(0, 0, 0, .10);
}

.v3rd-card__meta {
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, .55);
    margin-top: -4px;
}

/* -------------------------
   DOWNLOADS (정식 primary)
   - flex + 자식 flex:1 → 1버튼 100%, 2버튼 50/50 자동 분할
------------------------- */
.v3rd-card__downloads {
    display: flex;
    gap: 10px;
}

.v3rd-card__downloads > .v3rd-card__btnPrimary {
    flex: 1;
    min-width: 0;
}

.v3rd-card__btnPrimary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(55, 132, 255, .18), rgba(55, 132, 255, .10));
    color: #0b2a66;
    border: 1px solid rgba(55, 132, 255, .28);
    box-shadow: 0 8px 18px rgba(55, 132, 255, .12);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3rd-card__btnPrimary:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 12px 24px rgba(55, 132, 255, .16);
}

.v3rd-card__btnPrimary:focus-visible {
    outline: 3px solid rgba(55, 132, 255, .22);
    outline-offset: 2px;
}

.v3rd-card__divider {
    height: 1px;
    background: rgba(0, 0, 0, .08);
}

.v3rd-card__divider--soft {
    background: rgba(0, 0, 0, .05);
}

/* -------------------------
   PATCH TOGGLE (inline, "패치내역 보기")
------------------------- */
.v3rd-card__patchToggle {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 4px 0;
    margin: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, .60);
    cursor: pointer;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.v3rd-card__patchToggle:hover {
    color: rgba(0, 0, 0, .85);
}

.v3rd-card__patchToggle:focus-visible {
    outline: 3px solid rgba(0, 0, 0, .10);
    outline-offset: 2px;
    border-radius: 3px;
}

.v3rd-card__patchToggle-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform .18s ease;
    margin-bottom: 3px;
}

.v3rd-card__patchToggle.is-open .v3rd-card__patchToggle-icon {
    transform: rotate(-135deg);
    margin-top: 3px;
    margin-bottom: 0;
}

/* -------------------------
   PATCH PANEL
   - height 는 download.html 의 기존 어코디언 IIFE 가 inline style 로 제어 (애니메이션)
------------------------- */
.v3rd-card__patchPanel {
    margin-top: 8px;
    padding: 12px 0 4px;
    border-top: 1px dashed rgba(0, 0, 0, .08);
}

.v3rd-card__patchPanel[hidden] {
    display: none;
}

.v3rd-card__patchPanel--beta {
    border-top-color: rgba(0, 0, 0, .06);
    padding-top: 10px;
}

.v3rd-card__patchPanel .v3-download-acc {
    width: 100%;
    box-sizing: border-box;
}

.v3rd-card__patchPanel .v3-download-accTitle {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.v3-download-accVersion {
    font-size: 14px;
    font-weight: 700;
    color: rgba(0, 0, 0, .82);
    letter-spacing: -0.01em;
}

.v3-download-accDate {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, .50);
    letter-spacing: 0;
}

.v3-download-accItem.is-open .v3-download-accVersion {
    color: rgba(11, 42, 102, .96);
}

.v3-download-accItem.is-open .v3-download-accDate {
    color: rgba(11, 42, 102, .55);
}

/* xisom_v2.css 의 nested li 폰트 (15px) override 위해 li 단위 명시 */
.v3rd-card__patchPanel .v3-download-patchList {
    font-size: 13px;
    line-height: 1.7;
}

.v3rd-card__patchPanel .v3-download-patchList > li,
.v3rd-card__patchPanel .v3-download-patchList ul li {
    font-size: 13px;
}

/* -------------------------
   PATCH BADGE ("최신" / "최신 베타")
------------------------- */
.v3rd-card__patchBadge {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(55, 132, 255, .95);
    background: rgba(55, 132, 255, .10);
    border-radius: 3px;
    letter-spacing: 0;
    vertical-align: middle;
}

/* -------------------------
   BETA SUB-SECTION (카드 내부 통합)
------------------------- */
.v3rd-card__beta {
    margin-top: 4px;
    padding: 12px;
    background: rgba(0, 0, 0, .02);
    border-radius: 8px;
    border-top: 1px solid rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v3rd-card__beta-meta {
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, .58);
    margin-top: -4px;
}

.v3rd-card__beta-caution {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(0, 0, 0, .52);
    margin: 0;
    padding: 0;
    background: transparent;
    word-break: keep-all;
}

.v3rd-card__beta-downloads {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.v3rd-card__beta-downloads > .v3rd-card__beta-btn {
    flex: 1;
    min-width: 0;
}

.v3rd-card__beta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .18);
    background: #fff;
    color: rgba(0, 0, 0, .76);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: border-color .12s ease, background .12s ease, transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .02);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.v3rd-card__beta-btn:hover {
    border-color: rgba(0, 0, 0, .28);
    background: rgba(0, 0, 0, .015);
    transform: translateY(-1px);
}

.v3rd-card__beta-btn:focus-visible {
    outline: 3px solid rgba(0, 0, 0, .12);
    outline-offset: 2px;
}

.v3rd-card__patchToggle--beta {
    font-size: 13px;
    color: rgba(0, 0, 0, .55);
}

.v3rd-card__patchToggle--beta:hover {
    color: rgba(0, 0, 0, .85);
}

/* -------------------------
   CTA-only variant (다운로드 없이 문의 only)
------------------------- */
.v3rd-card__beta--cta .v3rd-card__channelHead {
    color: rgba(0, 0, 0, .68);
}

.v3rd-card__ctaText {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(0, 0, 0, .55);
}

.v3rd-card--cta .v3rd-card__downloads {
    margin-top: 4px;
}

.vision-card-text {
    margin-top: 24px;
}

/* -------------------------
   RESPONSIVE (≤ 768px)
   - column 모드에선 flex:1 이 height 에 적용되어 명시 height 를 덮음
   - 자식 flex 를 `0 0 auto` 로 override 해 height 보존
------------------------- */
@media screen and (max-width: 768px) {
    .v3rd-card__downloads {
        flex-direction: column;
    }
    .v3rd-card__downloads > .v3rd-card__btnPrimary {
        flex: 0 0 auto;
    }
    .v3rd-card__btnPrimary {
        height: 48px;
        width: 100%;
        white-space: nowrap;
    }
    .v3rd-card__beta-downloads {
        flex-direction: column;
    }
    .v3rd-card__beta-downloads > .v3rd-card__beta-btn {
        flex: 0 0 auto;
    }
    .v3rd-card__beta-btn {
        height: 44px;
        width: 100%;
        white-space: nowrap;
    }

    .v3rd-card__desc,
    .v3rd-card__channelName,
    .v3rd-section__title,
    .v3rd-note__list > li {
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}
