/* ===================== GALLERY PAGE ===================== */

/* Hero section */
.hero {
  text-align: center;
  padding: 48px 24px 32px;
  background: #F9F8F5;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.hero p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Filter tabs */
.filters {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  overflow-x: auto;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #f9f8f5
}

/* Bot grid */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bot card */
.bot-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.bot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bot-card-avatar {
  width: 100%;
  height: 180px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bot-card-avatar > img,
.bot-card-avatar > video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-card-avatar .avatar-placeholder {
  font-size: 4rem;
}

.bot-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bot-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-card-name .share-btn {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 0.72rem;
}

.bot-card-author {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.bot-card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bot-card-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  vertical-align: middle;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary-light);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: default;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}

/* Skeleton loading */
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.skeleton-avatar {
  width: 100%;
  height: 180px;
  background: linear-gradient(90deg, var(--bg) 25%, #e8e8ed 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 16px;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--bg) 25%, #e8e8ed 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.shorter { width: 40%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Auth modal specific */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 32px 16px 24px; }
  .hero h1 { font-size: 1.5rem; }
  .bot-grid { padding: 16px; gap: 16px; }
}
