/* Phase 7 — Prediction & Authority Layer Styles */

/* Studio Grid */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.studio-card {
  background: var(--card-bg, #1a1d23);
  border: 1px solid var(--border, #2a2d35);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
}
.studio-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #ff6b35);
}

.studio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.studio-name {
  font-size: 1.15rem;
  margin: 0;
  color: var(--text-primary, #fff);
}
.studio-momentum {
  font-size: 1.1rem;
  font-weight: 700;
}

.studio-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #999);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.studio-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary, #999);
}
.studio-stat {
  white-space: nowrap;
}

.studio-games-list {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted, #666);
  border-top: 1px solid var(--border, #2a2d35);
  padding-top: 0.75rem;
}

/* Studio Profile Page */
.studio-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.studio-stat-card {
  background: var(--card-bg, #1a1d23);
  border: 1px solid var(--border, #2a2d35);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent, #ff6b35);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary, #999);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.studio-website-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent, #ff6b35);
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.8;
}
.studio-website-link:hover { opacity: 1; }

.nav-back {
  color: var(--accent, #ff6b35);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-back:hover { text-decoration: underline; }

/* Rankings Page */
.rankings-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary, #999);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.component-bars {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 14px;
}
.comp-bar {
  height: 10px;
  border-radius: 2px;
  min-width: 2px;
  display: inline-block;
}

.rankings-methodology {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--card-bg, #1a1d23);
  border: 1px solid var(--border, #2a2d35);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary, #999);
  line-height: 1.6;
}
.rankings-methodology h3 {
  color: var(--text-primary, #fff);
  margin-top: 0;
}
.rankings-methodology ul {
  padding-left: 1.5rem;
}
.rankings-methodology li {
  margin-bottom: 0.5rem;
}
.rankings-methodology strong {
  color: var(--text-primary, #fff);
}

/* Responsive */
@media (max-width: 600px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .component-bars {
    display: none;
  }
  .rankings-legend {
    display: none;
  }
}
