/* factory3_facility_comp.css — 3공장 콤프레셔 가동 설비 페이지 전용 스타일 */

/* ── 래퍼 ── */
.f3comp-wrapper {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px; /* 위아래 간격 축소 (기존 24px) */
}

/* ── 페이지 배너 ── */
.f3comp-page-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6b 50%, #0f5298 100%);
    border-radius: 18px;
    padding: 16px 24px; /* 위아래 및 좌우 폭 좁힘 (기존 26px 32px) */
    box-shadow: 0 8px 32px rgba(15, 52, 152, 0.35);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.f3comp-page-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(96, 200, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.f3comp-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}
.f3comp-banner-icon .material-symbols-outlined {
    font-size: 34px;
    color: #60c8ff;
}

.f3comp-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.f3comp-banner-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.4px;
}

/* 우측 배지 영역에 기존 주황색 테두리 경고 디자인 이식 */
.f3comp-banner-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff4ec;
    border: 1px solid #ffd0a8;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #e05c00;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(224, 92, 0, 0.15);
}
.f3comp-banner-badge .material-symbols-outlined {
    font-size: 18px;
    color: #e05c00;
}

/* ── 스텝 그리드 ── */
.f3comp-steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0 8px;
}

/* ── 화살표 ── */
.f3comp-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px; /* 이미지 중간 높이에 맞춤 */
}
.f3comp-arrow .material-symbols-outlined {
    font-size: 36px;
    color: #0055d4;
    opacity: 0.55;
    animation: arrow-pulse 1.8s ease-in-out infinite;
}
@keyframes arrow-pulse {
    0%, 100% { opacity: 0.35; transform: translateX(0); }
    50%       { opacity: 0.85; transform: translateX(4px); }
}

/* ── 스텝 카드 ── */
.f3comp-step-card {
    background: #f7f8fa;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.25s ease;
}
/* 호버로 위치·크기가 변하는 피드백은 쓰지 않습니다(설계 원칙) — 그림자만 */
.f3comp-step-card:hover {
    box-shadow: 0 8px 24px rgba(0, 85, 212, 0.12);
}

/* 스텝 번호 뱃지 */
.f3comp-step-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0055d4;
    border-radius: 12px;
    padding: 6px 10px 5px;
    box-shadow: 0 2px 10px rgba(0, 85, 212, 0.4);
    line-height: 1;
}
.f3comp-step-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}
.f3comp-step-label {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 이미지 영역 */
.f3comp-step-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f4f8;
    cursor: zoom-in;
}
.f3comp-step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.f3comp-step-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 85, 212, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.f3comp-step-img-overlay .material-symbols-outlined {
    font-size: 40px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.f3comp-step-card:hover .f3comp-step-img-overlay {
    background: rgba(0, 85, 212, 0.18);
}
.f3comp-step-card:hover .f3comp-step-img-overlay .material-symbols-outlined {
    opacity: 1;
}

/* 카드 본문 */
.f3comp-step-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.f3comp-step-status {
    display: flex;
    align-items: center;
    gap: 6px;
}
.f3comp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: status-blink 2s ease-in-out infinite;
}
@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.f3comp-status-text {
    font-size: 11px;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 0.5px;
}

.f3comp-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.3px;
}

.f3comp-step-desc {
    font-size: 13px;
    color: #515154;
    line-height: 1.7;
    margin: 0;
}

.f3comp-step-action {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #0055d4, #0074f0);
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
    box-shadow: 0 3px 12px rgba(0, 85, 212, 0.3);
}
.f3comp-step-action .material-symbols-outlined {
    font-size: 18px;
}

/* ── 주의사항 ── */
.f3comp-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbec;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 18px 22px;
}
.f3comp-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fef3c7;
    border-radius: 10px;
    flex-shrink: 0;
}
.f3comp-notice-icon .material-symbols-outlined {
    font-size: 24px;
    color: #d97706;
}
.f3comp-notice-text {
    font-size: 13.5px;
    color: #78350f;
    line-height: 1.65;
}
.f3comp-notice-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #92400e;
}
.f3comp-tel {
    font-weight: 700;
    color: #b45309;
}

/* ── 라이트박스 ── */
.f3comp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: lb-fadein 0.2s ease;
}
.f3comp-lightbox.active {
    display: flex;
}
@keyframes lb-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.f3comp-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
    animation: lb-scalein 0.25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes lb-scalein {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.f3comp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
}
.f3comp-lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}
.f3comp-lightbox-close .material-symbols-outlined {
    font-size: 26px;
}

/* ── 반응형 ── */
@media (max-width: 900px) {
    .f3comp-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px 0;
    }
    .f3comp-arrow {
        padding-top: 0;
        transform: rotate(90deg);
    }
    .f3comp-page-banner {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .f3comp-banner-badge {
        align-self: flex-start; /* 모바일에서도 주황색 알림 배지가 완전히 노출되도록 유지 */
    }
    .f3comp-banner-title {
        font-size: 18px;
    }
}