/**
 * Athena Notifications - Enhanced notification system
 * Matches app theme colors and provides sophisticated styling
 */

/* Notification Container */
.athena-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

.athena-notifications-container .notification {
    pointer-events: auto;
}

/* Base Notification Styles */
.athena-notification {
    position: relative;
    margin-bottom: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(67, 89, 113, 0.15);
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    opacity: 0;
    overflow: hidden;
}

/* Animation States */
.athena-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.athena-notification.hide {
    transform: translateX(100%);
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: 0;
}

/* Icon Container */
.athena-notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
}

/* Content Area */
.athena-notification-content {
    flex: 1;
    min-width: 0;
}

.athena-notification-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 4px 0;
    color: var(--bs-heading-color);
}

.athena-notification-message {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    color: var(--bs-body-color);
    word-wrap: break-word;
}

/* Close Button */
.athena-notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-top: 2px;
    opacity: 0.6;
}

.athena-notification-close:hover {
    opacity: 1;
    background: rgba(67, 89, 113, 0.1);
}

.athena-notification-close i {
    font-size: 14px;
    color: var(--bs-body-color);
}

/* Progress Bar */
.athena-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 8px 8px;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Success Variant */
.athena-notification.success {
    background: linear-gradient(135deg, #71dd37 0%, rgba(113, 221, 55, 0.95) 100%);
    border-color: var(--bs-success);
    color: white;
}

.athena-notification.success .athena-notification-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.athena-notification.success .athena-notification-title,
.athena-notification.success .athena-notification-message {
    color: white;
}

.athena-notification.success .athena-notification-close i {
    color: rgba(255, 255, 255, 0.8);
}

.athena-notification.success .athena-notification-progress {
    background: rgba(255, 255, 255, 0.4);
}

/* Error Variant */
.athena-notification.error {
    background: linear-gradient(135deg, #ff3e1d 0%, rgba(255, 62, 29, 0.95) 100%);
    border-color: var(--bs-danger);
    color: white;
}

.athena-notification.error .athena-notification-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.athena-notification.error .athena-notification-title,
.athena-notification.error .athena-notification-message {
    color: white;
}

.athena-notification.error .athena-notification-close i {
    color: rgba(255, 255, 255, 0.8);
}

.athena-notification.error .athena-notification-progress {
    background: rgba(255, 255, 255, 0.4);
}

/* Warning Variant */
.athena-notification.warning {
    background: linear-gradient(135deg, #ffab00 0%, rgba(255, 171, 0, 0.95) 100%);
    border-color: var(--bs-warning);
    color: white;
}

.athena-notification.warning .athena-notification-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.athena-notification.warning .athena-notification-title,
.athena-notification.warning .athena-notification-message {
    color: white;
}

.athena-notification.warning .athena-notification-close i {
    color: rgba(255, 255, 255, 0.8);
}

.athena-notification.warning .athena-notification-progress {
    background: rgba(255, 255, 255, 0.4);
}

/* Info Variant */
.athena-notification.info {
    background: linear-gradient(135deg, #03c3ec 0%, rgba(3, 195, 236, 0.95) 100%);
    border-color: var(--bs-info);
    color: white;
}

.athena-notification.info .athena-notification-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.athena-notification.info .athena-notification-title,
.athena-notification.info .athena-notification-message {
    color: white;
}

.athena-notification.info .athena-notification-close i {
    color: rgba(255, 255, 255, 0.8);
}

.athena-notification.info .athena-notification-progress {
    background: rgba(255, 255, 255, 0.4);
}

/* Default/Light Variant */
.athena-notification.default {
    background: linear-gradient(135deg, #fff 0%, rgba(252, 253, 253, 0.95) 100%);
    border-color: var(--bs-border-color);
}

.athena-notification.default .athena-notification-icon {
    background: var(--bs-light-bg-subtle);
    color: var(--bs-body-color);
}

/* Hover Effects */
.athena-notification:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 30px rgba(67, 89, 113, 0.25);
}

.athena-notification:hover .athena-notification-progress {
    animation-play-state: paused;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .athena-notifications-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .athena-notification {
        padding: 14px 16px;
    }

    .athena-notification-title {
        font-size: 13px;
    }

    .athena-notification-message {
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .athena-notification.default {
        background: linear-gradient(135deg, #233446 0%, rgba(35, 52, 70, 0.95) 100%);
        border-color: rgba(67, 89, 113, 0.3);
    }

    .athena-notification.default .athena-notification-title {
        color: #fff;
    }

    .athena-notification.default .athena-notification-message {
        color: rgba(255, 255, 255, 0.8);
    }

    .athena-notification.default .athena-notification-close i {
        color: rgba(255, 255, 255, 0.6);
    }
}