/* ============================================
   SceneLink AI Concierge — Premium Design v3
   ============================================ */

/* FAB Button */
.sl-concierge-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #B8960C 100%);
    border: none;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45), 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sl-concierge-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.6), 0 4px 12px rgba(0,0,0,0.4);
}
.sl-concierge-fab svg {
    width: 28px;
    height: 28px;
    fill: #0a0a0a;
    transition: transform 0.3s ease;
}
.sl-concierge-fab.sl-fab-open svg {
    transform: rotate(90deg) scale(0.9);
}

/* Pulse animation on FAB */
.sl-concierge-fab::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    animation: sl-pulse 2.5s ease-in-out infinite;
    z-index: -1;
}
.sl-concierge-fab.sl-fab-open::before {
    animation: none;
}

@keyframes sl-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.35); opacity: 0; }
}

/* Panel */
.sl-concierge-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 400px;
    max-height: 600px;
    background: #111111;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,55,0.15);
    display: none;
    flex-direction: column;
    z-index: 99998;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.sl-concierge-panel.sl-panel-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header */
.sl-concierge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    flex-shrink: 0;
}
.sl-concierge-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sl-concierge-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sl-concierge-avatar svg {
    width: 22px;
    height: 22px;
    fill: #0a0a0a;
}
.sl-concierge-header-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}
.sl-concierge-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.sl-concierge-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: sl-glow 2s ease-in-out infinite;
}
@keyframes sl-glow {
    0%, 100% { box-shadow: 0 0 3px rgba(74,222,128,0.5); }
    50% { box-shadow: 0 0 8px rgba(74,222,128,0.9); }
}
.sl-concierge-status span {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}
.sl-concierge-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sl-concierge-close:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}
.sl-concierge-close svg {
    width: 16px;
    height: 16px;
    fill: #999;
}

/* Messages Area */
.sl-concierge-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 280px;
    max-height: 380px;
    scroll-behavior: smooth;
}
.sl-concierge-messages::-webkit-scrollbar {
    width: 4px;
}
.sl-concierge-messages::-webkit-scrollbar-track {
    background: transparent;
}
.sl-concierge-messages::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.3);
    border-radius: 4px;
}

/* Context Badge */
.sl-ctx-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    font-size: 11px;
    color: #D4AF37;
    font-weight: 600;
    margin-bottom: 6px;
    width: fit-content;
}

/* Message Bubbles */
.sl-msg {
    max-width: 92%;
    animation: sl-fadeIn 0.3s ease;
}
@keyframes sl-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.sl-msg-bot {
    align-self: flex-start;
}
.sl-msg-user {
    align-self: flex-end;
}
.sl-msg-bot .sl-msg-bubble {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 14px 16px;
    border-radius: 4px 18px 18px 18px;
    font-size: 13.5px;
    line-height: 1.55;
    border: 1px solid rgba(255,255,255,0.06);
}
.sl-msg-user .sl-msg-bubble {
    background: linear-gradient(135deg, #D4AF37 0%, #c9a020 100%);
    color: #0a0a0a;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 500;
}
.sl-msg-bot .sl-msg-bubble strong {
    color: #D4AF37;
}

/* Quick Actions */
.sl-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.sl-quick-btn {
    padding: 8px 14px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 20px;
    color: #D4AF37;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.sl-quick-btn:hover {
    background: rgba(212,175,55,0.2);
    border-color: rgba(212,175,55,0.5);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212,175,55,0.15);
}

/* Venue Cards */
.sl-venue-card {
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
}
.sl-venue-card:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.sl-venue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.sl-venue-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
}
.sl-venue-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(212,175,55,0.15);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #D4AF37;
    font-weight: 700;
    flex-shrink: 0;
}
.sl-venue-rating .star {
    color: #D4AF37;
}
.sl-venue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}
.sl-venue-meta span {
    font-size: 12px;
    color: #999;
}
.sl-venue-meta .sep {
    color: #444;
}
.sl-venue-desc {
    font-size: 12.5px;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 10px;
}
.sl-venue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sl-venue-tag {
    padding: 3px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
}
.sl-venue-tag.highlight {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.25);
    color: #D4AF37;
}
.sl-venue-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sl-venue-action-btn {
    flex: 1;
    padding: 8px 0;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 10px;
    color: #D4AF37;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.sl-venue-action-btn:hover {
    background: rgba(212,175,55,0.18);
    border-color: rgba(212,175,55,0.4);
}
.sl-venue-action-btn.primary {
    background: linear-gradient(135deg, #D4AF37, #c9a020);
    color: #0a0a0a;
    border: none;
}
.sl-venue-action-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

/* Typing Indicator */
.sl-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #1a1a1a;
    border-radius: 4px 18px 18px 18px;
    border: 1px solid rgba(255,255,255,0.06);
    width: fit-content;
}
.sl-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D4AF37;
    animation: sl-typeBounce 1.4s ease-in-out infinite;
}
.sl-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.sl-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes sl-typeBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input Area */
.sl-concierge-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: #0d0d0d;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.sl-concierge-input input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 12px 18px;
    color: #e0e0e0;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}
.sl-concierge-input input::placeholder {
    color: #666;
}
.sl-concierge-input input:focus {
    border-color: rgba(212,175,55,0.4);
}
.sl-concierge-input button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #c9a020);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.sl-concierge-input button:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(212,175,55,0.35);
}
.sl-concierge-input button svg {
    width: 18px;
    height: 18px;
    fill: #0a0a0a;
}

/* Category Headers in responses */
.sl-category-header {
    font-size: 13px;
    font-weight: 700;
    color: #D4AF37;
    margin: 8px 0 4px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

/* Tip text */
.sl-tip {
    font-size: 11px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

/* Mobile */
@media (max-width: 480px) {
    .sl-concierge-panel {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 90px;
        max-height: 75vh;
        border-radius: 16px;
    }
    .sl-concierge-fab {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
}