/*!
 * Age Verification Popup Styles
 * Modern popup design for age verification
 * 
 * Copyright 2025 - Age Verification System
 */

.age-verification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    border-radius: 12px 12px 0 0;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-body {
    padding: 25px;
}

.verification-instructions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.demo-section {
    text-align: center;
}

.demo-section h4 {
    margin: 0 0 15px 0;
    color: #1877f2;
    font-size: 16px;
    font-weight: 600;
}

.demo-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.demo-caption {
    font-size: 14px;
    color: #65676b;
    margin: 0;
    font-style: italic;
}

.instructions-section h4 {
    margin: 0 0 15px 0;
    color: #1877f2;
    font-size: 16px;
    font-weight: 600;
}

.instructions-section ol {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.instructions-section li {
    margin-bottom: 8px;
}

.current-date {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.upload-section {
    margin-bottom: 25px;
}

.file-upload-area {
    border: 2px dashed #1877f2;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #42a5f5;
    background: #e3f2fd;
}

.file-upload-area.drag-over {
    border-color: #42a5f5;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-icon {
    color: #1877f2;
    margin-bottom: 15px;
}

.upload-text h4 {
    margin: 0 0 5px 0;
    color: #1877f2;
    font-size: 18px;
    font-weight: 600;
}

.upload-text p {
    margin: 0;
    color: #65676b;
    font-size: 14px;
}

.photo-preview {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.remove-photo-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.remove-photo-btn:hover {
    background: #c0392b;
}

.verification-status {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.verification-status.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.verification-status.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.status-message {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.status-details {
    color: #65676b;
    font-size: 14px;
    line-height: 1.5;
}

.popup-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #1877f2;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #166fe5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e4e6ea;
    color: #1c1e21;
}

.btn-secondary:hover {
    background: #d8dadf;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .verification-instructions {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .popup-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .demo-image {
        max-width: 150px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .popup-content {
        background: #242526;
        color: #e4e6ea;
    }
    
    .popup-header {
        border-bottom-color: #3a3b3c;
    }
    
    .popup-footer {
        background: #3a3b3c;
        border-top-color: #3a3b3c;
    }
    
    .file-upload-area {
        background: #3a3b3c;
        border-color: #1877f2;
    }
    
    .photo-preview {
        background: #3a3b3c;
        border-color: #3a3b3c;
    }
    
    .btn-secondary {
        background: #4e4f50;
        color: #e4e6ea;
    }
    
    .btn-secondary:hover {
        background: #5a5b5c;
    }
}

