/**
 * Philippe Argento Toast Notification Styles
 * Premium toast notifications matching brand identity
 */

/* Toast Container */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

@media (max-width: 576px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Individual Toast */
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--pa-gold, #C5B8A5);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

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

.toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}

@media (max-width: 576px) {
    .toast {
        transform: translateY(120%);
    }

    .toast.show {
        transform: translateY(0);
    }

    .toast.hiding {
        transform: translateY(120%);
    }
}

/* Toast Icon */
.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D2926;
    margin-bottom: 2px;
}

.toast-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Toast Close Button */
.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin: -4px -8px -4px 0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.toast-close i {
    font-size: 16px;
}

/* Toast Types */

/* Success */
.toast.toast-success {
    border-left-color: #28a745;
}

.toast.toast-success .toast-icon {
    color: #28a745;
}

/* Error */
.toast.toast-error {
    border-left-color: #dc3545;
}

.toast.toast-error .toast-icon {
    color: #dc3545;
}

/* Warning */
.toast.toast-warning {
    border-left-color: #ffc107;
}

.toast.toast-warning .toast-icon {
    color: #e6a800;
}

/* Info */
.toast.toast-info {
    border-left-color: var(--pa-gold, #C5B8A5);
}

.toast.toast-info .toast-icon {
    color: var(--pa-gold, #C5B8A5);
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: var(--pa-gold, #C5B8A5);
    transition: width linear;
}

.toast.toast-success .toast-progress-bar {
    background: #28a745;
}

.toast.toast-error .toast-progress-bar {
    background: #dc3545;
}

.toast.toast-warning .toast-progress-bar {
    background: #ffc107;
}

/* Toast with Action Button */
.toast-action {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    background: var(--pa-gold, #C5B8A5);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.toast-action:hover {
    background: #A69B8A;
    color: #FFFFFF;
    text-decoration: none;
}

/* Cart Toast Special Styling */
.toast.toast-cart {
    border-left-color: var(--pa-gold, #C5B8A5);
}

.toast.toast-cart .toast-icon {
    color: var(--pa-gold, #C5B8A5);
}

/* Animation for icon */
@keyframes toast-icon-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.toast.show .toast-icon i {
    animation: toast-icon-pop 0.4s ease-out;
}
