/* ================================================
   NOTIFICATIONS PANEL STYLES
   Elder Spores Online - Notification System
   Version: 1.0
   ================================================ */

/* ===============================================
   NOTIFICATION TOAST (Temporary Popup)
   =============================================== */
.notification-toast {
    position: fixed;
    top: 20%;
    right: 2%;
    min-width: 300px;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 2%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-toast.hiding {
    animation: slideOutRight 0.3s ease;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-header {
    font-size: clamp(1.6vb, 1.1rem, 1.6vb);
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 1%;
}

.toast-message {
    font-size: clamp(1.4vb, 0.9rem, 1.4vb);
    color: var(--color-text-beige);
    margin-bottom: 2%;
}

.toast-actions {
    display: flex;
    gap: 1%;
    justify-content: flex-end;
}

.toast-btn {
    padding: 1% 3%;
    background: var(--color-panel);
    color: var(--color-text-beige);
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    font-size: clamp(1.3vb, 0.85rem, 1.3vb);
    cursor: pointer;
    transition: var(--transition-fast);
}

.toast-btn:hover {
    background: var(--color-primary);
    color: var(--color-background);
}

/* ===============================================
   NOTIFICATION PANEL (Dropdown from Icon)
   =============================================== */
.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-height: 600px;
    background: rgba(0, 0, 0, 0.95);
    border: 4px solid #0c2002; 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    z-index: 9999999;
}

.notification-panel.active {
    display: flex;
}

.notification-panel-header {
    padding: 2%;
    border-bottom: 3px solid #0c2002;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-title {
    font-size: clamp(1.6vb, 1.1rem, 1.6vb);
    font-weight: bold;
    color: var(--color-primary);
}

.mark-all-read-btn {
    padding: 1% 2%;
    background: transparent;
    color: #FFFFFF;
    border: 3px solid var(--color-secondary);
    border-radius: 20px;
    font-size: clamp(1.3vb, 0.85rem, 1.3vb);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mark-all-read-btn:hover {
    background: var(--color-primary);
    font-weight: 700;
    color: #000000;
}

.notification-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 1%;
}

.notification-panel-list::-webkit-scrollbar {
    width: 6px;
}

.notification-panel-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.notification-panel-list::-webkit-scrollbar-thumb {
    background: #1e90ff;
    border-radius: 10px;
}

.notification-item {
    position: relative;
    padding: 2%;
    margin: 1.5%;
    background: var(--color-panel);
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-item.unread {
    background: rgba(30, 144, 255, 0.1);
    border-color: var(--color-primary);
}

.notification-item:hover {
    background: #2a2a2a;
    transform: translateX(2px);
}

.notification-item:hover {
    background: #2a2a2a;
    transform: translateX(2px);
}

/* Dismiss Button (X) */
.notification-dismiss-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: rgba(255, 51, 51, 0.8);
    border: 1px solid #ff3333;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.notification-item:hover .notification-dismiss-btn {
    display: flex;
}

.notification-dismiss-btn:hover {
    background: #ff3333;
    transform: scale(1.2);
}

/* Notification Divider */
.notification-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #1e90ff, transparent);
    margin: 2% 0;
}

.notification-item-header {
    font-size: clamp(1.5vb, 1rem, 1.5vb);
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5%;
}

.notification-item-message {
    font-size: clamp(1.3vb, 0.85rem, 1.3vb);
    color: var(--color-text-beige);
    margin-bottom: 1%;
}

.notification-item-date {
    font-size: clamp(1.2vb, 0.75rem, 1.2vb);
    color: #888;
    font-style: italic;
}

.notification-item-actions {
    display: flex;
    gap: 1%;
    margin-top: 1%;
}

.notification-action-btn {
    padding: 1% 2%;
    background: transparent;
    color: #1e90ff;
    border: 1px solid #1e90ff;
    border-radius: 4px;
    font-size: clamp(1.2vb, 0.75rem, 1.2vb);
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-action-btn:hover {
    background: #1e90ff;
    color: #fff;
}

.notification-action-btn.danger {
    color: #ff3333;
    border-color: #ff3333;
}

.notification-action-btn.danger:hover {
    background: #ff3333;
}

.notification-panel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--color-text-beige);
    font-size: clamp(1.4vb, 0.9rem, 1.4vb);
    font-style: italic;
}