/* --- RESET & CORE --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: #050505; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 80px 10px 20px; text-transform: uppercase; overflow-x: hidden; }

/* NAV */
.void-nav { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background: #fff; border-bottom: 4px solid #000; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 10000; }
.nav-brand { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.2rem; letter-spacing: -1px; }
.nav-links { display: flex; gap: 15px; }
.nav-item { text-decoration: none; color: #000; font-size: 0.6rem; font-weight: 900; }

/* MAIN UI */
.photobooth-container { background: #fff; border: 4px solid #000; width: 100%; max-width: 1000px; display: grid; grid-template-columns: 1.2fr 0.8fr; box-shadow: 15px 15px 0px #111; }
.camera-section { padding: 30px; border-right: 4px solid #000; display: flex; flex-direction: column; height: 100%; }
.controls-section { padding: 30px; background: #f8f8f8; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.logo { font-size: 3rem; font-weight: 900; letter-spacing: -3px; margin-bottom: 20px; line-height: 0.8; }

/* VIEWFINDER */
.camera-wrapper { position: relative; width: 100%; aspect-ratio: 1/1; background: #000; border: 4px solid #000; overflow: hidden; }
video { width: 100%; height: 100%; object-fit: cover; }
.viewfinder { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.corner { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.5); }
.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.live-indicator { position: absolute; top: 15px; left: 40px; display: flex; align-items: center; gap: 5px; }
.live-indicator .dot { width: 8px; height: 8px; background: red; border-radius: 50%; }
.live-indicator .dot.recording { animation: blink 0.5s infinite; }
.live-indicator .label { color: #fff; font-size: 0.5rem; font-weight: 900; }

/* FLASH AND COUNTDOWN */
#flash-overlay { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 100; pointer-events: none; transition: opacity 0.1s; }
#countdown-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 6rem; font-weight: 900; z-index: 20; text-shadow: 4px 4px 0px #000; }

/* CONTROLS */
.section-label { font-size: 0.6rem; font-weight: 900; border-bottom: 2px solid #000; margin-bottom: 5px; padding-top: 5px; }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
select { width: 100%; padding: 10px; border: 3px solid #000; font-weight: 800; background: #fff; text-transform: uppercase; font-size: 0.7rem; }

.mirror-row { display: flex; align-items: center; gap: 10px; font-size: 0.6rem; font-weight: 900; }
.switch { position: relative; width: 34px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border: 2px solid #000; }
.slider:before { position: absolute; content: ""; height: 10px; width: 10px; left: 2px; bottom: 2px; background: #000; transition: 0.2s; }
input:checked + .slider { background: #000; }
input:checked + .slider:before { transform: translateX(16px); background: #fff; }

.primary-btn { background: #000; color: #fff; padding: 18px; border: none; font-size: 1rem; font-weight: 900; width: 100%; cursor: pointer; transition: 0.1s; margin-top: 10px;}
.primary-btn:hover { background: #ff0000; }
.secondary-btn { background: #fff; border: 3px solid #000; padding: 12px; font-weight: 900; width: 100%; cursor: pointer; margin-top: 10px; font-size: 0.7rem; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 20000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.modal-content { background: #fff; padding: 40px; border: 6px solid #000; text-align: center; max-width: 400px; width: 90%; font-size: 0.8rem; }

/* ANIMATIONS */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@media (max-width: 768px) { 
    .photobooth-container { grid-template-columns: 1fr; } 
    .camera-section { border-right: none; border-bottom: 4px solid #000; } 
}