/* Translation Notification Styles */

#translation-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000001;
    min-width: 320px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

#translation-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

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

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

.translation-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-bg, #1a1a1a);
    border: 1px solid var(--border, #2d2d2d);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.translation-notification-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent, #ffb11a);
}

.translation-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 177, 26, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent, #ffb11a);
    flex-shrink: 0;
    font-weight: bold;
}

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

.translation-notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin-bottom: 4px;
    line-height: 1.3;
}

.translation-notification-message {
    font-size: 13px;
    color: var(--text-secondary, #b0b0b0);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.translation-flag {
    font-size: 16px;
    line-height: 1;
}

.translation-notification-close {
    background: transparent;
    border: none;
    color: var(--text-secondary, #888);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.translation-notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #ffffff);
}

.translation-notification-close i {
    font-size: 12px;
}

/* Error state */
#translation-notification.error .translation-notification-content::before {
    background: #ef4444;
}

#translation-notification.error .translation-notification-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Reset state */
#translation-notification.reset .translation-notification-content::before {
    background: #3b82f6;
}

#translation-notification.reset .translation-notification-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    #translation-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Dark mode adjustments */
.dark-theme #translation-notification .translation-notification-content,
.light-mode #translation-notification .translation-notification-content {
    background: var(--card-bg);
    border-color: var(--border);
}

.dark-theme #translation-notification .translation-notification-title,
.light-mode #translation-notification .translation-notification-title {
    color: var(--text-primary);
}

.dark-theme #translation-notification .translation-notification-message,
.light-mode #translation-notification .translation-notification-message {
    color: var(--text-secondary);
}
