/* Custom styles for Hasselblad 503CW Simulator */

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #111827;
    color: #f9fafb;
}

/* Ground glass effect */
.bg-fresnel {
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 45%, rgba(255,255,255,0.05) 46%, rgba(255,255,255,0.05) 47%, transparent 48%),
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 35%, rgba(255,255,255,0.03) 36%, rgba(255,255,255,0.03) 37%, transparent 38%),
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 25%, rgba(255,255,255,0.02) 26%, rgba(255,255,255,0.02) 27%, transparent 28%);
}

/* Radial gradient utility */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Custom slider styles */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #374151;
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #6b7280;
    border: 2px solid #9ca3af;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #9ca3af;
}

/* Camera body styling */
.camera-body {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #171923 100%);
    box-shadow: 
        inset 0 1px 3px rgba(255,255,255,0.1),
        0 4px 8px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.2);
}

/* Button styling for camera controls */
.camera-button {
    background: linear-gradient(145deg, #e2e8f0, #cbd5e0);
    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.8),
        inset 0 -1px 2px rgba(0,0,0,0.2),
        0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
}

.camera-button:active {
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(0,0,0,0.4);
    transform: translateY(1px);
}

/* Film counter styling */
.film-counter {
    background: #000;
    color: #ff6b35;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px #ff6b35;
    border: 1px solid #333;
}

/* Viewfinder chrome styling */
.viewfinder-frame {
    background: linear-gradient(145deg, #718096, #4a5568);
    border: 2px solid #2d3748;
    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.3),
        inset 0 -1px 2px rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.5);
}

/* Control dial styling */
.control-dial {
    background: radial-gradient(circle, #e2e8f0 30%, #cbd5e0 70%);
    border: 2px solid #a0aec0;
    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.8),
        inset 0 -1px 2px rgba(0,0,0,0.2),
        0 1px 3px rgba(0,0,0,0.3);
}

/* Gallery film strip styling */
.film-strip {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.film-frame {
    border: 2px solid #1a1a1a;
    background: #f7fafc;
    box-shadow: 
        inset 0 0 0 1px #e2e8f0,
        0 1px 3px rgba(0,0,0,0.2);
}

.film-frame img {
    filter: sepia(0.1) contrast(1.05);
}

/* Vintage typography */
.vintage-label {
    font-family: 'Times New Roman', serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Loading animation for camera initialization */
@keyframes pulse-camera {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.camera-loading {
    animation: pulse-camera 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .camera-controls {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .viewfinder {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .viewfinder {
        width: 240px;
        height: 240px;
    }
    
    .camera-button {
        width: 60px;
        height: 60px;
    }
}

/* Scroll styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}