/* Custom styles for the GitHub Repository Analyzer */

/* Smooth animations */
* {
  transition: all 0.2s ease;
}

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Chat bubble hover effect */
#chatBubble button:hover {
  transform: scale(1.05);
}

/* Chat messages styling */
#chatMessages {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

#chatMessages::-webkit-scrollbar {
  width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
  background: #f7fafc;
}

#chatMessages::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Presentation mode styles */
#presentationMode {
  background: rgba(0, 0, 0, 0.95);
}

/* Code highlighting in prose */
.prose code {
  background-color: #f1f5f9;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

/* Button hover effects */
button:hover {
  transform: translateY(-1px);
}

/* Input focus effects */
input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* GitHub icon styling */
.fab.fa-github {
  color: #24292e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #chatWindow {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 5rem;
  }
  
  #presentationMode .max-w-4xl {
    max-width: 100%;
    padding: 1rem;
  }
}

/* Print styles for PDF */
@media print {
  body * {
    visibility: hidden;
  }
  
  #analysisResults,
  #analysisResults * {
    visibility: visible;
  }
  
  #analysisResults {
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* Custom prose styling for better readability */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #111827;
  font-weight: 700;
}

.prose h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin: 0.5rem 0;
}

.prose p {
  margin: 1rem 0;
}