/* Age Verification Modal Styles */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.age-verification-modal {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.age-verification-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    margin-top: 0;
}

.age-verification-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.age-verification-form {
    margin-bottom: 25px;
}

.age-verification-input {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.age-verification-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.age-verification-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.age-verification-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.3);
}

.age-verification-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.age-verification-button.secondary {
    background: #6c757d;
}

.age-verification-button.secondary:hover {
    background: #545b62;
}

.webcam-container {
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.webcam-video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.webcam-canvas {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.webcam-controls {
    margin: 15px 0;
}

.webcam-status {
    margin: 15px 0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.webcam-status.processing {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.webcam-status.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.webcam-status.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Camera Information */
.camera-info {
    margin: 10px 0;
    padding: 8px 12px;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    border-radius: 5px;
    font-size: 14px;
    text-align: left;
}

.camera-info strong {
    color: #0d47a1;
}

/* Face Detection Overlay */
.face-detection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.face-detection-box {
    position: absolute;
    border: 3px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: faceBoxPulse 2s infinite;
}

@keyframes faceBoxPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    }
}

.face-detection-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Privacy Notice */
.age-verification-privacy {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.privacy-notice {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* Virtual Camera Warning */
.virtual-camera-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.virtual-camera-warning h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
}

.virtual-camera-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.age-verification-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.age-verification-success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .age-verification-modal {
        padding: 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .age-verification-title {
        font-size: 20px;
    }
    
    .webcam-video {
        max-width: 100%;
    }
}

.ad-blocker-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.ad-blocker-warning h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
}

.ad-blocker-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.js-disabled-warning {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.js-disabled-warning h4 {
    margin: 0 0 10px 0;
    color: #721c24;
    font-size: 16px;
}

.js-disabled-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}