/* Custom styles for Hermit Hub */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #81B29A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6a9d82;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #2d3748;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4a5568;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

/* Poster-style typography */
.font-poster {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.05em;
}

/* Subtle animations */
.transition-colors {
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Hand-drawn style for special elements */
.hand-drawn {
  position: relative;
}

.hand-drawn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #E07A5F 0px,
    #E07A5F 4px,
    transparent 4px,
    transparent 8px
  );
}

/* Message bubble hover effects */
.message-bubble {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.message-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Focus styles for accessibility */
input:focus,
button:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #E07A5F;
}

/* Custom button styles */
.btn-hermit {
  background: linear-gradient(135deg, #2D5016, #3d6b1f);
  transition: all 0.3s ease;
}

.btn-hermit:hover {
  background: linear-gradient(135deg, #3d6b1f, #2D5016);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

/* Vintage radio dial style for dark mode toggle */
.radio-dial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #f4f4f4, #e0e0e0);
  border: 2px solid #bbb;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-dial::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 15px;
  background: #666;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.radio-dial.dark::after {
  transform: translateX(-50%) rotate(180deg);
}

/* Geometric avatar styles */
.avatar-geometric {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, #81B29A, #6a9d82);
}

/* Channel notification dots */
.notification-dot {
  width: 8px;
  height: 8px;
  background: #E07A5F;
  border-radius: 50%;
  position: absolute;
  top: -2px;
  right: -2px;
  box-shadow: 0 0 0 2px #F7F3E9;
}

/* Vintage poster frame for file sharing */
.poster-frame {
  border: 8px solid #E07A5F;
  border-image: repeating-linear-gradient(
    45deg,
    #E07A5F,
    #E07A5F 10px,
    #d4674a 10px,
    #d4674a 20px
  ) 8;
  background: #F7F3E9;
  padding: 20px;
  text-align: center;
  font-family: 'Impact', 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .font-poster {
    font-size: 1.5rem;
  }
  
  .sidebar-overlay {
    backdrop-filter: blur(4px);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}