/* Colmek Gallery - Custom Styles */

html { scroll-behavior: smooth; }

body {
  background-color: #0a0a0a;
  -webkit-tap-highlight-color: transparent;
}

/* Category pills */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #a3a3a3;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.cat-pill:hover {
  border-color: #ef4444;
  color: #fff;
}
.cat-pill.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* Genre cards */
.genre-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1rem;
  background: #121212;
  border: 1px solid #1f1f1f;
  transition: all 0.2s;
  text-align: left;
  cursor: pointer;
}
.genre-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: #1a1a1a;
  transform: translateY(-2px);
}

/* Video cards */
.video-card {
  transition: transform 0.2s;
}
.video-card:hover {
  transform: translateY(-3px);
}
.video-card h3 {
  font-size: 0.8125rem;
  line-height: 1.35;
}

/* Pagination */
.page-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #a3a3a3;
  transition: all 0.15s;
  cursor: pointer;
}
.page-btn:hover:not(:disabled) {
  border-color: #ef4444;
  color: #fff;
}
.page-btn.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide {
  will-change: opacity;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Modal */
#videoModal:not(.hidden) {
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#ageGate {
  backdrop-filter: blur(8px);
}

/* ===== RESPONSIVE ===== */

/* Phone */
@media (max-width: 640px) {
  .cat-pill {
    padding: 0.3rem 0.65rem;
    font-size: 0.68rem;
  }
  .genre-card {
    padding: 0.75rem;
  }
  .video-card h3 {
    font-size: 0.75rem;
  }
  .page-btn {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  #searchToggle,
  #mobileMenuBtn,
  #modalClose {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .video-card h3 {
    font-size: 0.8rem;
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  #navbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

img, iframe, video {
  max-width: 100%;
}
