/** 
 * Search Page Styles
 * Dual-mode: Traditional + AI conversational
 */

/* ==================== SEARCH HERO ==================== */

.search-hero {
  background: linear-gradient(135deg, rgba(96, 56, 251, 0.15) 0%, rgba(0, 255, 64, 0.05) 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.search-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-hero-content > p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Mode Toggle */
.mode-toggle {
  display: inline-flex;
  gap: 0.5rem;
  background: var(--glass);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: var(--text-secondary);
}

.mode-btn.active {
  background: var(--violet);
  color: white;
}

.mode-btn svg {
  flex-shrink: 0;
}

/* ==================== TRADITIONAL SEARCH ==================== */

.search-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .search-layout {
    grid-template-columns: 1fr;
  }
}

/* Filters Sidebar */
.filters-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.filter-section {
  margin-bottom: 1.5rem;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.filter-option:hover {
  background: rgba(96, 56, 251, 0.1);
}

.filter-option input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.filter-option input:checked + .checkmark {
  background: var(--violet);
  border-color: var(--violet);
}

.filter-option input:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-option .label {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.filter-option .count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-navy);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
}

.filter-option input:checked ~ .label {
  color: var(--text-primary);
  font-weight: 500;
}

/* Tag Filters */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-btn {
  padding: 0.375rem 0.75rem;
  background: var(--bg-navy);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-btn:hover {
  border-color: var(--violet);
  color: var(--text-secondary);
}

.tag-btn.active {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Results Area */
.results-area {
  min-height: 600px;
}

/* Search Bar */
.search-bar-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.search-bar {
  flex: 1;
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  transition: border-color 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--violet);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-clear:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Sort Dropdown */
.sort-dropdown select {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 2.5rem 1rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' fill='none' stroke='white' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.sort-dropdown select:focus {
  outline: none;
  border-color: var(--violet);
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: rgba(96, 56, 251, 0.15);
  border: 1px solid var(--violet);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.active-filter button {
  background: none;
  border: none;
  color: var(--violet-light);
  cursor: pointer;
  padding: 0.125rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.active-filter button:hover {
  color: var(--text-primary);
}

/* Results Header */
.results-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.results-header span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Blog Card */
.blog-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: var(--shadow-glow);
}

.card-image-link {
  display: block;
  text-decoration: none;
}

.card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.25rem;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(96, 56, 251, 0.2);
  color: var(--violet-light);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.difficulty-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.difficulty-beginner {
  background: rgba(0, 255, 64, 0.15);
  color: var(--green);
}

.difficulty-intermediate {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.difficulty-advanced {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.blog-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card h3 a:hover {
  color: var(--violet-light);
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.card-tags .tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg-navy);
  border-radius: 4px;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-btn {
  padding: 0.5rem 0.875rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(.active) {
  border-color: var(--violet);
  color: var(--text-primary);
}

.page-btn.active {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
}

.page-ellipsis {
  color: var(--text-muted);
  padding: 0 0.5rem;
}

/* ==================== AI SEARCH MODE ==================== */

.ai-search-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  height: calc(100vh - 250px);
  min-height: 600px;
}

@media (max-width: 1024px) {
  .ai-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
  }
}

/* Chat Panel */
.chat-panel {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(96, 56, 251, 0.1);
}

.gavin-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gavin-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* Speech-reactive glow ring */
.gavin-avatar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 64, 0.4) 0%, rgba(0, 255, 64, 0) 70%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.1s ease;
}

/* Idle pulse animation */
@keyframes idlePulse {
  0%, 100% { 
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.gavin-avatar.idle::before {
  animation: idlePulse 3s ease-in-out infinite;
}

/* Speech rhythm - fast syllable-like pulses */
@keyframes speechRhythm {
  0% { 
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.95);
  }
  25% { 
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.15);
  }
  50% { 
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.05);
  }
  75% { 
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% { 
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
}

.gavin-avatar.speaking::before {
  animation: speechRhythm 0.4s ease-in-out infinite;
}

/* Analog-style variable timing for natural speech feel */
.gavin-avatar.speaking-slow::before {
  animation: speechRhythm 0.6s ease-in-out infinite;
}

.gavin-avatar.speaking-fast::before {
  animation: speechRhythm 0.25s ease-in-out infinite;
}

/* Secondary outer glow for emphasis */
.gavin-avatar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 64, 0.3);
  opacity: 0;
  z-index: 0;
}

.gavin-avatar.speaking::after {
  opacity: 1;
  animation: speechRhythm 0.4s ease-in-out infinite 0.1s;
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  z-index: 3;
}

.gavin-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gavin-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  gap: 0.75rem;
  animation: fadeInUp 0.3s ease;
}

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

.gavin-message {
  align-items: flex-start;
}

.user-message {
  flex-direction: row-reverse;
  align-items: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  background: var(--violet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.message-avatar.user {
  background: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.message-content {
  background: var(--bg-navy);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  max-width: 85%;
}

.user-message .message-content {
  background: rgba(96, 56, 251, 0.2);
  border-color: var(--violet);
}

.message-content p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.message-content p:last-child {
  margin-bottom: 0;
}

/* Quick Prompts */
.quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quick-prompt {
  padding: 0.625rem 1rem;
  background: rgba(96, 56, 251, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-prompt:hover {
  background: rgba(96, 56, 251, 0.2);
  border-color: var(--violet);
  color: var(--text-primary);
}

/* Related Questions */
.related-questions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.related-questions p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Chat Input */
.chat-input-area {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.chat-input-container {
  position: relative;
  display: flex;
  gap: 0.75rem;
}

.chat-input-container textarea {
  flex: 1;
  background: var(--bg-navy);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  resize: none;
  min-height: 52px;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input-container textarea:focus {
  border-color: var(--violet);
}

.chat-input-container textarea::placeholder {
  color: var(--text-muted);
}

.send-btn {
  width: 44px;
  height: 44px;
  background: var(--violet);
  border: none;
  border-radius: 12px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--violet-light);
  transform: scale(1.05);
}

.send-btn:active {
  transform: scale(0.95);
}

.chat-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* Typing Indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.25rem 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--violet);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

/* ==================== AI RESULTS PANEL ==================== */

.ai-results-panel {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  overflow-y: auto;
}

.ai-results-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
}

.ai-results-empty svg {
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.ai-results-empty p {
  font-size: 1rem;
  max-width: 280px;
}

.ai-results-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ai-results-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.explanation {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* AI Result Cards */
.ai-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-result-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease;
}

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

.ai-result-card:hover {
  border-color: var(--violet);
  transform: translateX(4px);
}

.result-number {
  width: 32px;
  height: 32px;
  background: var(--violet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.result-image-link {
  display: block;
  flex-shrink: 0;
}

.result-image {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-content {
  flex: 1;
  min-width: 0;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.result-meta .category-badge {
  font-size: 0.625rem;
}

.result-meta .difficulty-badge {
  font-size: 0.625rem;
}

.result-meta .reading-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.result-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result-content h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.result-content h4 a:hover {
  color: var(--violet-light);
}

.result-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.result-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.result-tags .tag {
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
}

.result-why {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 255, 64, 0.05);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--green-dim);
}

.result-why svg {
  flex-shrink: 0;
}

/* AI Followup */
.ai-followup {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.ai-followup p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.followup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.followup-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.followup-btn:hover {
  border-color: var(--violet);
  color: var(--text-primary);
  background: rgba(96, 56, 251, 0.1);
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 768px) {
  .search-hero-content h1 {
    font-size: 1.75rem;
  }
  
  .mode-toggle {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .mode-btn {
    justify-content: center;
  }
  
  .search-bar-container {
    flex-direction: column;
  }
  
  .sort-dropdown select {
    width: 100%;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-panel {
    min-height: 400px;
  }
  
  .ai-result-card {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .result-number {
    align-self: flex-start;
  }
  
  .result-image {
    width: 100%;
    height: 160px;
  }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar,
.ai-results-panel::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.ai-results-panel::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.ai-results-panel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.ai-results-panel::-webkit-scrollbar-thumb:hover {
  background: var(--violet);
}
