/* ============================================
   looksreal.ai — home.css
   Split from styles.css 2026-04-20 per css-restructure thread.
   ============================================ */
/* ============================================
   HOME PAGE
   ============================================ */

.home-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* Category cards */
.category-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 40px;
  /* Allow cards to lift on hover without clipping */
  padding-top: 20px;
  margin-top: -20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 800ms ease, box-shadow 800ms ease, border-color 800ms ease;
  overflow: hidden;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--ember);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.category-card-header {
  padding: 14px 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.category-card-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.category-card-desc {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
}

.category-card-arrow { font-size: 16px; color: var(--text-whisper); }

.category-card-gradient {
  height: 140px;
  margin: 0 10px 10px;
  border-radius: 4px;
}

.category-card-gradient.animated-gradient {
  background-size: 200% 200% !important;
  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Featured section */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.carousel-arrows {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Carousel container - clips overflow without creating scroll on Y */
.carousel-container {
  position: relative;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  margin-bottom: 32px;
}

/* Model cards - horizontal scroll track */
.model-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  width: 100%;
}
.model-cards::-webkit-scrollbar { display: none; }

.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-dot.active {
  background: var(--ember);
  width: 18px;
  border-radius: 3px;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-helper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.carousel-arrow:hover {
  border-color: var(--text-helper);
  color: var(--text-primary);
}

.model-card {
  /* Dynamic width set via JS --card-width */
  flex: 0 0 var(--card-width, 200px);
  min-width: var(--card-width, 200px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 800ms ease, box-shadow 800ms ease, border-color 800ms ease;
  overflow: hidden;
}
.model-card:hover {
  transform: translateY(-6px);
  border-color: var(--ember);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.model-card-visual {
  height: var(--card-height, 220px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-card-orb-outer {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-card-orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.model-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
}

.model-card-info {
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
}

.model-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.model-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.model-card-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-primary);
}

.model-card-desc {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  line-height: 1.4;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-ghost);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stat-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-success);
}

/* All models table */
.models-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.models-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 60px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.models-table-header span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-whisper);
}

.models-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 60px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--bg-elevated); /* TODO: uses bg token as border color — refactor to proper border token */
  align-items: center;
  cursor: pointer;
  transition: background 0.1s;
}
.models-table-row:last-child { border-bottom: none; }
.models-table-row:hover { background: var(--bg-app); }

.models-table-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.models-table-name .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.models-table-name .name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-primary);
}

.models-table-cell {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-disabled);
}
.models-table-cell.type { text-transform: uppercase; }

.models-table-arrow {
  text-align: right;
  font-size: 14px;
  color: var(--text-dim);
}

/* All Models header row */
.models-table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Filter tabs for All Models table */
.models-filter-tabs {
  display: flex;
  gap: 6px;
}

.models-filter-tab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-helper);
  cursor: pointer;
  transition: all 0.15s;
}
.models-filter-tab:hover {
  border-color: var(--text-helper);
  color: var(--text-primary);
}
.models-filter-tab.active {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--bg-card);
}

/* ============================================
   TAGS / BADGES
   ============================================ */

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  display: inline-block;
  white-space: nowrap;
}
.tag-new { background: var(--ember); color: #000; }
.tag-popular { background: var(--border); color: var(--text-secondary); }
.tag-beta { background: rgba(59,130,246,0.12); color: var(--color-info); }
.tag-online { background: rgba(34,197,94,0.12); color: var(--color-success); }

/* ============================================
   SHOWCASE BOARD (home page masonry)
   ============================================ */

.showcase-grid {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}
.showcase-item {
  position: absolute;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-overlay);
  transition: filter 0.15s ease;
}
.showcase-item:hover {
  z-index: 10;
  filter: brightness(1.1);
}
.showcase-item img,
.showcase-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay-deep);
}
.showcase-audio-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-ghost);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

