/**
 * Notifications styles for TripGoGo
 * Handles dropdown, badges, and notification items
 */

/* Notifications Dropdown */
.notifications-dropdown {
    position: relative;
}

.notifications-btn {
    position: relative;
    background: none;
    border: none;
    color: #4B421B;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.notifications-btn:hover {
    color: #F9A826;
    background: rgba(249, 168, 38, 0.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}

.notifications-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.notifications-content.hidden {
    display: none;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--neutral-dark);
}

.mark-all-read-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #666;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.mark-all-read-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #f0f8ff;
    border-left: 3px solid var(--accent);
}

.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--neutral-dark);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.notification-content p {
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
    font-size: 0.8rem;
    line-height: 1.4;
}

.notification-time {
    color: #999;
    font-size: 0.7rem;
}

.notification-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.btn-accept-follower {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Inline accept button for follow request notifications */
.notification-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification-actions .btn-accept-follow {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notification-actions .btn-accept-follow:hover {
    background: #218838;
}

.btn-accept-friend:hover {
    background: #e6a000;
}

.mark-read-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    font-size: 0.7rem;
}

.mark-read-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.no-notifications {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
}

.no-notifications i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
    font-size: 0.9rem;
}

/* Notification toast styles */
.notification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slide-in-right 0.3s ease-out;
    max-width: 300px;
    font-weight: 500;
}

.notification-toast.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification-toast.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notification-toast.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

@keyframes slide-in-right {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
