/**
 * Dash Conversational UI Styles
 * Makes clarifying questions and zero results look beautiful
 */

/* ═══════════════════════════════════════════════
   CLARIFICATION INTERFACE
   ═══════════════════════════════════════════════ */

.dash-clarification {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.dash-clarify-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.dash-clarify-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.dash-clarify-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #2c3e50;
}

.dash-clarify-message strong {
    color: #e74c3c;
    font-weight: 600;
}

/* Quick Actions (Buttons) */
.dash-quick-actions {
    margin-bottom: 20px;
}

.dash-quick-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-quick-action-btn {
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-quick-action-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.dash-quick-action-btn:active {
    transform: translateY(0);
}

/* Suggested Searches (Links) */
.dash-suggestions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.dash-suggest-label {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 10px;
}

.dash-suggest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-suggest-list li {
    margin-bottom: 8px;
}

.dash-suggestion-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.dash-suggestion-link:before {
    content: "→";
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease, margin 0.2s ease;
}

.dash-suggestion-link:hover {
    color: #2980b9;
}

.dash-suggestion-link:hover:before {
    opacity: 1;
    margin-right: 6px;
}

/* ═══════════════════════════════════════════════
   ZERO RESULTS INTERFACE
   ═══════════════════════════════════════════════ */

.dash-zero-results {
    padding: 30px 20px;
    text-align: center;
}

.dash-zero-message {
    margin-bottom: 25px;
}

.dash-zero-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.dash-zero-message p {
    font-size: 16px;
    color: #2c3e50;
    margin: 8px 0;
}

.dash-zero-message em {
    color: #e74c3c;
    font-style: normal;
    font-weight: 600;
}

.dash-zero-context {
    font-size: 14px !important;
    color: #7f8c8d !important;
}

.dash-zero-suggestions,
.dash-alternatives {
    margin: 25px 0;
}

.dash-zero-label,
.dash-alt-label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 12px;
}

.dash-alt-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-alt-btn {
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    color: #34495e;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.dash-alt-btn:hover {
    background: #bdc3c7;
    border-color: #95a5a6;
    color: #2c3e50;
}

/* ═══════════════════════════════════════════════
   CONTEXT HEADER (Page awareness indicator)
   ═══════════════════════════════════════════════ */

.dash-context-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-context-header:before {
    content: "📍";
    font-size: 18px;
}

/* ═══════════════════════════════════════════════
   FEATURE BROWSER
   ═══════════════════════════════════════════════ */

.dash-feature-browser {
    padding: 20px;
}

.dash-browser-header {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.dash-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.dash-feature-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.dash-feature-card:hover {
    border-color: #3498db;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

.dash-feature-icon {
    font-size: 32px;
    line-height: 1;
}

.dash-feature-label {
    font-size: 13px;
    font-weight: 500;
    color: #34495e;
}

/* ═══════════════════════════════════════════════
   INTENSIFIED RESULTS (Context-matched results)
   ═══════════════════════════════════════════════ */

.faq-result-item[data-context-match="true"] {
    border-left: 4px solid #3498db;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.05), transparent);
}

.faq-result-item[data-context-match="true"]:before {
    content: "📍 ";
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 16px;
}

.faq-result-item[data-context-match="true"] .faq-question {
    padding-left: 28px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 600px) {
    .dash-quick-buttons {
        flex-direction: column;
    }
    
    .dash-quick-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dash-feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .dash-feature-card {
        padding: 15px 10px;
    }
    
    .dash-clarify-message {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-clarification,
.dash-zero-results,
.dash-context-header {
    animation: slideIn 0.3s ease;
}

.dash-quick-action-btn,
.dash-feature-card {
    animation: slideIn 0.3s ease;
    animation-fill-mode: both;
}

.dash-quick-action-btn:nth-child(1) { animation-delay: 0.05s; }
.dash-quick-action-btn:nth-child(2) { animation-delay: 0.1s; }
.dash-quick-action-btn:nth-child(3) { animation-delay: 0.15s; }
.dash-quick-action-btn:nth-child(4) { animation-delay: 0.2s; }

.dash-feature-card:nth-child(1) { animation-delay: 0.05s; }
.dash-feature-card:nth-child(2) { animation-delay: 0.1s; }
.dash-feature-card:nth-child(3) { animation-delay: 0.15s; }
.dash-feature-card:nth-child(4) { animation-delay: 0.2s; }
.dash-feature-card:nth-child(5) { animation-delay: 0.25s; }
.dash-feature-card:nth-child(6) { animation-delay: 0.3s; }
.dash-feature-card:nth-child(7) { animation-delay: 0.35s; }
.dash-feature-card:nth-child(8) { animation-delay: 0.4s; }
