/* Camera Preloader Styles */

.preloader-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10000; transition: opacity 0.8s ease; }

.camera-container { position: relative; width: 180px; height: 140px; }
.camera-body { width: 100%; height: 100%; background: linear-gradient(145deg, #2d2d44, #252536); border-radius: 15px; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 -3px 10px rgba(0,0,0,0.4), inset 0 3px 10px rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; overflow: hidden; animation: cameraFloat 4s ease-in-out infinite; }
.camera-grip { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 25px; height: 70px; background: linear-gradient(145deg, #252536, #1e1e2d); border-radius: 8px; box-shadow: 3px 0 8px rgba(0,0,0,0.3); }
.lens-housing { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #3a3a5d, #1e1e2d 70%); position: relative; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 0 6px #2a2a40, 0 0 0 9px #333350, 0 5px 15px rgba(0,0,0,0.6); animation: lensRotate 15s linear infinite; }
.lens { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #4a4a7a, #2a2a4a); display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.lens-inner { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #3a3a5a, #1a1a2a); display: flex; justify-content: center; align-items: center; }
.lens-core { width: 35px; height: 35px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #0a0a1a, #000 70%); position: relative; overflow: hidden; }
.aperture { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(0,0,0,0.9) 0deg, rgba(0,0,0,0.9) 90deg, rgba(255,255,255,0.1) 90deg, rgba(255,255,255,0.1) 180deg, rgba(0,0,0,0.9) 180deg, rgba(0,0,0,0.9) 270deg, rgba(255,255,255,0.1) 270deg, rgba(255,255,255,0.1) 360deg); animation: aperturePulse 3s ease-in-out infinite; }
.lens-flare { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%); animation: flareRotate 10s linear infinite; }
.shutter { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; opacity: 0; border-radius: 50%; }
.camera-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background: linear-gradient(145deg, #2d2d44, #252536); border-radius: 8px 8px 0 0; box-shadow: 0 -3px 8px rgba(0,0,0,0.3); }
.hot-shoe { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 25px; height: 6px; background: #1a1a2a; border-radius: 2px; }
.mode-dial { position: absolute; top: 12px; left: 12px; width: 25px; height: 25px; background: linear-gradient(145deg, #3a3a5a, #2a2a4a); border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.4); animation: dialRotate 6s ease-in-out infinite; }
.dial-mark { position: absolute; width: 2px; height: 8px; background: #aaa; top: 3px; left: 50%; transform: translateX(-50%); }
.flash { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; background: linear-gradient(145deg, #3a3a5a, #2a2a4a); border-radius: 4px; display: flex; justify-content: center; align-items: center; color: #ffcc00; font-size: 10px; animation: flashPulse 2s ease-in-out infinite; }
.recording-indicator { position: absolute; bottom: 12px; right: 12px; width: 12px; height: 12px; background: #ff3b30; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 8px #ff3b30; animation: recordingPulse 1.5s infinite; opacity: 0; }
.recording-indicator::after { content: ''; position: absolute; width: 6px; height: 6px; background: #ff7b70; border-radius: 50%; animation: recordingInnerPulse 1.5s infinite; }
.loading-text { margin-top: 25px; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: #e0e0ff; text-shadow: 0 0 8px rgba(100, 100, 255, 0.5); animation: textGlow 2s ease-in-out infinite alternate; text-align: center; max-width: 90%; }
.progress-container { width: 200px; margin-top: 20px; display: flex; flex-direction: column; align-items: center; }
.progress-bar { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); }
.progress { height: 100%; width: 0%; background: linear-gradient(90deg, #4a4a8a, #6a6aaa); border-radius: 3px; transition: width 0.3s ease; box-shadow: 0 0 8px rgba(100, 100, 255, 0.5); }
.progress-text { margin-top: 8px; font-size: 12px; color: #aaa; letter-spacing: 1px; }

.loaded .preloader-container { opacity: 0; pointer-events: none; }

@keyframes cameraFloat { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-5px);} }
@keyframes lensRotate { 0%{ transform: rotate(0deg);} 100%{ transform: rotate(360deg);} }
@keyframes aperturePulse { 0%,100%{ transform: scale(1); opacity: .8;} 50%{ transform: scale(1.05); opacity: 1;} }
@keyframes flareRotate { 0%{ transform: rotate(0deg);} 100%{ transform: rotate(360deg);} }
@keyframes dialRotate { 0%,100%{ transform: rotate(0deg);} 25%{ transform: rotate(90deg);} 50%{ transform: rotate(180deg);} 75%{ transform: rotate(270deg);} }
@keyframes flashPulse { 0%,100%{ opacity:.7; box-shadow:0 0 3px rgba(255,204,0,.5);} 50%{ opacity:1; box-shadow:0 0 10px rgba(255,204,0,.8);} }
@keyframes recordingPulse { 0%,100%{ transform: scale(1); box-shadow:0 0 8px #ff3b30;} 50%{ transform: scale(1.1); box-shadow:0 0 15px #ff3b30;} }
@keyframes recordingInnerPulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.3);} }
@keyframes textGlow { 0%{ text-shadow:0 0 8px rgba(100,100,255,.5);} 100%{ text-shadow:0 0 15px rgba(100,100,255,.8),0 0 20px rgba(100,100,255,.6);} }
@keyframes shutterClick { 0%{ opacity:0;} 50%{ opacity:.9;} 100%{ opacity:0;} }

/* Responsive */
@media (max-width: 768px) {
  .camera-container { width:150px; height:120px; }
  .lens-housing { width:75px; height:75px; }
  .lens { width:60px; height:60px; }
  .lens-inner { width:45px; height:45px; }
  .lens-core { width:30px; height:30px; }
  .camera-top { width:100px; height:20px; }
  .loading-text { font-size:14px; margin-top:20px; }
  .progress-container { width:180px; }
}
@media (max-width: 480px) {
  .camera-container { width:130px; height:100px; }
  .lens-housing { width:65px; height:65px; }
  .lens { width:50px; height:50px; }
  .lens-inner { width:35px; height:35px; }
  .lens-core { width:25px; height:25px; }
  .camera-top { width:90px; height:18px; }
  .mode-dial, .flash { width:18px; height:18px; font-size:9px; }
  .recording-indicator { width:10px; height:10px; }
  .recording-indicator::after { width:5px; height:5px; }
  .loading-text { font-size:12px; margin-top:15px; }
  .progress-container { width:160px; }
}
