/**
 * Notifications
 * Toast notifications for achievements and general messages
 */

/* ===================================== */
/* ACHIEVEMENT TOAST NOTIFICATIONS       */
/* ===================================== */

#achievement-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.achievement-toast {
    background: var(--card-background);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.3);
    border: 2px solid var(--primary-color);
    display: flex;
    gap: 15px;
    align-items: center;
    animation: slideInRight 0.5s ease, pulse 0.5s ease 0.5s;
    position: relative;
    overflow: hidden;
}

.achievement-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    pointer-events: none;
}

.achievement-toast.removing {
    animation: slideOutRight 0.5s ease forwards;
}

.achievement-toast-icon-wrapper {
    min-width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    position: relative;
    z-index: 1;
}

.achievement-toast-icon {
    color: white;
    animation: iconPop 0.6s ease;
}

.achievement-toast-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.achievement-toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.achievement-toast-badge {
    background: #FFD700;
    color: #000;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.achievement-toast-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.achievement-toast-description {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 8px;
}

.achievement-toast-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(13, 148, 136, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.achievement-toast-close:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.achievement-toast-close:active {
    transform: scale(0.95);
}

body.dark-mode .achievement-toast-close {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .achievement-toast-close:hover {
    background: var(--danger-color);
    color: white;
}

/* Dark mode achievement toasts */
body.dark-mode .achievement-toast {
    background: #2d2f48;
    border-color: var(--secondary-color);
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.4);
}

body.dark-mode .achievement-toast::before {
    background: var(--primary-color);
}

body.dark-mode .achievement-toast-icon-wrapper {
    background: var(--secondary-color);
}

body.dark-mode .achievement-toast-title {
    color: #ffffff;
}

body.dark-mode .achievement-toast-description {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

/* ===================================== */
/* SIMPLE TOAST NOTIFICATIONS            */
/* ===================================== */

.simple-toast {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 15px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    transition: all 0.3s ease;
}

.simple-toast.removing {
    animation: slideOutRight 0.3s ease;
}

.simple-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.simple-toast-message {
    flex: 1;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.simple-toast-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.5;
    flex-shrink: 0;
}

.simple-toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Toast types */
.simple-toast-success {
    border-left-color: #27ae60;
}

.simple-toast-error {
    border-left-color: #e74c3c;
}

.simple-toast-warning {
    border-left-color: #f39c12;
}

.simple-toast-info {
    border-left-color: #3498db;
}

/* Dark mode simple toasts */
body.dark-mode .simple-toast {
    background: #2d2f48;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .simple-toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================== */
/* RESPONSIVE                            */
/* ===================================== */

@media (max-width: 768px) {
    #achievement-toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .achievement-toast {
        padding: 15px;
    }

    .achievement-toast-icon-wrapper {
        min-width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .achievement-toast-title {
        font-size: 16px;
    }

    .achievement-toast-description {
        font-size: 12px;
    }
}
