/**
 * Notification System CSS
 * Eternal Illusion - Dark Theme Notifications
 * Robot avatar + smooth animations
 */

/* === NOTIFICATION CONTAINER === */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
    width: 400px;
}

/* === GUILD RULES SPECIÁLIS POZÍCIÓ === */
.guild-rules-container .notification-container {
    position: absolute;
    top: -60px;
    right: 0;
    width: 400px;
    max-width: 100%;
    z-index: 1000;
}

/* === NOTIFICATION STYLES === */
.notification {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    word-wrap: break-word;
}

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

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* === ROBOT AVATAR === */
.notification-robot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4488ff 0%, #3366cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(68, 136, 255, 0.3);
}

.notification-robot img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* === NOTIFICATION CONTENT === */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.notification-icon {
    font-size: 16px;
}

.notification-title {
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
}

.notification-message {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
}

.notification-timestamp {
    color: #888888;
    font-size: 11px;
    margin-top: 5px;
}

/* === NOTIFICATION TYPES === */
.notification.info {
    border-left: 4px solid #4488ff;
    background: linear-gradient(135deg, #1a2332 0%, #151f2a 100%);
}

.notification.info .notification-robot {
    background: linear-gradient(135deg, #4488ff 0%, #3366cc 100%);
}

.notification.important {
    border-left: 4px solid #ffa500;
    background: linear-gradient(135deg, #332a1a 0%, #2a2015 100%);
}

.notification.important .notification-robot {
    background: linear-gradient(135deg, #ffa500 0%, #cc8800 100%);
}

.notification.success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #1a331a 0%, #152a15 100%);
}

.notification.success .notification-robot {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.notification.error {
    border-left: 4px solid #ff4444;
    background: linear-gradient(135deg, #331a1a 0%, #2a1515 100%);
}

.notification.error .notification-robot {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
}

.notification.danger {
    border-left: 4px solid #ff6b35;
    background: linear-gradient(135deg, #33201a 0%, #2a1a15 100%);
    animation: dangerPulse 2s infinite;
}

.notification.danger .notification-robot {
    background: linear-gradient(135deg, #ff6b35 0%, #cc5529 100%);
}

/* === CLOSE BUTTON === */
.notification-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: #888888;
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.2s;
}

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

/* === PROGRESS BAR === */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 8px 8px;
    transition: width linear;
}

.notification.info .notification-progress {
    background: #4488ff;
}

.notification.important .notification-progress {
    background: #ffa500;
}

.notification.success .notification-progress {
    background: #28a745;
}

.notification.error .notification-progress,
.notification.danger .notification-progress {
    background: #ff4444;
}

/* === SYSTEM MESSAGE OVERLAY === */
.system-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.system-message-overlay.show {
    opacity: 1;
    visibility: visible;
}

.system-message-modal {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid #4488ff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.system-message-overlay.show .system-message-modal {
    transform: scale(1);
}

.system-message-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.system-message-robot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4488ff 0%, #3366cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(68, 136, 255, 0.4);
}

.system-message-robot img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.system-message-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.system-message-content {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.system-message-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.system-message-button {
    background: linear-gradient(135deg, #4488ff 0%, #3366cc 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

.system-message-button:hover {
    background: linear-gradient(135deg, #5599ff 0%, #4477dd 100%);
    transform: translateY(-1px);
}

.system-message-button.secondary {
    background: linear-gradient(135deg, #666666 0%, #555555 100%);
}

.system-message-button.secondary:hover {
    background: linear-gradient(135deg, #777777 0%, #666666 100%);
}

.system-message-button.danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    color: #ffffff;
    font-weight: bold;
    border: 2px solid #ff6666;
    animation: dangerPulse 2s infinite;
}

.system-message-button.danger:hover {
    background: linear-gradient(135deg, #ff5555 0%, #dd3333 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.4);
}

/* === ANIMATIONS === */
@keyframes dangerPulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        max-width: none;
    }
    
    .system-message-modal {
        margin: 20px;
        max-width: none;
        padding: 20px;
    }
    
    .system-message-title {
        font-size: 18px;
    }
    
    .system-message-content {
        font-size: 14px;
    }
}

/* === DARK SCROLLBAR === */
.system-message-modal::-webkit-scrollbar {
    width: 8px;
}

.system-message-modal::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.system-message-modal::-webkit-scrollbar-thumb {
    background: #4488ff;
    border-radius: 4px;
}

.system-message-modal::-webkit-scrollbar-thumb:hover {
    background: #5599ff;
}