/* assets/css/destinasyon-chat.css - Destinasyon Chatbot Widget Stilleri */

/* ============================================================================
   MAIN WIDGET CONTAINER
   ============================================================================ */

.destinasyon-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   CHAT BUTTON (MINIMIZED STATE)
   ============================================================================ */

.chat-button {
    position: relative;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 280px;
    user-select: none;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.4);
}

.chat-button-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-icon {
    font-size: 24px;
    color: #ffffff;
}

.chat-button-text {
    flex: 1;
}

.chat-button-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-button-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.chat-button-close {
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
}

.chat-button:hover .chat-button-close {
    opacity: 0.7;
}

.chat-button-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.chat-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ============================================================================
   CHAT CONTAINER (EXPANDED STATE)
   ============================================================================ */

.chat-container {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    width: 380px;
    height: 520px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-direction: column;
}

.destinasyon-chat-widget:not(.minimized) .chat-button {
    display: none;
}

.destinasyon-chat-widget:not(.minimized) .chat-container {
    display: flex;
}

/* ============================================================================
   CHAT HEADER
   ============================================================================ */

.chat-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.expert-avatar {
    width: 40px;       /* 48px → 40px */
    height: 40px;      /* 48px → 40px */
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;          /* EKLE: Avatar ortada */
}

.expert-details {
    flex: 1;
}

.expert-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.expert-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: #28a745;
    animation: blink 2s infinite;
}

.status-indicator.offline {
    background: #6c757d;
}

.status-indicator.error {
    background: #dc3545;
}

.status-indicator.connecting {
    background: #ffc107;
    animation: spin 1s linear infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ============================================================================
   MESSAGES AREA
   ============================================================================ */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Welcome Message */
.chat-welcome {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.welcome-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #007bff;
}

.welcome-text p {
    margin: 0;
    line-height: 1.5;
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 8px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-message, .system-message {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #007bff;
    color: white;
}

.ai-message .message-avatar {
    background: #28a745;
    color: white;
}

.message-content {
    flex: 1;
}

.user-message .message-content {
    text-align: right;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.user-message .message-header {
    justify-content: flex-end;
}

.expert-name {
    font-size: 12px;
    font-weight: 600;
    color: #007bff;
}

.message-time {
    font-size: 11px;
    color: #6c757d;
}

.message-text {
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    line-height: 1.4;
    font-size: 14px;
    word-wrap: break-word;
}

.user-message .message-text {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.off-topic-message .message-text {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.error-message .message-text {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.system-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 13px;
    color: #495057;
    justify-content: center;
}

/* ============================================================================
   TYPING INDICATOR
   ============================================================================ */

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    margin: 0 16px;
}

.typing-avatar {
    width: 24px;
    height: 24px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.typing-content {
    flex: 1;
}

.typing-text {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    margin-bottom: 2px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: #28a745;
    border-radius: 50%;
    animation: typingDots 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ============================================================================
   INPUT AREA
   ============================================================================ */

.chat-input-area {
    border-top: 1px solid #e9ecef;
    background: white;
}

/* Suggested Questions */
.suggested-questions {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    background: #f8f9fa;
}

.suggested-title {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.suggested-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggested-question {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: left;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.suggested-question:hover {
    background: #e3f2fd;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-1px);
}

/* Input Form */
.chat-input-form {
    padding: 16px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    color: #495057;
    resize: none;
}

.chat-input::placeholder {
    color: #adb5bd;
}

.chat-input:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.chat-send-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
    color: #6c757d;
}

.char-counter {
    transition: color 0.2s ease;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .destinasyon-chat-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .chat-button {
        min-width: auto;
        width: 100%;
    }
    
    .chat-container {
        width: 100%;
        height: 60vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .chat-button-text {
        display: none;
    }
    
    .chat-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: 70vh;
        border-radius: 12px;
    }
    
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .chat-input-form {
        padding: 12px;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

.destinasyon-chat-widget.minimized {
    animation: slideInRight 0.5s ease;
}

.destinasyon-chat-widget:not(.minimized) {
    animation: expandChat 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes expandChat {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.chat-button:focus,
.chat-action-btn:focus,
.suggested-question:focus,
.chat-send-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.chat-input:focus {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chat-button {
        border: 2px solid #000;
    }
    
    .message-text {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .destinasyon-chat-widget,
    .chat-button,
    .chat-action-btn,
    .suggested-question,
    .chat-send-btn,
    .message-text {
        transition: none;
    }
    
    .chat-notification-badge,
    .status-indicator.online,
    .typing-dots span {
        animation: none;
    }
}

.chat-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #007bff;
    transition: all 0.2s ease;
}

.chat-link:hover {
    color: #0056b3;
    text-decoration: none;
    border-bottom: 1px solid #0056b3;
}

.chat-link i {
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.7;
}

/* ============================================================================
   YENİ: HUB MODAL CSS - Mevcut destinasyon-chat.css dosyasının sonuna eklenecek
   ============================================================================ */

/* Loading Preparation Animation */
.modal-preparation-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 8px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #007bff;
    animation: modalPrepSlideIn 0.3s ease;
}

@keyframes modalPrepSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-left: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* Hub Modal Base Styles */
.hub-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-modal.show {
    opacity: 1;
    visibility: visible;
}

.hub-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.hub-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-modal.show .hub-modal-content {
    transform: scale(1) translateY(0);
}

/* Hub Modal Header */
.hub-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.hub-header-content {
    flex: 1;
}

.hub-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.hub-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.hub-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.hub-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Hub Stats */
.hub-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e9ecef;
    margin: 0;
}

.stat-card {
    background: white;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: #f8f9fa;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Hub Experts Section */
.hub-experts {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.hub-experts::-webkit-scrollbar {
    width: 4px;
}

.hub-experts::-webkit-scrollbar-track {
    background: transparent;
}

.hub-experts::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.experts-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experts-title:before {
    content: "👥";
    font-size: 18px;
}

.experts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Expert Cards */
.hub-expert-card {
    display: flex;
    align-items: flex-start;  /* center → flex-start */
    gap: 16px;               /* 12px → 16px */
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.hub-expert-card:hover {
    background: #e3f2fd;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.expert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.expert-content {
    flex: 1;
    min-width: 0;
	order: 0;
}

.expert-header {
    margin-bottom: 8px;
}

.expert-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 2px 0;
}

.expert-title {
    font-size: 12px;
    color: #007bff;
    font-weight: 500;
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.article-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expert-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6c757d;
}

.stat-item i {
    font-size: 10px;
    opacity: 0.7;
}

.expert-arrow {
    color: #007bff;
    opacity: 0.6;
    transition: all 0.2s ease;
    font-size: 14px;
    order: 2;          /* EKLE: Arrow en sağda */
}

.hub-expert-card:hover .expert-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Hub Modal Footer */
.hub-modal-footer {
    padding: 20px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.hub-view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.hub-view-all-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hub-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .hub-modal-header {
        padding: 16px 20px;
    }
    
    .hub-title {
        font-size: 16px;
    }
    
    .hub-subtitle {
        font-size: 13px;
    }
    
    .hub-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
    
    .stat-card {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .hub-experts {
        padding: 16px;
        max-height: 350px;
    }
    
    .hub-expert-card {
        padding: 12px;
        gap: 10px;
    }
    
    .expert-avatar {
        width: 40px;
        height: 40px;
    }
    
    .default-avatar {
        font-size: 16px;
    }
    
    .expert-name {
        font-size: 13px;
    }
    
    .expert-title {
        font-size: 11px;
    }
    
    .article-title {
        font-size: 12px;
    }
    
    .article-summary {
        font-size: 11px;
    }
    
    .expert-stats {
        gap: 8px;
    }
    
    .stat-item {
        font-size: 10px;
    }
    
    .hub-modal-footer {
        padding: 16px 20px;
    }
    
    .hub-view-all-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hub-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .hub-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-card {
        padding: 10px 6px;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .hub-experts {
        padding: 12px;
        max-height: calc(100vh - 200px);
    }
    
    .experts-title {
        font-size: 15px;
    }
    
    .hub-expert-card {
        padding: 10px;
        gap: 8px;
    }
    
    .expert-avatar {
        width: 36px;
        height: 36px;
    }
    
    .default-avatar {
        font-size: 14px;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
    .hub-modal,
    .hub-modal-content,
    .hub-expert-card,
    .hub-view-all-btn,
    .modal-preparation-loading {
        transition: none;
        animation: none;
    }
    
    .spinner {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hub-modal-backdrop {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .hub-expert-card {
        border-width: 2px;
    }
    
    .hub-expert-card:hover {
        border-width: 2px;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .hub-modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .hub-experts {
        background: #2d3748;
    }
    
    .hub-expert-card {
        background: #4a5568;
        border-color: #718096;
    }
    
    .hub-expert-card:hover {
        background: #2b6cb0;
    }
    
    .stat-card {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .stat-card:hover {
        background: #718096;
    }
    
    .hub-modal-footer {
        background: #4a5568;
        border-color: #718096;
    }
    
    .expert-name,
    .article-title {
        color: #e2e8f0;
    }
    
    .article-summary,
    .stat-item {
        color: #a0aec0;
    }
}

.article-thumbnail {
    width: 100px;      /* 60px → 100px */
    height: auto;      /* 60px → 75px */
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    order: -1;         /* EKLE: Görseli en başa taşır */
    /* margin-left: 8px; ← Bu satırı tamamen silin */
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .article-thumbnail {
        width: 80px;   /* 50px → 80px */
        height: 60px;  /* 50px → 60px */
    }
    
    .expert-avatar {
        width: 32px;   /* EKLE */
        height: 32px;  /* EKLE */
    }
    
    .hub-expert-card {
        gap: 12px;     /* EKLE */
    }
}

/* Hub Modal Final Düzeltmeleri - Mevcut CSS'te bu kısımları değiştirin */

/* 1. HUB SUBTITLE BADGE DÜZELTMESİ - Mevcut .hub-subtitle kuralını bulun ve değiştirin */
.hub-subtitle {
    font-size: 13px;                    /* 14px → 13px */
    opacity: 1;                         /* 0.9 → 1 (daha net okunabilir) */
    margin: 0;
    background: rgba(255, 255, 255, 0.9); /* 0.2 → 0.9 (daha opak) */
    color: #1a73e8;                     /* Mavi renk eklendi */
    padding: 6px 14px;                  /* 4px 12px → 6px 14px */
    border-radius: 20px;                /* 16px → 20px */
    display: inline-block;
    font-weight: 600;                   /* 500 → 600 */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Border daha net */
    text-shadow: none;                  /* Text shadow kaldır */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Hafif gölge ekle */
}

/* 2. HUB EXPERTS PADDING DÜZELTMESİ - Mevcut .hub-experts kuralını bulun ve değiştirin */
.hub-experts {
    padding: 24px 24px 40px 24px;       /* Alt padding 32px → 40px */
    max-height: 400px;
    overflow-y: auto;
}

/* 3. MODAL CONTENT DÜZELTMESİ - Mevcut .hub-modal-content kuralını bulun ve değiştirin */
.hub-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 16px;               /* 8px → 16px (daha fazla alt boşluk) */
}

/* 4. EXPERTS LIST SON ELEMAN DÜZELTMESİ - Mevcut kuralı bulun ve değiştirin */
.experts-list .hub-expert-card:last-child {
    margin-bottom: 16px;                /* 8px → 16px (daha fazla margin) */
}

/* 5. HUB MODAL FOOTER DÜZELTMESİ - Mevcut .hub-modal-footer kuralını bulun ve değiştirin */
.hub-modal-footer {
    padding: 24px 24px 28px 24px;       /* Alt padding artırıldı */
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;                    /* Üst margin ekle */
}

/* 6. MOBİL RESPONSIVE DÜZELTMELERİ */
@media (max-width: 768px) {
    .hub-experts {
        padding: 16px 16px 32px 16px;   /* Alt padding artırıldı */
    }
    
    .hub-modal-footer {
        padding: 20px 20px 24px 20px;   /* Alt padding artırıldı */
    }
    
    .hub-subtitle {
        padding: 4px 12px;              /* Mobilde daha küçük */
        font-size: 12px;
        font-weight: 600;
    }
    
    .hub-modal-content {
        padding-bottom: 12px;           /* Mobilde daha az */
    }
    
    .experts-list .hub-expert-card:last-child {
        margin-bottom: 12px;            /* Mobilde daha az */
    }
}

@media (max-width: 480px) {
    .hub-experts {
        padding: 12px 12px 28px 12px;   /* Alt padding artırıldı */
    }
    
    .hub-modal-footer {
        padding: 16px 16px 20px 16px;   /* Alt padding artırıldı */
    }
    
    .hub-modal-content {
        padding-bottom: 8px;
    }
    
    .experts-list .hub-expert-card:last-child {
        margin-bottom: 8px;
    }
    
    .hub-subtitle {
        padding: 3px 10px;
        font-size: 11px;
        font-weight: 600;
    }
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    body.modal-open {
        height: 100vh;
        touch-action: none;
        -webkit-overflow-scrolling: none;
    }
}

.hub-modal-backdrop {
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

/* Expert Name Badge CSS - destinasyon-chat.css dosyasına eklenecek */

/* Chat Header Expert Name Badge */
.expert-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.2);
    color: black;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

/* Message Header Expert Name Badge */
.message-header .expert-name {
    font-size: 12px;
    font-weight: 600;
    color: black;
    background: #007bff;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid #0056b3;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

/* Hover effect for message expert name */
.message-header .expert-name:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
    transition: all 0.2s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .expert-name {
        font-size: 13px;
        padding: 3px 8px;
    }
    
    .message-header .expert-name {
        font-size: 11px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .expert-name {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .message-header .expert-name {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* Chatbot HTML formatları için CSS */
.message-text strong, .message-text b {
    font-weight: 600;
    color: #2c3e50;
}

.message-text em, .message-text i {
    font-style: italic;
    color: #7f8c8d;
}

.message-text ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-text li {
    margin: 4px 0;
}

.message-text blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 3px solid #3498db;
    background: #f8f9fa;
    font-style: italic;
}

.message-text h4 {
    margin: 10px 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.message-text hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #ecf0f1;
}

/* Weather Modal Styles */
.weather-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.weather-modal.show {
    opacity: 1;
    visibility: visible;
}

.weather-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.weather-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 20px;
    min-width: 320px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.weather-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.weather-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.weather-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: #7f8c8d;
}

.weather-current {
    text-align: center;
    margin-bottom: 25px;
}

.current-temp {
    font-size: 48px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.current-desc {
    color: #7f8c8d;
    font-size: 16px;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weather-day {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 10px;
}

.weather-date {
    font-weight: 600;
    color: #2c3e50;
}

.weather-desc {
    color: #7f8c8d;
    font-size: 14px;
}

.weather-temps {
    text-align: center;
}

.temp-max {
    font-weight: bold;
    margin-right: 8px;
}

.temp-min {
    color: #95a5a6;
}

.weather-rain {
    text-align: right;
    color: #3498db;
    font-size: 12px;
}

/* Harita Buton Stilleri */
.maps-button {
    display: inline-block;
    margin: 5px 8px 5px 0;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.maps-button.google-maps {
    background: #4285f4;
    color: white;
}

.maps-button.google-maps:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    text-decoration: none;
    color: white;
}

.maps-button.apple-maps {
    background: #000;
    color: white;
}

.maps-button.apple-maps:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .maps-button {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
}