/* TripPlugin.com Global Styles - 2025 */
/* Enhanced with Mobile Touch Support + Sidebar Navigation */

:root {
  /* Colors - Light Theme */
  --primary-color: #ff6b35;
  --primary-hover: #e55a2b;
  --primary-light: #fff3ed;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --card-bg: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  /* Status Colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Force emoji to use color emoji fonts to avoid garbled glyphs */
  --emoji-font: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol";

  /* Sidebar */
  --sidebar-width: 280px;
}

[data-theme="dark"] {
  --primary-color: #ff6b35;
  --primary-hover: #ff8659;
  --primary-light: rgba(255, 107, 53, 0.15);
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f26;
  --card-bg: #1a1f26;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --border-color: #374151;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fix iOS tap highlight */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100vh;
  /* Prevent body scroll when sidebar is open */
  overflow-x: hidden;
}

body.sidebar-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  /* Use dynamic viewport height for mobile */
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  overscroll-behavior: contain;
  /* Prevent scroll chaining */
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
}

.sidebar-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  line-height: 1;
  /* Better touch target */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.sidebar-close:hover,
.sidebar-close:active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.sidebar-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 0 20px 12px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  /* Increased padding for touch */
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s ease;
  /* Better touch target */
  min-height: 48px;
}

.sidebar-nav-item:hover,
.sidebar-nav-item:active {
  background: var(--primary-light);
  color: var(--primary-color);
}

.sidebar-nav-item.active {
  background: var(--primary-light);
  color: var(--primary-color);
  border-right: 3px solid var(--primary-color);
}

.sidebar-nav-item .icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  font-family: var(--emoji-font), var(--font-family);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  /* Enable touch events on overlay */
  touch-action: none;
}

.sidebar-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.2s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Better touch target */
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:active {
  background: var(--bg-secondary);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.nav-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  /* Better touch target */
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: var(--emoji-font), var(--font-family);
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.icon-btn:hover,
.icon-btn:active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

[data-theme="light"] .icon-dark {
  display: none;
}

[data-theme="dark"] .icon-light {
  display: none;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Better touch target */
  min-height: 48px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Better touch target */
  min-height: 44px;
  touch-action: manipulation;
}

.btn-secondary:hover,
.btn-secondary:active {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 40px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ===== SHARE BUTTONS ===== */
.share-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  /* Better touch target */
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: var(--emoji-font), var(--font-family);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.share-btn:hover,
.share-btn:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn.twitter:hover,
.share-btn.twitter:active {
  background: #1da1f2;
  border-color: #1da1f2;
  color: white;
}

.share-btn.facebook:hover,
.share-btn.facebook:active {
  background: #1877f2;
  border-color: #1877f2;
  color: white;
}

.share-btn.whatsapp:hover,
.share-btn.whatsapp:active {
  background: #25d366;
  border-color: #25d366;
  color: white;
}

.share-btn.linkedin:hover,
.share-btn.linkedin:active {
  background: #0a66c2;
  border-color: #0a66c2;
  color: white;
}

.share-btn.copy:hover,
.share-btn.copy:active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.share-btn.image:hover,
.share-btn.image:active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
}

/* Emoji-heavy UI elements */
.tool-icon,
.status-icon,
.country-flag,
.flags span,
.tag,
.share-label .icon {
  font-family: var(--emoji-font), var(--font-family);
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Clickable cards for mobile */
.card-clickable {
  cursor: pointer;
  touch-action: manipulation;
}

.card-clickable:active {
  transform: scale(0.98);
}

/* ===== FORM ELEMENTS ===== */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  /* Larger padding for touch */
  font-size: 16px;
  /* Prevents zoom on iOS */
  font-family: var(--font-family);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all 0.2s ease;
  /* Better touch experience */
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ===== TOM-SELECT OVERRIDE ===== */
.ts-wrapper {
  width: 100%;
}

.ts-control {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px !important;
  /* Larger padding */
  color: var(--text-primary) !important;
  font-size: 16px !important;
  min-height: 52px !important;
  /* Larger touch target */
  cursor: pointer !important;
}

.ts-control:focus,
.ts-wrapper.focus .ts-control {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1) !important;
}

.ts-dropdown {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  margin-top: 4px !important;
  z-index: 1000 !important;
}

.ts-dropdown-content {
  max-height: 300px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.ts-dropdown .option {
  padding: 14px 16px !important;
  /* Larger touch targets */
  color: var(--text-primary) !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option:active,
.ts-dropdown .active {
  background: var(--bg-secondary) !important;
  color: var(--primary-color) !important;
}

/* ===== QUICK ACTION CARDS ===== */
.quick-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  /* Better touch support */
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  min-height: 80px;
}

.quick-card:hover,
.quick-card:active {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.quick-card:active {
  transform: scale(0.98);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 48px 20px;
  text-align: center;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.site-footer p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  /* Better touch target */
  padding: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a:hover,
.footer-links a:active {
  color: var(--primary-color);
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--text-primary);
}

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

.text-success {
  color: var(--success-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-danger {
  color: var(--danger-color);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

/* ===== LOADING STATE ===== */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 107, 53, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  /* Full width on mobile */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
  max-width: 400px;
  margin-left: auto;
  pointer-events: auto;
}

.toast.success {
  border-left: 4px solid var(--success-color);
}

.toast.error {
  border-left: 4px solid var(--danger-color);
}

.toast.info {
  border-left: 4px solid var(--info-color);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SHARE IMAGE MODAL ===== */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.share-modal.visible {
  opacity: 1;
  visibility: visible;
}

.share-modal-content {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.share-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-secondary);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.share-preview img,
.share-preview canvas {
  width: 100%;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  .nav-container {
    padding: 12px 16px;
  }

  .btn-primary {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
  }

  .card {
    padding: var(--space-sm);
  }

  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Full-width sidebar on mobile */
  .sidebar {
    width: 100%;
    max-width: 320px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: var(--bg-secondary);
}

.product-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

.product-meta .rating {
  font-size: 13px;
  color: var(--text-secondary);
}

.product-card .features {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  flex: 1;
}

.product-card .features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
}

.product-card .features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb {
  padding: 16px 0;
  margin-bottom: 24px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.breadcrumb a:hover {
  color: var(--primary-color);
  background: var(--primary-light);
}

.breadcrumb li:last-child span {
  color: var(--text-primary);
  font-weight: 500;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 12px 0;
    margin-bottom: 16px;
  }

  .breadcrumb ol {
    font-size: 13px;
  }
}

/* ===== SITE SEARCH ===== */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

#siteSearch {
  width: 100%;
  padding: 14px 48px 14px 16px;
  font-size: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

#siteSearch:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#siteSearch::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-secondary);
  pointer-events: none;
}

#searchResults {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-secondary);
}

.search-result-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.search-category {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-no-results {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
  }

  #searchResults {
    max-height: 300px;
  }
}