/* Notification System Styles */

/* Toast Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 69, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 69, 0, 0.3);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: all;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.notification-trade {
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(33, 150, 243, 0.3);
}

.notification-toast.notification-guild {
    border-color: rgba(156, 39, 176, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(156, 39, 176, 0.3);
}

.notification-toast.notification-success {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(76, 175, 80, 0.3);
}

.notification-toast.notification-warning {
    border-color: rgba(255, 152, 0, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 152, 0, 0.3);
}

.notification-toast.notification-error {
    border-color: rgba(244, 67, 54, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(244, 67, 54, 0.3);
}

.notification-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

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

.notification-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.notification-message {
    font-size: 13px;
    color: #ccc;
    word-wrap: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #fff;
}

/* Notification Bell */
#notification-bell-placeholder {
    display: inline-block;
}

.notification-bell-container {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.notification-bell {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notification-bell:hover {
    border-color: #ff4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Notification Panel */
.notification-panel {
    position: absolute !important;
    top: 50px;
    right: 0;
    width: 400px;
    max-width: 90vw;
    max-height: 600px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 69, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 69, 0, 0.3);
    display: none !important;
    visibility: hidden !important;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.notification-panel.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1;
    pointer-events: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 69, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ff4500;
}

.notification-panel-actions {
    display: flex;
    gap: 10px;
}

.btn-text {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #ff4500;
    text-decoration: underline;
}

.notification-list {
    overflow-y: auto;
    max-height: 500px;
    padding: 10px 0;
}

.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 69, 0, 0.5);
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 69, 0, 0.7);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: rgba(255, 69, 0, 0.1);
}

.notification-item.unread {
    background: rgba(255, 69, 0, 0.05);
    border-left-color: #ff4500;
}

.notification-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

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

.notification-item-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.notification-item-message {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notification-item-time {
    font-size: 11px;
    color: #888;
}

.notification-item-dot {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff4500;
    border-radius: 50%;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .notification-toast {
        min-width: auto;
        max-width: none;
    }

    .notification-panel {
        width: calc(100vw - 20px);
        right: -10px;
    }
}
