/**
 * Component Styles
 * 컴포넌트별 스타일 (CCTV, Navigation 등)
 */

/* ============================================
   Navigation
   ============================================ */

.nav-indicator {
    position: fixed;
    bottom: 4vh;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-gray);
    background: #E0E0E0;
    cursor: pointer;
    -webkit-transition: background 0.3s ease, -webkit-transform 0.3s ease;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-dot.active {
    background: var(--charcoal);
    background: #1A1A1A;
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.nav-hint {
    position: fixed;
    bottom: 4vh;
    right: 5vw;
    font-size: 0.85rem;
    color: var(--warm-gray);
    color: #4A4A4A;
    z-index: 100;
}

.slide-number {
    position: fixed;
    bottom: 4vh;
    left: 5vw;
    font-size: 0.85rem;
    color: var(--warm-gray);
    color: #4A4A4A;
    z-index: 100;
}

.click-zone {
    position: fixed;
    top: 0;
    height: 100%;
    width: 8%;
    cursor: pointer;
    z-index: 50;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.click-zone.prev {
    left: 0;
}

.click-zone.next {
    right: 0;
}

.nav-arrow {
    color: #999;
    opacity: 0.25;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.click-zone:hover .nav-arrow {
    opacity: 0.6;
}

/* ============================================
   CCTV Animation
   ============================================ */

.cctv-animation {
    position: absolute;
    right: -2vw;
    top: 5vh;
    width: 420px;
    height: 150px;
    pointer-events: none;
}

.cctv-camera {
    position: absolute;
    top: 10px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    z-index: 2;
}

.camera-unit {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.camera-mount {
    width: 14px;
    height: 14px;
    background: -webkit-linear-gradient(315deg, #f5f5f5, #d8d8d8);
    background: linear-gradient(135deg, #f5f5f5, #d8d8d8);
    border-radius: 50%;
    margin: 0 auto;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.camera-arm {
    width: 4px;
    height: 14px;
    background: -webkit-linear-gradient(left, #f0f0f0, #e0e0e0);
    background: linear-gradient(90deg, #f0f0f0, #e0e0e0);
    margin: 0 auto;
}

.camera-head {
    width: 36px;
    height: 22px;
    background: -webkit-linear-gradient(top, #fafafa 0%, #e0e0e0 100%);
    background: linear-gradient(180deg, #fafafa 0%, #e0e0e0 100%);
    border-radius: 11px;
    margin-left: -12px;
    position: relative;
    -webkit-box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.camera-lens-ring {
    position: absolute;
    right: -6px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #2a2a2a;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

.camera-lens-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #5a4a6a 0%, #1a1a2a 100%);
    border-radius: 50%;
}

.camera-lens-ring::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}

.camera-cost {
    position: absolute;
    bottom: -32px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    color: #E85555;
    font-size: 1.3rem;
    font-weight: 700;
}

.cctv-cables {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1;
}

/* ============================================
   TOC (Table of Contents)
   ============================================ */

.toc-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    width: 36px;
    height: 36px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: rgba(30, 30, 40, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.toc-btn:hover,
.toc-btn.active {
    background: rgba(30, 30, 40, 0.8);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.toc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
}

.toc-panel {
    position: fixed;
    top: 60px;
    left: 16px;
    z-index: 1100;
    width: -webkit-max-content;
    width: max-content;
    min-width: 200px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(20, 20, 28, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 0;
}

.toc-title {
    padding: 0 20px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
}

.toc-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.toc-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    cursor: pointer;
    -webkit-transition: background 0.15s ease;
    -o-transition: background 0.15s ease;
    transition: background 0.15s ease;
}

.toc-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.toc-item.active {
    background: rgba(211, 84, 0, 0.12);
}

.toc-item-num {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    min-width: 18px;
    font-variant-numeric: tabular-nums;
}

.toc-item.active .toc-item-num {
    color: #D35400;
}

.toc-item-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    white-space: nowrap;
}

.toc-item.active .toc-item-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* ============================================
   Spec Button
   ============================================ */

.spec-btn {
    position: fixed;
    bottom: 4vh;
    right: 5vw;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(211, 84, 0, 0.1);
    border: 1px solid rgba(211, 84, 0, 0.3);
    border-radius: 4px;
    color: var(--deep-orange);
    color: #D35400;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    z-index: 100;
}

.spec-btn:hover {
    background: rgba(211, 84, 0, 0.2);
    border-color: rgba(211, 84, 0, 0.5);
}

.spec-btn::before {
    content: '\25B2'; /* ▲ */
    font-size: 0.6rem;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.spec-btn.active::before {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* ============================================
   Large Screen Scaling
   ============================================ */

@media (min-width: 1920px) {
    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .nav-indicator {
        gap: 14px;
    }

    .toc-panel {
        min-width: 300px;
    }

    .cctv-animation {
        width: 540px;
        height: 200px;
    }
}

@media (min-width: 2560px) {
    .nav-dot {
        width: 12px;
        height: 12px;
    }

    .nav-indicator {
        gap: 16px;
    }

    .toc-panel {
        min-width: 340px;
    }

    .cctv-animation {
        width: 660px;
        height: 240px;
    }
}

@media (min-width: 3840px) {
    .nav-dot {
        width: 16px;
        height: 16px;
    }

    .nav-indicator {
        gap: 20px;
    }

    .nav-hint,
    .slide-number {
        font-size: 1rem;
    }

    .toc-btn {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        top: 24px;
        left: 24px;
    }

    .toc-panel {
        min-width: 420px;
        top: 80px;
        left: 24px;
        border-radius: 16px;
        padding: 20px 0;
    }

    .toc-title {
        font-size: 0.85rem;
        padding: 0 24px 14px;
    }

    .toc-item {
        padding: 12px 24px;
        gap: 14px;
    }

    .toc-item-num {
        font-size: 0.82rem;
    }

    .toc-item-label {
        font-size: 1rem;
    }

    .cctv-animation {
        width: 900px;
        height: 320px;
    }

    .camera-head {
        width: 52px;
        height: 32px;
    }

    .camera-lens-ring {
        width: 22px;
        height: 22px;
    }

    .spec-btn {
        padding: 8px 18px;
        font-size: 1rem;
        border-radius: 6px;
    }
}

@media (min-width: 5120px) {
    .nav-dot {
        width: 20px;
        height: 20px;
    }

    .nav-indicator {
        gap: 24px;
    }

    .nav-hint,
    .slide-number {
        font-size: 1.1rem;
    }

    .toc-btn {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        top: 32px;
        left: 32px;
    }

    .toc-panel {
        min-width: 520px;
        top: 100px;
        left: 32px;
        border-radius: 20px;
        padding: 24px 0;
    }

    .toc-title {
        font-size: 0.9rem;
        padding: 0 28px 16px;
    }

    .toc-item {
        padding: 14px 28px;
        gap: 16px;
    }

    .toc-item-num {
        font-size: 0.88rem;
    }

    .toc-item-label {
        font-size: 1.1rem;
    }

    .cctv-animation {
        width: 1200px;
        height: 420px;
    }

    .spec-btn {
        padding: 10px 22px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
}

@media (min-width: 7680px) {
    .nav-dot {
        width: 28px;
        height: 28px;
    }

    .nav-indicator {
        gap: 32px;
    }

    .nav-hint,
    .slide-number {
        font-size: 1.3rem;
    }

    .click-zone {
        width: 6%;
    }

    .toc-btn {
        width: 72px;
        height: 72px;
        border-radius: 16px;
        top: 40px;
        left: 40px;
        border-width: 2px;
    }

    .toc-panel {
        min-width: 680px;
        top: 128px;
        left: 40px;
        border-radius: 24px;
        padding: 32px 0;
        border-width: 2px;
    }

    .toc-title {
        font-size: 1rem;
        padding: 0 36px 20px;
        letter-spacing: 0.2em;
    }

    .toc-item {
        padding: 18px 36px;
        gap: 20px;
    }

    .toc-item-num {
        font-size: 0.95rem;
        min-width: 24px;
    }

    .toc-item-label {
        font-size: 1.2rem;
    }

    .cctv-animation {
        width: 1700px;
        height: 580px;
    }

    .camera-head {
        width: 72px;
        height: 44px;
        border-radius: 22px;
    }

    .camera-lens-ring {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }

    .camera-mount {
        width: 22px;
        height: 22px;
    }

    .camera-arm {
        width: 6px;
        height: 22px;
    }

    .spec-btn {
        padding: 12px 28px;
        font-size: 1.2rem;
        border-radius: 10px;
        gap: 8px;
    }
}
