/**
 * Aiodify Content Protection - Frontend Styles & Toast System
 * Author: aiodify (https://aiodify.com)
 */

/* ==========================================================================
   Toast Notification Container
   ========================================================================== */
#aiodify-toast-container {
    position: fixed;
    z-index: 99999999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 90vw;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Position Placements */
#aiodify-toast-container.pos-top_center {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

#aiodify-toast-container.pos-top_right {
    top: 24px;
    right: 24px;
    align-items: flex-end;
}

#aiodify-toast-container.pos-bottom_center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

#aiodify-toast-container.pos-bottom_right {
    bottom: 24px;
    right: 24px;
    align-items: flex-end;
}

/* ==========================================================================
   Toast Notification Item
   ========================================================================== */
.aiodify-toast {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    max-width: 480px;
}

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

.aiodify-toast.hide {
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
}

/* Toast Icon */
.aiodify-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.aiodify-toast-icon svg {
    width: 18px;
    height: 18px;
}

.aiodify-toast-message {
    flex-grow: 1;
}

/* ==========================================================================
   Toast Themes
   ========================================================================== */

/* 1. Dark Glass (Default) */
.aiodify-toast.theme-dark_glass {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.aiodify-toast.theme-dark_glass .aiodify-toast-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

/* 2. Neon Indigo */
.aiodify-toast.theme-neon_indigo {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    border: 1px solid #6366f1;
    box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.5), 0 0 15px rgba(129, 140, 248, 0.3);
}
.aiodify-toast.theme-neon_indigo .aiodify-toast-icon {
    background: #6366f1;
    color: #ffffff;
}

/* 3. Clean Light */
.aiodify-toast.theme-clean_light {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
}
.aiodify-toast.theme-clean_light .aiodify-toast-icon {
    background: #f1f5f9;
    color: #4f46e5;
}

/* 4. Amber Alert */
.aiodify-toast.theme-amber_alert {
    background: rgba(26, 20, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.3);
}
.aiodify-toast.theme-amber_alert .aiodify-toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* ==========================================================================
   Shield Utility Classes
   ========================================================================== */
.aiodify-no-select {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.aiodify-no-drag {
    -webkit-user-drag: none !important;
    user-drag: none !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #aiodify-toast-container {
        max-width: 94vw;
    }
    .aiodify-toast {
        padding: 12px 16px;
        font-size: 13px;
    }
}
