:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

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

body, html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
}

.font-geist-mono {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
}

/* Sidebar styles */
.sidebar {
  transition: transform 0.3s ease;
}

.sidebar-category {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.25rem;
  margin: 0.125rem 0.5rem;
  transition: all 0.15s ease;
}

.sidebar-category:hover {
  background-color: #f4f4f5;
}

.sidebar-category.active {
  background-color: #f4f4f5;
  font-weight: 500;
}

.sidebar-subcategory {
  padding: 0.35rem 1rem 0.35rem 2.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 0.25rem;
  margin: 0.125rem 0.5rem;
  transition: all 0.15s ease;
}

.sidebar-subcategory:hover {
  background-color: #f4f4f5;
}

.sidebar-subcategory.active {
  background-color: #f4f4f5;
  font-weight: 500;
}

/* App card styles */
.app-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: white;
  transition: all 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.app-card.active {
  border-color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Detail panel styles */
.detail-panel {
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s ease;
}

.detail-panel.open {
  max-width: 500px;
  width: 35%;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f4f4f5;
  color: #18181b;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.15s ease;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: #111;
  color: white;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-secondary {
  background-color: white;
  color: #111;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  cursor: pointer;
  transition: all 0.15s ease;
}

.close-btn:hover {
  background-color: #f4f4f5;
  color: #111;
}

.screenshot-gallery {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-item {
  flex: 0 0 100%;
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}

.carousel-control:hover {
  background-color: white;
}

.carousel-control-prev {
  left: 0.75rem;
}

.carousel-control-next {
  right: 0.75rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
}

.carousel-indicator.active {
  background-color: white;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .detail-panel.open {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    width: 100%;
    max-width: 100%;
  }
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
