/* /static/css/deanonymization.css */

/* Modal Overlay */
.deanon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: deanonFadeIn 0.3s ease;
}

.deanon-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal Content - використовуємо Nunito шрифт */
.deanon-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: deanonSlideUp 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

/* Close Button */
.deanon-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.deanon-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Header */
.deanon-header {
    text-align: center;
    margin-bottom: 24px;
}

.deanon-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.deanon-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.deanon-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Back Button */
.deanon-back-btn {
    background: none;
    border: none;
    color: #8b5cf6; /* Purple як у вашому дизайні */
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 16px;
    transition: color 0.2s;
    font-weight: 600;
}

.deanon-back-btn:hover {
    color: #7c3aed;
}

/* Auth Options */
.deanon-auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

/* Buttons - адаптовані під ваш стиль */
.deanon-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px; /* Більший радіус як у вас */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.deanon-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); /* Gradient як у вас */
    color: white;
}

.deanon-btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.deanon-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e5e7eb;
}

.deanon-btn-secondary:hover {
    background: #e9ecef;
}

.deanon-btn-facebook {
    background: #1877f2;
    color: white;
}

.deanon-btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.3);
}

.deanon-btn .icon {
    font-size: 20px;
}

.deanon-btn-text {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 12px;
    margin-top: 8px;
    transition: color 0.2s;
    width: 100%;
}

.deanon-btn-text:hover {
    color: #333;
}

/* Form */
.deanon-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deanon-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    font-family: 'Nunito', sans-serif;
}

.deanon-input:focus {
    outline: none;
    border-color: #8b5cf6; /* Purple */
}

.deanon-input:read-only {
    background: #f8f9fa;
    color: #666;
}

/* Alerts - адаптовані під ваш стиль */
.deanon-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.deanon-alert-info {
    background: #dbeafe; /* Sky blue */
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
}

.deanon-alert-warning {
    background: #fed7aa; /* Orange */
    color: #92400e;
    border: 1px solid #fb923c;
}

/* Links */
.deanon-links {
    text-align: center;
    margin: 16px 0;
}

.deanon-link {
    color: #8b5cf6; /* Purple */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.deanon-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Divider */
.deanon-divider {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 20px 0;
    position: relative;
}

.deanon-divider::before,
.deanon-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

.deanon-divider::before {
    left: 0;
}

.deanon-divider::after {
    right: 0;
}

/* Loader */
.deanon-loader {
    text-align: center;
    padding: 40px 20px;
}

.deanon-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8b5cf6; /* Purple */
    border-radius: 50%;
    animation: deanonSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.deanon-spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: deanonSpin 0.8s linear infinite;
    margin: 16px auto;
}

/* Success */
.deanon-success {
    text-align: center;
    padding: 20px;
}

.deanon-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.deanon-success h2 {
    color: #10b981; /* Green */
    margin-bottom: 12px;
}

.deanon-text-muted {
    color: #999;
    font-size: 14px;
}

/* Toast Notifications */
.deanon-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fb923c; /* Orange як у вас */
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(251, 146, 60, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.deanon-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.deanon-toast-error {
    background: #fb923c;
}

/* Animations */
@keyframes deanonFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes deanonSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 576px) {
    .deanon-modal-content {
        padding: 24px;
        width: 95%;
    }

    .deanon-header h2 {
        font-size: 20px;
    }

    .deanon-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}
