/**
 * Custom Alert/Modal Styles
 * استایل‌های سیستم alert سفارشی
 */

/* Modal Overlay */
.melodica-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    font-family: 'BonyadeKoodakFaNum', sans-serif;
}

.melodica-alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-black-70);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

/* Alert Box */
.melodica-alert-box {
    position: relative;
    background: var(--gradient-alert-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px var(--shadow-black-50);
    border: 1px solid var(--overlay-purple-245-30);
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.melodica-alert-box.melodica-alert-show {
    transform: scale(1);
    opacity: 1;
}

/* Alert Icon */
.melodica-alert-icon {
    margin-bottom: 1.5rem;
    animation: bounceIn 0.5s ease;
}

.melodica-alert-icon svg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: block;
}

/* Alert Title */
.melodica-alert-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Alert Message */
.melodica-alert-message {
    font-size: 1rem;
    color: var(--overlay-white-85);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Alert Actions */
.melodica-alert-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.melodica-alert-btn {
    padding: 0.875rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 120px;
}

.melodica-alert-confirm {
    background: var(--gradient-alert-button);
    color: var(--color-white);
    box-shadow: 0 4px 15px var(--shadow-purple-245-40);
}

.melodica-alert-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-purple-245-60);
}

.melodica-alert-confirm:active {
    transform: translateY(0);
}

.melodica-alert-cancel {
    background: var(--overlay-white-10);
    color: var(--overlay-white-90);
    border: 1px solid var(--overlay-white-30);
}

.melodica-alert-cancel:hover {
    background: var(--overlay-white-15);
    border-color: var(--overlay-white-30);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .melodica-alert-box {
        padding: 2rem 1.5rem;
        max-width: 340px;
        border-radius: 16px;
    }

    .melodica-alert-icon svg {
        width: 64px;
        height: 64px;
    }

    .melodica-alert-title {
        font-size: 1.25rem;
    }

    .melodica-alert-message {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .melodica-alert-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .melodica-alert-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* RTL Support */
[dir="rtl"] .melodica-alert-box {
    text-align: center;
}

