/**
 * AI Travel Pros — Tools Shared Styles
 *
 * Supplemental styles for all tool pages (concierge, advisor, simulator, etc.)
 * Works alongside Tailwind CDN classes.
 */

/* ── Tool page hero gradients ── */
.tool-hero-concierge { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.tool-hero-advisor   { background: linear-gradient(135deg, #059669, #0d9488); }
.tool-hero-simulator { background: linear-gradient(135deg, #d97706, #ea580c); }
.tool-hero-packing   { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.tool-hero-policy    { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tool-hero-disruption{ background: linear-gradient(135deg, #dc2626, #ea580c); }
.tool-hero-budget    { background: linear-gradient(135deg, #059669, #14b8a6); }
.tool-hero-currency  { background: linear-gradient(135deg, #2563eb, #4f46e5); }

/* ── Chat bubbles ── */
.chat-bubble-user {
    background-color: #4f46e5;
    color: white;
    border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
}
.chat-bubble-assistant {
    background-color: #f3f4f6;
    color: #1f2937;
    border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
}

/* ── Typing indicator ── */
.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9ca3af;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 150ms; }
.typing-dot:nth-child(3) { animation-delay: 300ms; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* ── Suggestion chips ── */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ── Result cards ── */
.result-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.result-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── Impact badges ── */
.badge-minor   { background-color: #d1fae5; color: #065f46; }
.badge-moderate{ background-color: #fef3c7; color: #92400e; }
.badge-major   { background-color: #fee2e2; color: #991b1b; }

/* ── Packing checklist ── */
.packing-item-checked {
    text-decoration: line-through;
    opacity: 0.5;
}

/* ── Concierge sidebar ── */
.convo-list-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.convo-list-item:hover { background-color: #f3f4f6; }
.convo-list-item.active { background-color: #eef2ff; color: #4f46e5; font-weight: 600; }

/* ── Floating widget adjustments ── */
.concierge-widget-open {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ── Currency converter ── */
.swap-btn {
    transition: transform 0.2s;
}
.swap-btn:hover {
    transform: rotate(180deg);
}

/* ── Markdown content styling inside tools ── */
.tool-markdown h1 { font-size: 1.25rem; font-weight: 700; margin: 0.75rem 0 0.5rem; }
.tool-markdown h2 { font-size: 1.125rem; font-weight: 600; margin: 0.75rem 0 0.375rem; }
.tool-markdown h3 { font-size: 1rem; font-weight: 600; margin: 0.5rem 0 0.25rem; }
.tool-markdown p  { margin: 0.375rem 0; }
.tool-markdown ul { list-style: disc; padding-left: 1.5rem; margin: 0.375rem 0; }
.tool-markdown ol { list-style: decimal; padding-left: 1.5rem; margin: 0.375rem 0; }
.tool-markdown li { margin: 0.125rem 0; }
.tool-markdown code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}
.tool-markdown pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 0.75rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}
.tool-markdown a {
    color: #4f46e5;
    text-decoration: underline;
}
.tool-markdown a:hover {
    color: #4338ca;
}
.tool-markdown blockquote {
    border-left: 3px solid #d1d5db;
    padding-left: 0.75rem;
    color: #6b7280;
    margin: 0.5rem 0;
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
    .concierge-widget-window {
        width: calc(100vw - 2rem) !important;
        height: calc(100vh - 8rem) !important;
        right: 1rem;
        bottom: 5rem;
    }
}

/* ── Print: hide interactive elements ── */
@media print {
    .concierge-widget,
    button,
    input,
    select,
    textarea { display: none !important; }
}
