/* Ícone de Notificações */
.notification-icon {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: color 0.3s ease;
}

.notification-icon:hover {
    color: #007bff;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: pulse-notification 2s infinite;
}

.notification-badge.zero {
    display: none;
}

@keyframes pulse-notification {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Dropdown das Notificações */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    width: 380px;
    max-height: 540px;
    overflow: hidden;
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
}

.notification-dropdown.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 13px 18px;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notification-header h6 {
    margin: 0;
    font-weight: 700;
    color: #191919;
    font-size: 15px;
}

.notification-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.notification-actions button {
    background: none;
    border: none;
    color: #157dad;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.notification-actions button:hover {
    color: #0d5d82;
    text-decoration: underline;
}

.notification-list {
    max-height: 430px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f2f2f2;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f4f8fb;
}

.notification-item.unread {
    background-color: #eaf4fb;
    box-shadow: inset 3px 0 0 #157dad;
}

.notification-item.unread .notification-title {
    color: #0d5d82;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.notification-footer {
    padding: 12px 18px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-time {
    color: #999;
    font-size: 11px;
}

.notification-type-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    border: 2px solid #fff;
    background: #777;
}

.notification-type-icon.novo_comentario      { background: #2196f3; }
.notification-type-icon.resposta_comentario  { background: #2196f3; }
.notification-type-icon.like_comentario      { background: #e91e63; }
.notification-type-icon.mencao               { background: #ff9800; }
.notification-type-icon.resposta_ia          { background: #6f42c1; }
.notification-type-icon.novo_seguidor        { background: #17a2b8; }
.notification-type-icon.pedido_amizade       { background: #157dad; }
.notification-type-icon.amizade_aceita       { background: #31a24c; }
.notification-type-icon.mensagem_nova        { background: #0a66c2; }

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.notification-footer {
    padding: 12px 18px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.notification-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 280px;
        right: -100px;
    }
}
