/* assets/css/notifications.css */

/* Notification Toast Detailed */
.notification-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.notification-toast i {
    font-size: 24px;
}

.toast-content {
    flex: 1;
}

.toast-content strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-primary);
    font-size: 14px;
}

.toast-content p {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
}

.toast-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Popup Messages */
.popup-messages-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6000;
    pointer-events: none;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.popup-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: all;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-message.show {
    transform: scale(1);
    opacity: 1;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
}

.popup-header i {
    font-size: 28px;
    color: gold;
    animation: pulse 2s infinite;
}

.popup-header h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    color: white;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.popup-footer {
    text-align: center;
}

.popup-btn {
    background: white;
    color: #333;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: gold;
    color: #000;
}

.popup-image {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    max-height: 200px;
}

.popup-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.popup-button {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.popup-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Notifications Page */
.notifications-header {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.notifications-header h1 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.notification-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.icon-like {
    background: linear-gradient(135deg, #ff6b6b, #ff0000);
}

.icon-comment, .icon-comment_like {
    background: linear-gradient(135deg, #4facfe, #00b4ff);
}

.icon-follow {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.icon-verify {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
}

.icon-popup {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.icon-mention {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
}

.icon-poll {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.notification-content {
    flex: 1;
}

.notification-text {
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-text .username {
    font-weight: 700;
    color: var(--primary-color);
}

.notification-message {
    color: var(--text-primary);
    margin-right: 5px;
}

.notification-preview {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 5px;
    padding: 5px;
    background: var(--bg-tertiary);
    border-radius: 5px;
}

.notification-time {
    color: var(--text-muted);
    font-size: 10px;
}