/**
 * AI CHAT MODAL STYLES
 * ===================
 * 
 * Gemini-inspirált AI chat UI stílusok
 * - Extra-large modal támogatás
 * - Chat bubble system
 * - Typing indicators
 * - WoW theme integration
 */

/* ===== AI CHAT CONTAINER ===== */
.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #1a1a1a;
    color: #e0e0e0;
    overflow: hidden;
}

/* ===== CHAT HEADER ===== */
.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2d1b69 0%, #11101d 100%);
    border-bottom: 1px solid #444;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

.ai-status-indicator.online {
    background: #4CAF50;
}

.ai-status-text {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.rate-limit-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #bbb;
}

.rate-counter.rate-ok {
    color: #4CAF50;
    font-weight: 600;
}

.rate-counter.rate-warning {
    color: #FF9800;
    font-weight: 600;
}

.rate-counter.rate-critical {
    color: #f44336;
    font-weight: 600;
    animation: pulse 1s infinite;
}

/* ===== CHAT MESSAGES AREA ===== */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #0f0f0f;
    scroll-behavior: smooth;
    min-height: 0; /* Fontos a flex működéshez */
    width: 100%;
    height: 100%; /* Explicit magasság */
}

.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== CHAT MESSAGE BUBBLES ===== */
.chat-message {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease-out;
}

.chat-message.user-message {
    justify-content: flex-end;
    margin-left: 60px;
}

.chat-message.ai-message {
    justify-content: flex-start;
    margin-right: 60px;
}

.chat-message.error-message {
    justify-content: flex-start;
    margin-right: 60px;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-right: 12px;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
    margin-left: 12px;
}

.error-message .message-avatar {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    margin-right: 12px;
}

.message-content {
    max-width: 100%;
}

.message-bubble {
    background: #2a2a2a;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message .message-bubble {
    background: #2a2a2a;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
    border: 1px solid #444;
}

.error-bubble {
    background: #3d1a1a !important;
    border: 1px solid #ff6b6b !important;
    color: #ffcdd2 !important;
}

.welcome-message .message-bubble {
    background: linear-gradient(135deg, #2d1b69 0%, #11101d 100%);
    border: 1px solid #667eea;
    color: #e0e0e0;
}

.welcome-message ul {
    margin: 8px 0;
    padding-left: 20px;
}

.welcome-message li {
    margin: 4px 0;
}

.message-time {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-align: right;
}

.user-message .message-time {
    text-align: left;
}

.ai-message .message-time {
    text-align: left;
}

/* ===== MESSAGE ATTACHMENTS ===== */
.message-attachments {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
}

.attachments-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-weight: 500;
    margin-bottom: 6px;
}

.attachments-header i {
    color: #667eea;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.attachment-item:hover {
    background: rgba(0, 0, 0, 0.3);
}

.attachment-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attachment-icon i {
    font-size: 12px;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-title {
    color: #e0e0e0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-category {
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Kattintható csatolmányok */
.attachment-item.clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.attachment-item.clickable:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.attachment-click-hint {
    opacity: 0;
    color: #667eea;
    font-size: 10px;
    transition: opacity 0.2s ease;
    margin-left: 8px;
}

.attachment-item.clickable:hover .attachment-click-hint {
    opacity: 1;
}

/* ===== ATTACHMENT MODAL STYLES ===== */
.attachment-modal-content {
    text-align: left;
}

.attachment-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.attachment-modal-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.attachment-modal-info {
    flex: 1;
}

.attachment-modal-category {
    color: #667eea;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 4px;
}

.attachment-modal-title {
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.attachment-modal-body {
    margin-bottom: 16px;
}

.attachment-modal-body h4 {
    color: #e0e0e0;
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.attachment-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
}

.attachment-no-content {
    text-align: center;
    color: #888;
    padding: 20px;
}

.attachment-no-content i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #555;
}

.attachment-modal-footer {
    padding-top: 12px;
    border-top: 1px solid #333;
}

.attachment-meta {
    color: #666;
    font-style: italic;
}

/* ===== ATTACHMENT OVERLAY MODAL ===== */
.attachment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 15000; /* Magasabb mint az UniversalModal (10000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.attachment-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.attachment-overlay-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.attachment-overlay:not(.show) .attachment-overlay-modal {
    transform: translate(-50%, -50%) scale(0.9);
}

.attachment-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2d1b69 0%, #11101d 100%);
    border-bottom: 1px solid #444;
}

.attachment-overlay-header h3 {
    color: #e0e0e0;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.attachment-overlay-close {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.attachment-overlay-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.attachment-overlay-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Scrollbar a overlay modal body-ban */
.attachment-overlay-body::-webkit-scrollbar {
    width: 8px;
}

.attachment-overlay-body::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.attachment-overlay-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.attachment-overlay-body::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* Responsive overlay */
@media (max-width: 768px) {
    .attachment-overlay-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .attachment-overlay-header {
        padding: 12px 16px;
    }
    
    .attachment-overlay-header h3 {
        font-size: 16px;
    }
    
    .attachment-overlay-body {
        padding: 16px;
        max-height: calc(90vh - 70px);
    }
}

.message-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.response-time, .tokens-used {
    font-size: 10px;
    color: #666;
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease-out;
}

.typing-content {
    margin-left: 12px;
}

.typing-bubble {
    background: #2a2a2a;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-text {
    color: #888;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

/* ===== INTELLIGENT SEARCH SYSTEM ===== */
.intelligent-search-container {
    padding: 16px 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.search-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* BAL OLDAL: Kereső */
.search-section {
    flex: 2;
}

.search-input-container {
    position: relative;
}

.ai-search-input {
    width: 100%;
    padding: 10px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-search-input:focus {
    border-color: #667eea;
}

.ai-search-input::placeholder {
    color: #666;
}

.search-results {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    margin-bottom: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.search-result-item {
    padding: 10px 16px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #3a3a3a;
}

.search-result-title {
    font-size: 13px;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.search-result-category {
    font-size: 11px;
    color: #667eea;
    text-transform: uppercase;
}

/* JOBB OLDAL: Hozzáadott elemek */
.added-items-section {
    flex: 1;
    min-width: 200px;
    display: none; /* Alapból rejtve, csak akkor jelenik meg, ha van hozzáadott elem */
}

.added-items-header {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
}

.added-items-container {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 12px;
    min-height: 80px;
}

.no-items-message {
    color: #666;
    font-size: 12px;
    text-align: center;
    font-style: italic;
    padding: 20px 0;
}

.added-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 12px;
}

.added-item:last-child {
    margin-bottom: 0;
}

.added-item-text {
    color: #e0e0e0;
    flex: 1;
}

.added-item-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 8px;
}

.added-item-remove:hover {
    color: #ff5252;
}

.items-limit-info {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* ===== AI CHAT FOOTER (MODAL FOOTER) ===== */
.ai-chat-footer {
    background: #1a1a1a !important;
    border-top: 1px solid #333 !important;
    padding: 16px 20px !important;
    margin: 0 !important;
}

/* ===== AI CHAT INPUT FOOTER ===== */
.ai-chat-input-footer {
    width: 100%;
    background: transparent;
}

.image-preview {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.preview-container {
    position: relative;
    display: inline-block;
}

#previewImg {
    max-width: 200px;
    max-height: 150px;
    border-radius: 4px;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    color: white;
    cursor: pointer;
    font-size: 10px;
}

.preview-info {
    margin-left: 12px;
    display: inline-block;
    vertical-align: top;
    color: #888;
    font-size: 12px;
}

.input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.image-upload-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #888;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.image-upload-btn:hover {
    background: #3a3a3a;
    border-color: #667eea;
    color: #667eea;
}

.text-input-container {
    flex: 1;
    position: relative;
}

#aiChatInput {
    width: 100%;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #667eea #2a2a2a;
}

/* Webkit scrollbar styling (Chrome, Safari, Edge) */
#aiChatInput::-webkit-scrollbar {
    width: 8px;
}

#aiChatInput::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 10px;
}

#aiChatInput::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
}

#aiChatInput::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

#aiChatInput:focus {
    border-color: #667eea;
}

#aiChatInput::placeholder {
    color: #666;
}

.send-btn {
    background: #667eea;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

.input-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
    color: #666;
}

.input-tips {
    flex: 1;
}

.character-counter {
    font-family: monospace;
}

.char-warning {
    color: #ff9800 !important;
}

/* ===== ERROR STYLES ===== */
.error-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
}

.error-text {
    display: inline;
}

.error-details {
    font-size: 11px;
    color: #ffab91;
    margin-top: 4px;
    font-family: monospace;
}

/* ===== ANIMATIONS ===== */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .ai-chat-container {
        height: 85vh;
        min-height: 500px;
    }
    
    /* AI Fullscreen Mobile támogatás */
    .modal-container.modal-ai-fullscreen .ai-chat-container {
        height: 90vh;
        min-height: 90vh;
    }
    
    .universal-modal.show .modal-container.modal-ai-fullscreen {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .search-layout {
        flex-direction: column;
        gap: 12px;
    }
    
    .added-items-section {
        min-width: unset;
    }
    
    .chat-message.user-message {
        margin-left: 20px;
    }
    
    .chat-message.ai-message,
    .chat-message.error-message {
        margin-right: 20px;
    }
    
    .input-footer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===== AI FULLSCREEN MODAL SUPPORT ===== */
.modal-container.modal-ai-fullscreen .ai-chat-container {
    height: 100%;
    width: 100%;
    min-height: 0;
}

/* AI Fullscreen Modal Styling */
.universal-modal.show .modal-container.modal-ai-fullscreen {
    max-width: 95vw;
    width: 95vw;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.universal-modal.show .modal-container.modal-ai-fullscreen .modal-body {
    padding: 0 !important;
    background: transparent !important;
    flex: 1;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important; /* Fontos a flex működéshez */
}

.universal-modal.show .modal-container.modal-ai-fullscreen .modal-header {
    background: linear-gradient(135deg, #2d1b69 0%, #11101d 100%);
    color: white;
    border-bottom: 1px solid #444;
    padding: 16px 24px; /* kissé kisebb padding */
}

.universal-modal.show .modal-container.modal-ai-fullscreen .modal-close {
    color: white;
}

.universal-modal.show .modal-container.modal-ai-fullscreen .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* DEBUG: Fehér sáv eltávolítása */
.universal-modal.show .modal-container.modal-ai-fullscreen {
    background: #1a1a1a !important;
}

.universal-modal.show .modal-container.modal-ai-fullscreen * {
    box-sizing: border-box;
}

/* Modal Content Override AI Chat esetén */
.universal-modal.show .modal-container.modal-ai-fullscreen .modal-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* Modal Icon elrejtése AI Chat esetén */
.universal-modal.show .modal-container.modal-ai-fullscreen .modal-icon {
    display: none !important;
}

/* ===== EXTRA LARGE MODAL SUPPORT (BACKWARD COMPATIBILITY) ===== */
.modal-container.modal-extra-large .ai-chat-container {
    height: 75vh;
    min-height: 600px;
    max-height: 900px;
}

/* Dark theme compatibility */
.universal-modal.show .modal-container.modal-extra-large {
    max-width: 1200px;
    width: 90vw;
}

.universal-modal.show .modal-container.modal-extra-large .modal-body {
    padding: 0;
    background: transparent;
}

.universal-modal.show .modal-container.modal-extra-large .modal-header {
    background: linear-gradient(135deg, #2d1b69 0%, #11101d 100%);
    color: white;
    border-bottom: 1px solid #444;
}

.universal-modal.show .modal-container.modal-extra-large .modal-close {
    color: white;
}

.universal-modal.show .modal-container.modal-extra-large .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== VIDEÓ ÉS RAIDPLAN LINKEK ===== */
.video-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 8px 4px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.video-link-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8851a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
}

.video-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.video-link-btn i {
    font-size: 1.1em;
}

.raidplan-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 8px 4px 0;
    padding: 6px 10px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.raidplan-link:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, #2c68a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.4);
    text-decoration: none;
    color: white;
}

.raidplan-link i {
    font-size: 0.9em;
}

/* ===== VIDEÓ PLAYER MODAL ===== */
.video-player-container {
    text-align: center;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.video-player-container video {
    border-radius: 8px 8px 0 0;
    background: #000;
}

.video-info {
    padding: 15px;
    background: #2a2a2a;
    border-radius: 0 0 8px 8px;
}

.video-info p {
    margin: 5px 0;
    color: #e0e0e0;
}

.video-info small {
    color: #888;
    font-size: 0.8em;
    word-break: break-all;
}

/* ===== AI ACTIONS ÉS SUGGESTIONS ===== */
.ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid #444;
}

.ai-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 0.8em;
    border-radius: 12px;
    color: white;
}

.ai-action i {
    font-size: 0.9em;
}

.action-default {
    background: #666;
}

.action-video {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.action-affix {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.action-dungeon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.action-raid {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.ai-suggestions {
    margin: 10px 0 5px 0;
    padding: 8px 0;
    border-top: 1px solid #444;
}

.suggestions-label {
    font-size: 0.85em;
    color: #bbb;
    margin-bottom: 6px;
    font-weight: 500;
}

.ai-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 3px 6px 3px 0;
    padding: 6px 10px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.ai-suggestion:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, #2c68a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.4);
}

.ai-suggestion:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.ai-suggestion i {
    font-size: 0.9em;
}