/**
 * Messaging Notification Icon Styles
 */

/* Base notification */
.am-messages-notification {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
}

.am-messages-notification:hover {
    opacity: 0.8;
}

/* Icon container */
.am-message-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* SVG icon */
.am-message-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Badge */
.am-message-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Text */
.am-message-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Sizes */
.am-messages-notification.am-size-small .am-message-icon svg {
    width: 18px;
    height: 18px;
}

.am-messages-notification.am-size-small .am-message-badge {
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 9px;
    top: -6px;
    right: -6px;
}

.am-messages-notification.am-size-small .am-message-text {
    font-size: 12px;
}

.am-messages-notification.am-size-medium .am-message-icon svg {
    width: 24px;
    height: 24px;
}

.am-messages-notification.am-size-medium .am-message-badge {
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 11px;
    top: -8px;
    right: -8px;
}

.am-messages-notification.am-size-medium .am-message-text {
    font-size: 14px;
}

.am-messages-notification.am-size-large .am-message-icon svg {
    width: 32px;
    height: 32px;
}

.am-messages-notification.am-size-large .am-message-badge {
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 13px;
    top: -10px;
    right: -10px;
}

.am-messages-notification.am-size-large .am-message-text {
    font-size: 16px;
}

/* Has unread state */
.am-messages-notification.has-unread .am-message-icon {
    animation: pulse 2s infinite;
}

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

/* Link hover effect */
a.am-messages-notification:hover {
    color: #3498db;
    text-decoration: none;
}

a.am-messages-notification:hover .am-message-badge {
    background-color: #c0392b;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .am-messages-notification {
        gap: 6px;
    }
    
    .am-message-text {
        display: none; /* Hide text on mobile, show icon only */
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .am-messages-notification {
        color: #fff;
    }
}

