/* Custom Alert System Styles - ThriftSeek Modern */

/* Alert Overlay */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Alert Box */
.custom-alert-box {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 2.4rem;
    padding: 3.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: scale(0.7) translateY(-40px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.custom-alert-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: left 0.7s;
}

.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1) translateY(0);
}

.custom-alert-overlay.show .custom-alert-box::before {
    left: 100%;
}

/* Alert Icon */
.custom-alert-icon {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    font-size: 4.5rem;
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.custom-alert-box.success .custom-alert-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.custom-alert-box.error .custom-alert-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.custom-alert-box.warning .custom-alert-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.custom-alert-box.info .custom-alert-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.custom-alert-box.coming-soon .custom-alert-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.custom-alert-box.cart .custom-alert-icon {
    background: linear-gradient(135deg, #ff5e3a 0%, #ff3814 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 94, 58, 0.4);
}

/* Alert Title */
.custom-alert-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #1f2937;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Alert Message */
.custom-alert-message {
    font-size: 1.6rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Alert Buttons */
.custom-alert-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.custom-alert-btn {
    padding: 1.4rem 3.5rem;
    border-radius: 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-width: 13rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.custom-alert-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-alert-btn:hover::before {
    width: 300px;
    height: 300px;
}

.custom-alert-btn.confirm {
    color: white;
    position: relative;
}

.custom-alert-btn.confirm.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.custom-alert-btn.confirm.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.custom-alert-btn.confirm.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.custom-alert-btn.confirm.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.custom-alert-btn.confirm.coming-soon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.custom-alert-btn.confirm.cart {
    background: linear-gradient(135deg, #ff5e3a 0%, #ff3814 100%);
    box-shadow: 0 6px 20px rgba(255, 94, 58, 0.4);
}

.custom-alert-btn.cancel {
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-alert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.custom-alert-btn.cancel:hover {
    background: linear-gradient(145deg, #e5e7eb 0%, #d1d5db 100%);
}

.custom-alert-btn:active {
    transform: translateY(-1px);
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Toast */
.custom-toast {
    padding: 1.8rem 2.5rem;
    border-radius: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 320px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.custom-toast.show {
    transform: translateX(0);
}

.custom-toast i {
    font-size: 2.2rem;
}

.custom-toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: white;
    border-left: 5px solid #059669;
}

.custom-toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
    border-left: 5px solid #dc2626;
}

.custom-toast.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
    color: white;
    border-left: 5px solid #d97706;
}

.custom-toast.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: white;
    border-left: 5px solid #2563eb;
}

/* Responsive */
@media (max-width: 480px) {
    .custom-alert-box {
        padding: 2.5rem 2rem;
        margin: 1rem;
        border-radius: 2rem;
    }

    .custom-alert-icon {
        width: 7rem;
        height: 7rem;
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .custom-alert-title {
        font-size: 2.2rem;
    }

    .custom-alert-message {
        font-size: 1.5rem;
    }

    .custom-alert-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .custom-alert-btn {
        width: 100%;
        padding: 1.3rem 2rem;
    }

    #toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .custom-toast {
        min-width: auto;
        width: 100%;
    }
}

/* Smooth transitions for all elements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .custom-toast {
        min-width: auto;
    }
}
