/* ── VARIANT DETAIL PAGE (Complementary styles) ── */

.app-body main {
    display: flex;
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-left {
    flex: 0 0 350px;
}

.detail-right {
    flex: 1;
}

.index-grid h2 {
    font-family: 'Nunito', sans-serif;
    color: var(--teal-dark);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--teal-light, #1abc9c);
    display: block;
}

.index-grid h2:first-child {
    margin-top: 0;
}

/* ── BRAINROT GRID (Format compact comme brainrots.php) ── */
.brainrots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.brainrot-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1.1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  background: #e8f0f0;
  text-decoration: none;
  display: block;
}

.brainrot-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.brainrot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brainrot-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

.brainrot-name {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  text-transform: lowercase;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.brainrot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}
.badge-obby { background: #e91e63; color: #fff; }
.badge-luckyblock { background: #ff9800; color: #fff; }

