/* Device Demo Section */
.device-demo-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
}

.device-demo-section .section-header {
    text-align: left;
    margin-bottom: 0;
}

.device-demo-section .section-label {
    display: block;
    color: #00d4ff;
    margin-bottom: 16px;
}

.device-demo-section .section-title {
    color: #fff;
}

.device-demo-section .section-description {
    color: rgba(255,255,255,0.7);
}

.device-demo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.device-demo-text {
    color: #fff;
}

.device-demo-text .feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.device-demo-text .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

.device-demo-text .feature-list li::before {
    content: "✓";
    color: #00ff88;
    font-weight: bold;
    flex-shrink: 0;
}

.device-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.device-image {
    width: 100%;
    height: auto;
    display: block;
}

.device-screen {
    position: absolute;
    top: 33.5%;
    left: 22%;
    width: 56%;
    height: 23%;
    background: #050810;
    border-radius: 6px;
    overflow: hidden;
}

.device-screen-inner {
    width: 100%;
    height: 100%;
    padding: 1.2%;
    display: flex;
    flex-direction: column;
}

/* Scanline Effect */
.device-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0,0,0,0.005) 4px, rgba(0,0,0,0.005) 8px);
    pointer-events: none;
    z-index: 20;
}

/* Top Bar */
.device-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5% 1.2%;
    background: linear-gradient(90deg, rgba(0,100,150,0.3) 0%, rgba(0,50,80,0.2) 100%);
    border-radius: 3px;
    border: 1px solid rgba(0,180,255,0.2);
    margin-bottom: 0.8%;
    flex-shrink: 0;
}

.device-brand {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: clamp(10px, 1.8vw, 15px);
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0,180,255,0.5);
}

.device-system-status {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 20px);
}

.device-status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: clamp(6px, 1vw, 9px);
    font-weight: 700;
    background: rgba(0,255,136,0.15);
    border: 1px solid rgba(0,255,136,0.4);
    color: #00ff88;
}

.device-status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 6px #00ff88;
    animation: device-pulse 1.5s ease-in-out infinite;
}

.device-datetime {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(9px, 1.3vw, 12px);
    font-weight: 700;
    color: #00d4ff;
}

/* Main Content */
.device-main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1%;
    min-height: 0;
    overflow: hidden;
}

/* Camera Section */
.device-camera-section {
    display: flex;
    flex-direction: column;
    gap: 0.8%;
    min-height: 0;
}

.device-camera-main {
    flex: 1;
    background: #000;
    border-radius: 4px;
    border: 2px solid #00d4ff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0,212,255,0.3);
    min-height: 0;
}

.device-camera-feed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.device-cam-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.device-cam-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.device-rec-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ff0000;
    padding: 2px 6px;
    border-radius: 3px;
}

.device-rec-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: device-blink 1s ease-in-out infinite;
}

.device-rec-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(7px, 1.1vw, 10px);
    font-weight: 700;
    color: #fff;
}

.device-cam-label {
    font-size: clamp(7px, 1.1vw, 10px);
    font-weight: 700;
    color: #00d4ff;
}

.device-cam-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.device-cam-time {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(9px, 1.3vw, 12px);
    font-weight: 700;
    color: #00ff88;
}

.device-cam-info {
    font-size: clamp(5px, 0.8vw, 8px);
    font-weight: 600;
    color: #00d4ff;
}

.device-corner { position: absolute; width: 18px; height: 18px; border: 2px solid #00d4ff; }
.device-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.device-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.device-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.device-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.device-camera-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;
    flex-shrink: 0;
    height: 22%;
}

.device-cam-thumb {
    background: #000;
    border-radius: 3px;
    border: 1px solid rgba(0,212,255,0.4);
    position: relative;
    overflow: hidden;
}

.device-cam-thumb video,
.device-cam-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.device-thumb-label {
    position: absolute;
    bottom: 2px;
    left: 4px;
    font-size: clamp(5px, 0.8vw, 7px);
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 3px #000;
}

.device-thumb-dot {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 4px #00ff88;
}

/* Data Section */
.device-data-section {
    display: flex;
    flex-direction: column;
    gap: 1%;
    min-height: 0;
}

.device-sensor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3%;
    flex: 1;
}

.device-sensor-card {
    background: linear-gradient(145deg, #0a1525 0%, #061018 100%);
    border: 1px solid rgba(0,150,255,0.3);
    border-radius: 3px;
    padding: 4%;
    display: flex;
    flex-direction: column;
}

.device-sensor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4%;
}

.device-sensor-label {
    font-size: clamp(5px, 0.7vw, 7px);
    font-weight: 700;
    color: #8aa0b0;
}

.device-sensor-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.device-sensor-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(9px, 1.4vw, 14px);
    font-weight: 700;
    color: #00d4ff;
    line-height: 1;
    text-shadow: 0 0 8px rgba(0,212,255,0.5);
}

.device-sensor-unit {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(5px, 0.7vw, 7px);
    font-weight: 700;
    color: #00d4ff;
    opacity: 0.85;
}

.device-chart-area {
    height: 50%;
    max-height: 50%;
    overflow: hidden;
}

.device-chart-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* AI Grid */
.device-ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4%;
    margin-top: 4%;
}

.device-ai-card {
    background: linear-gradient(145deg, #0a1525 0%, #061018 100%);
    border-radius: 3px;
    padding: 6%;
    display: flex;
    align-items: center;
    gap: 6%;
}

.device-ai-card.safe {
    border: 1px solid rgba(0,255,136,0.4);
}

.device-ai-card.info {
    border: 1px solid rgba(0,212,255,0.4);
}

.device-ai-icon {
    width: clamp(12px, 2vw, 18px);
    height: clamp(12px, 2vw, 18px);
    flex-shrink: 0;
}

.device-ai-card.safe .device-ai-icon {
    color: #00ff88;
}

.device-ai-card.info .device-ai-icon {
    color: #00d4ff;
}

.device-ai-label {
    font-size: clamp(5px, 0.7vw, 7px);
    font-weight: 700;
    color: #8aa0b0;
}

.device-ai-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(10px, 1.4vw, 14px);
    font-weight: 700;
    line-height: 1;
}

.device-ai-value.green {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0,255,136,0.5);
}

.device-ai-value.cyan {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0,212,255,0.5);
}

/* Animations */
@keyframes device-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

@keyframes device-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Responsive */
@media (max-width: 1024px) {
    .device-demo-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .device-demo-section .section-header {
        text-align: center;
    }

    .device-demo-text .feature-list {
        max-width: 500px;
        margin: 30px auto 0;
    }

    .device-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .device-demo-section {
        padding: 60px 0;
        overflow: hidden;
    }

    .device-container {
        max-width: calc(100% - 30px);
        margin: 0 auto;
        padding: 0;
    }

    .device-demo-wrapper {
        padding: 0 15px;
    }

    /* 내부 요소 줄바꿈 방지 */
    .device-screen-inner * {
        white-space: nowrap;
    }

    .device-top-bar {
        padding: 1% 2%;
    }

    .device-status-badge {
        padding: 1px 4px;
        font-size: 5px;
    }

    .device-status-badge .dot {
        width: 3px;
        height: 3px;
    }

    .device-brand {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .device-datetime {
        font-size: 6px;
    }

    .device-sensor-label {
        font-size: 5px;
    }

    .device-sensor-value {
        font-size: 8px;
    }

    .device-sensor-unit {
        font-size: 5px;
    }

    .device-ai-label {
        font-size: 4px;
    }

    .device-ai-value {
        font-size: 8px;
    }

    .device-corner {
        width: 8px;
        height: 8px;
    }

    .device-rec-text {
        font-size: 5px;
    }

    .device-cam-label {
        font-size: 5px;
    }
}
