/* Age Verification Modal - XDMIQ Universal Styles */

.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.age-verification-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.age-verification-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 2rem;
    text-align: center;
}

.age-verification-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.age-verification-header .subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 400;
}

.age-verification-body {
    padding: 2rem;
}

.privacy-notice {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

.privacy-notice a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 600;
}

.privacy-notice a:hover {
    color: #764ba2;
}

.verification-method {
    margin-bottom: 1.5rem;
}

.verification-method label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 1rem;
}

.verification-method input[type="date"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.verification-method input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.verification-method input[type="date"]:invalid {
    border-color: #e74c3c;
}

.input-helper {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

.verification-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.verification-actions .btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verification-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.verification-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.verification-actions .btn-primary:active {
    transform: translateY(0);
}

.verification-actions .btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.verification-actions .btn-secondary:hover {
    background: #dee2e6;
}

.error-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message .error-text {
    margin: 0;
    color: #c62828;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message .error-text::before {
    content: "⚠️";
    font-size: 1.25rem;
}

.age-verification-footer {
    background: #f8f9fa;
    padding: 1.25rem 2rem;
    border-top: 1px solid #e9ecef;
}

.age-verification-footer .disclaimer {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 576px) {
    .age-verification-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .age-verification-header {
        padding: 1.5rem;
    }
    
    .age-verification-header h2 {
        font-size: 1.5rem;
    }
    
    .age-verification-body {
        padding: 1.5rem;
    }
    
    .verification-actions {
        flex-direction: column;
    }
    
    .verification-actions .btn {
        width: 100%;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .age-verification-modal {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .verification-method label {
        color: #e0e0e0;
    }
    
    .verification-method input[type="date"] {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .privacy-notice {
        background: #2d2d2d;
        color: #b0b0b0;
    }
    
    .age-verification-footer {
        background: #2d2d2d;
        border-top-color: #404040;
    }
    
    .verification-actions .btn-secondary {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .verification-actions .btn-secondary:hover {
        background: #404040;
    }
}
