/**
 * Structured Response Styles
 * Based on Seats.aero UI patterns
 */

/* Main structured response container */
.structured-response {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Section container */
.response-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Section header with icon */
.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.section-title {
    flex: 1;
}

/* Section content */
.section-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cbd5e1;
}

/* Specific section types */
.section-best-deal {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 8px;
}

.section-best-deal .section-header {
    color: #fbbf24;
}

.section-bottom-line {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    padding: 16px;
    border-radius: 8px;
}

.section-bottom-line .section-header {
    color: #34d399;
}

.section-how-to-book {
    background: rgba(59, 130, 246, 0.08);
    padding: 16px;
    border-radius: 8px;
}

.section-points-vs-cash {
    background: rgba(139, 92, 246, 0.08);
    padding: 16px;
    border-radius: 8px;
}

/* Status badges (thinking, searching) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    margin-bottom: 12px;
}

.status-badge.status-thinking {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.status-badge.status-searching {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-icon {
    font-size: 1rem;
    line-height: 1;
}

.badge-text {
    line-height: 1;
}

/* Enhanced markdown styles within sections */
.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4 {
    color: #f1f5f9;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.section-content h1 { font-size: 1.5rem; }
.section-content h2 { font-size: 1.25rem; }
.section-content h3 { font-size: 1.125rem; }
.section-content h4 { font-size: 1rem; }

.section-content p {
    margin: 8px 0;
}

.section-content ul,
.section-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.section-content li {
    margin: 4px 0;
}

.section-content strong {
    color: #f1f5f9;
    font-weight: 600;
}

.section-content code {
    background: rgba(100, 116, 139, 0.2);
    color: #e0e7ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.section-content pre {
    background: rgba(15, 23, 42, 0.8);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 12px 0;
}

.section-content pre code {
    background: none;
    padding: 0;
}

.section-content a {
    color: #60a5fa;
    text-decoration: none;
}

.section-content a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.section-content blockquote {
    border-left: 3px solid #475569;
    padding-left: 16px;
    margin: 12px 0;
    color: #94a3b8;
    font-style: italic;
}

/* Table styles (enhanced from existing) */
.section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.875rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.section-content thead {
    background: rgba(51, 65, 85, 0.6);
}

.section-content th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #f1f5f9;
    border-bottom: 2px solid #475569;
}

.section-content td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
}

.section-content tbody tr:hover {
    background: rgba(51, 65, 85, 0.3);
}

.section-content tbody tr:last-child td {
    border-bottom: none;
}

/* Metadata row (below tables) */
.table-metadata {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.5;
}

.table-metadata ul {
    list-style: none;
    padding: 0;
    margin: 4px 0;
}

.table-metadata li {
    margin: 2px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header {
        font-size: 1.25rem;
    }
    
    .section-icon {
        font-size: 1.25rem;
    }
    
    .section-content {
        font-size: 0.8125rem;
    }
    
    .section-best-deal,
    .section-bottom-line,
    .section-how-to-book,
    .section-points-vs-cash {
        padding: 12px;
    }
    
    .section-content table {
        font-size: 0.75rem;
    }
    
    .section-content th,
    .section-content td {
        padding: 8px 12px;
    }
}
