/* Custom CSS for StaffKarma Telegram Mini App */

:root {
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  padding-bottom: calc(4.5rem + var(--safe-area-bottom));
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbar hiding for horizontal chip filters */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Filter chips */
.filter-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--tg-theme-hint-color, #9ca3af);
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-chip.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #f97316;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

/* Nav Item styling */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--tg-theme-hint-color, #9ca3af);
  transition: all 0.15s ease-in-out;
}

.nav-item.active {
  color: #f97316;
  transform: translateY(-1px);
}

.nav-item.active span:first-child {
  transform: scale(1.15);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Preset meme option cards */
.meme-preset-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.meme-preset-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meme-preset-item.selected {
  border-color: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  transform: scale(0.96);
}

/* Tag buttons */
.tag-pill {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-pill:hover, .tag-pill.active {
  background: rgba(249, 115, 22, 0.2);
  border-color: #f97316;
  color: #ffedd5;
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smooth active button scale */
button:active {
  transform: scale(0.97);
}
