/* ══════════════════════════════════════
   allies.css — Página de Aliados
   ══════════════════════════════════════ */

.allies-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  min-height: 80vh;
}

/* ── Hero ── */
.allies-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.allies-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.allies-hero-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.allies-updated {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Sections ── */
.allies-section { margin-bottom: 3rem; }
.allies-section-label {
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.allies-badge-oficial-label { color: var(--gold, #FFD966); }

/* ── Grid ── */
.allies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.allies-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ── Card ── */
.ally-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ally-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124,143,255,0.12);
}
.ally-card--featured {
  border-color: rgba(255, 217, 102, 0.3);
  background: linear-gradient(160deg, rgba(255,217,102,0.04) 0%, var(--bg-card) 40%);
}
.ally-card--featured:hover {
  border-color: rgba(255, 217, 102, 0.55);
  box-shadow: 0 12px 36px rgba(255,217,102,0.12);
}
.ally-card--bot {
  border-color: rgba(88, 170, 255, 0.25);
}
.ally-card--bot:hover {
  border-color: rgba(88, 170, 255, 0.5);
  box-shadow: 0 12px 32px rgba(88,170,255,0.14);
}
.ally-icon--bot {
  border-radius: 16px;
}
.ally-icon--placeholder.ally-icon--bot {
  border-radius: 16px;
}

/* ── Banner ── */
.ally-banner {
  height: 90px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ── Body ── */
.ally-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* ── Header ── */
.ally-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.ally-icon-wrap {
  position: relative;
  flex-shrink: 0;
}
.ally-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}
.ally-icon--placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-mid);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.ally-badge-oficial {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.75rem;
  background: var(--bg-card);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,217,102,0.5);
}
.ally-badge-verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.7rem;
  background: var(--bg-card);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(88, 170, 255, 0.5);
}

.ally-info { flex: 1; min-width: 0; }
.ally-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ally-name-link {
  color: inherit;
  text-decoration: none;
}
.ally-name-link:hover { text-decoration: underline; }
.ally-bot-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(88, 170, 255, 0.15);
  color: #8FC1FF;
  border: 1px solid rgba(88, 170, 255, 0.3);
  flex-shrink: 0;
}
.ally-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.ally-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ally-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(124,143,255,0.15);
  color: var(--hair-main, #A9D6FF);
  border: 1px solid rgba(124,143,255,0.2);
}
.ally-members,
.ally-boost {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ally-online {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.ally-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3BD671;
  box-shadow: 0 0 5px rgba(59, 214, 113, 0.7);
  display: inline-block;
}

/* ── Description ── */
.ally-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

/* ── Button ── */
.ally-btn {
  display: inline-block;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  background: rgba(124,143,255,0.12);
  color: var(--hair-main, #A9D6FF);
  border: 1px solid rgba(124,143,255,0.2);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  margin-top: auto;
}
.ally-btn:hover {
  background: rgba(124,143,255,0.22);
  border-color: rgba(124,143,255,0.4);
  transform: translateY(-1px);
}
.ally-btn--gold {
  background: rgba(255,217,102,0.1);
  color: var(--gold, #FFD966);
  border-color: rgba(255,217,102,0.25);
}
.ally-btn--gold:hover {
  background: rgba(255,217,102,0.2);
  border-color: rgba(255,217,102,0.5);
}
.ally-btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.ally-btn--secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--text-muted);
}
.ally-btn-row {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}
.ally-btn-row .ally-btn {
  flex: 1;
  margin-top: 0;
}
@media (max-width: 420px) {
  .ally-btn-row { flex-direction: column; }
}

/* ── Empty ── */
.allies-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 0;
  font-size: 1rem;
}

/* ── Streamer card ── */
.streamer-live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #FF4D6A;
  background: rgba(255, 77, 106, 0.12);
  border: 1px solid rgba(255, 77, 106, 0.35);
  transition: background 0.2s, transform 0.15s;
}
.streamer-live-badge:hover {
  background: rgba(255, 77, 106, 0.22);
  transform: translateY(-1px);
}
.streamer-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF4D6A;
  box-shadow: 0 0 6px rgba(255, 77, 106, 0.8);
  animation: streamer-live-pulse 1.4s ease-in-out infinite;
}
@keyframes streamer-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.streamer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.streamer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  min-width: 64px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.streamer-social:hover {
  background: rgba(124,143,255,0.1);
  border-color: rgba(124,143,255,0.3);
  transform: translateY(-2px);
}
.streamer-social-icon {
  display: flex;
  color: var(--text-secondary);
}
.streamer-social-icon svg {
  width: 20px;
  height: 20px;
}
.streamer-social:hover .streamer-social-icon { color: var(--hair-main, #A9D6FF); }
.streamer-social-name {
  font-size: 0.68rem;
  color: var(--text-secondary);
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-video {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.streamer-video:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--text-muted);
}
.streamer-video-thumb {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.streamer-video-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.streamer-video-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.streamer-video-title {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .allies-grid,
  .allies-grid--featured { grid-template-columns: 1fr; }
  .allies-page { padding-top: 5rem; }
}
