/* ========================================
   Toast Modal Component - Global
   Site tasarım diliyle uyumlu
   ======================================== */

/* Overlay */
.toast-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(21, 101, 192, 0.15) 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.toast-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.toast-modal {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 36px 32px 28px;
    min-width: 360px;
    max-width: 440px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.15),
        0 12px 40px rgba(21, 101, 192, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.toast-modal-overlay.show .toast-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Top Accent Bar */
.toast-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1565C0 0%, #42A5F5 50%, #28ca42 100%);
    border-radius: 24px 24px 0 0;
}

/* Close Button */
.toast-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    line-height: 1;
}

.toast-modal-close:hover {
    color: #475569;
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Icon Circle */
.toast-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}

.toast-modal-icon i {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

/* Title */
.toast-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    color: #1a202c;
}

/* Message */
.toast-modal-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    font-weight: 400;
}

/* ---- Success Theme ---- */
.toast-modal-success::before {
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #28ca42 100%);
}

.toast-modal-success .toast-modal-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(52, 211, 153, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.toast-modal-success .toast-modal-icon i {
    color: #10b981;
}

.toast-modal-success .toast-modal-title {
    color: #065f46;
}

/* ---- Error Theme ---- */
.toast-modal-error::before {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 50%, #dc2626 100%);
}

.toast-modal-error .toast-modal-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(248, 113, 113, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.toast-modal-error .toast-modal-icon i {
    color: #ef4444;
}

.toast-modal-error .toast-modal-title {
    color: #991b1b;
}

/* ---- Warning Theme ---- */
.toast-modal-warning::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
}

.toast-modal-warning .toast-modal-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.toast-modal-warning .toast-modal-icon i {
    color: #f59e0b;
}

.toast-modal-warning .toast-modal-title {
    color: #92400e;
}

/* ---- Info Theme ---- */
.toast-modal-info::before {
    background: linear-gradient(90deg, #1565C0 0%, #42A5F5 50%, #3b82f6 100%);
}

.toast-modal-info .toast-modal-icon {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.12) 0%, rgba(66, 165, 245, 0.08) 100%);
    border: 1px solid rgba(21, 101, 192, 0.2);
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15);
}

.toast-modal-info .toast-modal-icon i {
    color: #1565C0;
}

.toast-modal-info .toast-modal-title {
    color: #1e40af;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .toast-modal {
        min-width: auto;
        max-width: 90vw;
        padding: 28px 20px 24px;
        margin: 0 16px;
        border-radius: 20px;
    }

    .toast-modal-icon {
        width: 52px;
        height: 52px;
    }

    .toast-modal-icon i {
        font-size: 1.5rem;
    }

    .toast-modal-title {
        font-size: 1.05rem;
    }

    .toast-modal-message {
        font-size: 0.9rem;
    }
}
