/**
 * Welcome Migration Modal Styles
 * For users redirected from old domain to new platform
 */

/* Modal Container */
.welcome-migration-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.welcome-migration-modal.d-none {
    display: none !important;
}

/* Overlay with blur effect */
.welcome-migration-modal .custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Modal Content */
.welcome-migration-modal .custom-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 520px;
    width: 92%;
    margin: auto;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 1;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header with gradient */
.welcome-migration-modal .custom-modal-header {
    background: linear-gradient(135deg, #1bc47d 0%, #16a34a 100%);
    padding: 1.75rem 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.welcome-migration-modal .custom-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.welcome-migration-modal .custom-modal-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* Welcome icon */
.welcome-migration-modal .welcome-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.welcome-migration-modal .welcome-icon i {
    font-size: 2rem;
    color: #fff;
}

.welcome-migration-modal .custom-modal-header h4 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Close button */
.welcome-migration-modal .custom-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

.welcome-migration-modal .custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

/* Body */
.welcome-migration-modal .custom-modal-body {
    padding: 1.75rem;
}

.welcome-migration-modal .greeting-text {
    font-size: 1.05rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.welcome-migration-modal .thank-you-text {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.welcome-migration-modal .whats-new-title {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-migration-modal .whats-new-title i {
    color: #1bc47d;
}

/* Features list */
.welcome-migration-modal .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.welcome-migration-modal .features-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #4b5563;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 10px;
    border: 1px solid #d1fae5;
    transition: all 0.2s ease;
}

.welcome-migration-modal .features-list li:hover {
    transform: translateX(4px);
    border-color: #1bc47d;
}

.welcome-migration-modal .features-list li i {
    color: #1bc47d;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* More features item spans full width */
.welcome-migration-modal .features-list li.feature-more {
    grid-column: 1 / -1;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-color: #fde68a;
}

.welcome-migration-modal .features-list li.feature-more i {
    color: #f59e0b;
}

/* Footer */
.welcome-migration-modal .custom-modal-footer {
    padding: 0 1.75rem 1.75rem;
    display: flex;
    justify-content: center;
}

.welcome-migration-modal .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1bc47d 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(27, 196, 125, 0.4);
    width: 100%;
}

.welcome-migration-modal .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 196, 125, 0.5);
    background: linear-gradient(135deg, #22d88f 0%, #1bc47d 100%);
    color: #fff;
    text-decoration: none;
}

.welcome-migration-modal .btn-cta i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.welcome-migration-modal .btn-cta:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 576px) {
    .welcome-migration-modal .custom-modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }

    .welcome-migration-modal .custom-modal-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .welcome-migration-modal .custom-modal-header h4 {
        font-size: 1.15rem;
    }

    .welcome-migration-modal .welcome-icon {
        width: 60px;
        height: 60px;
    }

    .welcome-migration-modal .welcome-icon i {
        font-size: 1.75rem;
    }

    .welcome-migration-modal .custom-modal-body {
        padding: 1.25rem;
    }

    .welcome-migration-modal .features-list {
        grid-template-columns: 1fr;
    }

    .welcome-migration-modal .custom-modal-footer {
        padding: 0 1.25rem 1.25rem;
    }

    .welcome-migration-modal .btn-cta {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}
