/* ========================================
   ANIMATED SEARCH BAR STYLES
   ======================================== */

/* ========================================
   CONTROL BUTTONS CONTAINER
   ======================================== */

.control-buttons-container {
  position: fixed;
  top: 80px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: all 0.3s ease;
}

/* Graphics Settings Button - Similar to search button */
.graphics-settings-button {
  width: 40px;
  height: 40px;
  background: #FF6B35;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.graphics-settings-button:hover {
  background: #E55A2B;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  transform: scale(1.05);
}

.graphics-settings-button:active {
  background: #D44A1A;
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.2);
  transform: scale(0.95);
}

.graphics-settings-button.expanded {
  background: #E55A2B;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  transform: rotate(45deg);
}

.settings-icon {
  width: 20px;
  height: 20px;
  color: #000000;
  transition: all 0.3s ease;
  stroke-width: 2.5;
}

.graphics-settings-button:hover .settings-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* Graphics Settings Panel - Initially hidden */
.graphics-settings-panel {
  position: absolute;
  top: 0;
  right: 50px;
  width: 140px;
  background: #000000;
  border: 1px solid #ff6b35;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
  opacity: 0;
  transform: translateX(15px) scale(0.9);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1001;
  overflow: hidden;
}

/* Expanded state */
.graphics-settings-panel.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
}

/* Settings Panel Header */
.settings-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #ff6b35;
}

.settings-panel-title {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.settings-panel-close {
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 0;
}

.settings-panel-close:hover {
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
}

.settings-panel-close svg {
  width: 12px;
  height: 12px;
}

/* Quality Buttons Container */
.quality-buttons {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Quality Button */
.quality-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-align: left;
  width: 100%;
  font-family: 'Courier New', monospace;
}

.quality-btn:hover {
  background: rgba(255, 107, 53, 0.1);
  transform: translateX(2px);
}

.quality-btn.active {
  background: rgba(255, 107, 53, 0.2);
  border-left: 2px solid #ff6b35;
}

/* Quality Icon */
.quality-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.quality-icon svg {
  width: 14px;
  height: 14px;
  color: #ff6b35;
  transition: all 0.3s ease;
}

.quality-btn:hover .quality-icon svg {
  color: #ffffff;
  transform: scale(1.1);
}

.quality-btn.active .quality-icon svg {
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.6));
}

/* Quality Info */
.quality-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1px;
}

.quality-name {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.quality-desc {
  color: #ff6b35;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.quality-btn:hover .quality-desc {
  color: #ffffff;
}

.quality-btn.active .quality-desc {
  color: #ffffff;
}

/* Quality Indicator */
.quality-indicator {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: transparent;
  border: 1px solid #ff6b35;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.quality-btn:hover .quality-indicator {
  border-color: #ffffff;
  background: rgba(255, 107, 53, 0.3);
}

.quality-btn.active .quality-indicator {
  background: #ff6b35;
  border-color: #ffffff;
  box-shadow: 0 0 4px rgba(255, 107, 53, 0.6);
}

/* Mobile Responsive for Control Buttons */
@media (max-width: 768px) {
  .control-buttons-container {
    top: 70px;
    right: 10px;
    gap: 12px;
  }
  
  .graphics-settings-button {
    width: 50px;
    height: 50px;
  }
  
  .settings-icon {
    width: 24px;
    height: 24px;
  }
  
  .graphics-settings-panel {
    width: calc(100vw - 20px);
    max-width: 200px;
    right: 60px;
    top: 0;
    transform: translateX(0);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
  }
  
  .settings-panel-header {
    padding: 16px 20px 12px;
  }
  
  .settings-panel-title {
    font-size: 16px;
  }
  
  .settings-panel-close {
    width: 32px;
    height: 32px;
  }
  
  .quality-buttons {
    padding: 0 20px 20px;
    gap: 12px;
  }
  
  .quality-btn {
    padding: 16px 20px;
    border-radius: 10px;
    min-height: 60px;
  }
  
  .quality-icon {
    width: 32px;
    height: 32px;
  }
  
  .quality-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .quality-info {
    gap: 4px;
  }
  
  .quality-name {
    font-size: 16px;
    font-weight: 600;
  }
  
  .quality-desc {
    font-size: 12px;
  }
  
  .quality-indicator {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .control-buttons-container {
    top: 70px;
    right: 10px;
    gap: 10px;
  }
  
  .graphics-settings-button {
    width: 45px;
    height: 45px;
  }
  
  .settings-icon {
    width: 22px;
    height: 22px;
  }
  
  .graphics-settings-panel {
    width: calc(100vw - 16px);
    max-width: 180px;
    right: 55px;
    border-radius: 0;
  }
  
  .settings-panel-header {
    padding: 14px 16px 10px;
  }
  
  .settings-panel-title {
    font-size: 15px;
  }
  
  .settings-panel-close {
    width: 28px;
    height: 28px;
  }
  
  .quality-buttons {
    padding: 0 16px 16px;
    gap: 10px;
  }
  
  .quality-btn {
    padding: 14px 16px;
    border-radius: 8px;
    min-height: 55px;
  }
  
  .quality-icon {
    width: 28px;
    height: 28px;
  }
  
  .quality-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .quality-info {
    gap: 3px;
  }
  
  .quality-name {
    font-size: 15px;
    font-weight: 600;
  }
  
  .quality-desc {
    font-size: 11px;
  }
  
  .quality-indicator {
    width: 10px;
    height: 10px;
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .control-buttons-container {
    top: 70px;
    right: 10px;
    gap: 8px;
  }
  
  .search-input-container {
    right: 50px;
  }
  
  .search-input-container.expanded {
    width: calc(100vw - 60px);
    max-width: 300px;
  }
  
  .graphics-settings-panel {
    width: calc(100vw - 12px);
    max-width: 160px;
    right: 50px;
    border-radius: 0;
  }
  
  .quality-btn {
    padding: 12px 14px;
    min-height: 50px;
  }
  
  .quality-icon {
    width: 26px;
    height: 26px;
  }
  
  .quality-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .quality-name {
    font-size: 14px;
  }
  
  .quality-desc {
    font-size: 10px;
  }
}


/* Search Button - Square with magnifying glass */
.search-button {
  width: 40px;
  height: 40px;
  background: #FF6B35;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-button:hover {
  background: #E55A2B;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.search-button:active {
  background: #D44A1A;
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.2);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: #000000;
  transition: all 0.3s ease;
}

/* Search Input Container - Initially hidden */
.search-input-container {
  position: absolute;
  top: 0;
  right: 50px;
  display: flex;
  align-items: center;
  background: #000000;
  border: 1px solid #ff6b35;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
  overflow: visible;
  opacity: 0;
  transform: translateX(15px) scale(0.9);
  width: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1001;
}

/* Expanded state */
.search-input-container.expanded {
  opacity: 1;
  transform: translateX(0) scale(1);
  width: 280px;
  pointer-events: all;
}

/* Search Input Field */
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 15px;
  font-size: 14px;
  color: #FFFFFF;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.search-input::placeholder {
  color: #ff6b35;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Search Submit Button */
.search-submit-btn {
  width: 32px;
  height: 32px;
  background: #00d4ff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.search-submit-btn:hover {
  background: #0099cc;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.search-submit-btn svg {
  width: 14px;
  height: 14px;
  color: white;
}

/* Search Clear Button */
.search-clear-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #ff6b35;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: #ff6b35;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.search-clear-btn:hover {
  background: #ff6b35;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.search-clear-btn svg {
  width: 14px;
  height: 14px;
}

/* Animation for search button when expanded */
.search-button.expanded {
  background: #E55A2B;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.search-button.expanded:hover {
  background: #D44A1A;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

.search-button.expanded .search-icon {
  transform: rotate(45deg);
}

/* Mobile Responsive for Search Button */
@media (max-width: 768px) {
  .search-button {
    width: 50px;
    height: 50px;
  }
  
  .search-icon {
    width: 20px;
    height: 20px;
  }
  
  .search-input-container {
    right: 60px;
  }
  
  .search-input-container.expanded {
    width: calc(100vw - 40px);
    max-width: 400px;
  }
  
  .search-input {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .search-submit-btn,
  .search-clear-btn {
    width: 36px;
    height: 36px;
    margin-right: 6px;
  }
  
  .search-submit-btn svg,
  .search-clear-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .search-button {
    width: 45px;
    height: 45px;
  }
  
  .search-icon {
    width: 18px;
    height: 18px;
  }
  
  .search-input-container {
    right: 55px;
  }
  
  .search-input-container.expanded {
    width: calc(100vw - 72px);
    max-width: 350px;
  }
  
  .search-input {
    font-size: 15px;
    padding: 10px 14px;
  }
  
  .search-submit-btn,
  .search-clear-btn {
    width: 32px;
    height: 32px;
    margin-right: 4px;
  }
  
  .search-submit-btn svg,
  .search-clear-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Loading state for search */
.search-input-container.loading .search-input {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Focus states */
.search-input:focus {
  background: rgba(255, 107, 53, 0.1);
}

.search-input:focus + .search-submit-btn {
  background: #0099cc;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* Smooth transitions for all interactive elements */
.search-button,
.search-input-container,
.search-submit-btn,
.search-clear-btn {
  transition: all 0.3s ease;
}

/* Accessibility improvements */
.search-button:focus,
.search-submit-btn:focus,
.search-clear-btn:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* Search Results Container - Attached to input */
.search-results-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 60px;
  max-height: calc(100vh - 120px);
  background: #000000;
  border: 1px solid #ff6b35;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
  margin-top: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1001;
  overflow: hidden;
  display: none;
}

.search-results-container.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  display: block;
}

/* Search Results Header - Removed */

/* Search Results List */
.search-results-list {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #ff6b35 #1a1a1a;
}

/* Custom Scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.search-results-list::-webkit-scrollbar {
  width: 8px;
}

.search-results-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
  border: 1px solid #333;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b35, #e55a2b);
  border-radius: 4px;
  border: 1px solid #d44a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e55a2b, #d44a1a);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
  transform: scaleX(1.2);
}

.search-results-list::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #d44a1a, #c43a0a);
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.6);
}

/* Scrollbar corner */
.search-results-list::-webkit-scrollbar-corner {
  background: #1a1a1a;
}

/* NFT Card */
.nft-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nft-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 107, 53, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nft-card.standard::before {
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
}

.nft-card.premium::before {
  background-image: 
    linear-gradient(rgba(255, 107, 53, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
}

.nft-card:hover {
  background: #2a2a2a;
  border-color: #ff6b35;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.nft-card:hover::before {
  opacity: 1;
}

.nft-card.standard:hover {
  border-color: #00d4ff;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.nft-card:last-child {
  margin-bottom: 0;
}

/* NFT Card Header */
.nft-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.nft-name-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.nft-name {
  color: #FFFFFF;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.2;
}

.token-id-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-id-label {
  color: #999;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.token-id {
  color: #00d4ff;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 2px 6px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 2px;
  display: inline-block;
}

.type-badge-container {
  display: flex;
  align-items: center;
}

.nft-type-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nft-type-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nft-type-badge:hover::before {
  left: 100%;
}

.nft-type-badge.premium {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: #FFFFFF;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.nft-type-badge.standard {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #000000;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-icon {
  font-size: 10px;
  animation: pulse 2s infinite;
}

.badge-text {
  font-weight: 700;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* NFT Card Content */
.nft-card-content {
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 4px 0;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  color: #999;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 70px;
  flex-shrink: 0;
}

.info-value {
  font-family: 'Courier New', monospace;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex: 1;
  word-break: break-all;
}

.collection-name {
  color: #ff6b35;
  font-weight: 600;
}

.owner-address {
  color: #999;
  font-weight: 400;
}

/* NFT Card Actions */
.nft-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.view-tree-btn {
  background: transparent;
  border: none;
  color: #00d4ff;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  overflow: hidden;
}

.view-tree-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #0099cc);
  transition: width 0.3s ease;
}

.view-tree-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.view-tree-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
  transform: translateY(-1px);
}

.view-tree-btn:hover::before {
  width: 100%;
}

.view-tree-btn:hover::after {
  left: 100%;
}

.view-tree-btn:active {
  transform: translateY(0);
  color: #0099cc;
}

/* Premium card button styling */
.nft-card.premium .view-tree-btn {
  color: #ff6b35;
}

.nft-card.premium .view-tree-btn::before {
  background: linear-gradient(90deg, #ff6b35, #e55a2b);
}

.nft-card.premium .view-tree-btn::after {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
}

.nft-card.premium .view-tree-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.nft-card.premium .view-tree-btn:active {
  color: #e55a2b;
}

/* Empty State */
.search-results-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Loading State */
.search-results-loading {
  text-align: center;
  padding: 20px;
  color: #ff6b35;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Responsive for Search Results */
@media (max-width: 768px) {
  .search-results-container {
    max-height: calc(100vh - 100px);
  }
  
  .search-results-list {
    max-height: calc(100vh - 120px);
    padding: 12px;
  }
  
  .nft-card {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .nft-name {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .token-id-container {
    margin-bottom: 8px;
  }
  
  .token-id-label {
    font-size: 11px;
  }
  
  .token-id {
    font-size: 14px;
  }
  
  .nft-type-badge {
    padding: 6px 12px;
    font-size: 10px;
  }
  
  .badge-icon {
    font-size: 12px;
  }
  
  .info-row {
    margin-bottom: 8px;
  }
  
  .info-label {
    font-size: 10px;
  }
  
  .info-value {
    font-size: 12px;
  }
  
  .collection-name {
    font-size: 12px;
  }
  
  .view-tree-btn {
    font-size: 12px;
    padding: 10px 0;
  }
  
  .owner-address {
    font-size: 9px;
  }
  
  .view-tree-btn {
    padding: 5px 10px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .search-results-container {
    max-height: calc(100vh - 80px);
  }
  
  .search-results-list {
    max-height: calc(100vh - 100px);
    padding: 8px;
  }
  
  .nft-card {
    padding: 12px;
    margin-bottom: 10px;
  }
  
  .nft-name {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .token-id-container {
    margin-bottom: 6px;
  }
  
  .token-id-label {
    font-size: 10px;
  }
  
  .token-id {
    font-size: 12px;
  }
  
  .nft-type-badge {
    padding: 4px 8px;
    font-size: 9px;
  }
  
  .badge-icon {
    font-size: 10px;
  }
  
  .info-row {
    margin-bottom: 6px;
  }
  
  .info-label {
    font-size: 9px;
  }
  
  .info-value {
    font-size: 11px;
  }
  
  .collection-name {
    font-size: 11px;
  }
  
  .view-tree-btn {
    font-size: 11px;
    padding: 8px 0;
  }
  
  .owner-address {
    font-size: 8px;
  }
}

/* Global Modern Scrollbar Styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #ff6b35 #1a1a1a;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
  border: 1px solid #333;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b35, #e55a2b);
  border-radius: 4px;
  border: 1px solid #d44a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e55a2b, #d44a1a);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
  transform: scaleX(1.1);
}

*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #d44a1a, #c43a0a);
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.6);
}

*::-webkit-scrollbar-corner {
  background: #1a1a1a;
}

/* Special scrollbar for search results with enhanced styling */
.search-results-list::-webkit-scrollbar {
  width: 10px;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b35, #e55a2b);
  border-radius: 6px;
  border: 2px solid #d44a1a;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-results-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e55a2b, #d44a1a);
  box-shadow: 0 5px 10px rgba(255, 107, 53, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scaleX(1.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .search-button {
    border: 2px solid #000;
  }
  
  .search-input-container {
    border: 2px solid #000;
  }
  
  .search-results-container {
    border: 2px solid #000;
  }
  
  .nft-card {
    border: 2px solid #000;
  }
  
  *::-webkit-scrollbar-thumb {
    background: #000;
    border: 2px solid #fff;
  }
}
