/* Grid layout similar to tournaments */
.teams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 880px;
    margin: 0.75rem auto 0;
}

/* Card styling */
.team-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.06));
    border-radius: var(--radius);
    padding: var(--card-padding);
    border: 1px solid rgba(199, 161, 91, 0.07);
    box-shadow: var(--glow);
    display: grid;
    gap: 0.65rem;
    margin: 20px 0;
    overflow: hidden;                     /* keep accent flush */
    transition: box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.team-card:focus-within {
    box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.65),
            0 0 0 3px rgba(96, 165, 250, 0.34);
}

.team-card[data-status="active"] { --accent: #22c55e; }
.team-card[data-status="recruiting"] { --accent: #60a5fa; }
.team-card[data-status="inactive"] { --accent: #9ca3af; }

/* Empty state */
.empty-state {
    padding: 0.75rem 0;
    opacity: 0.8;
}

/* Header */
.team-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.team-card__title {
    margin: 0;
    font-size: 1.05rem;
}
.team-card__title a {
    color: #e5e7eb;
}

/* Subtitle */
.team-card__subtitle {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* Details grid */
.team-card__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}
.team-card__details dt {
    font-weight: 300;
    font-size: 0.85rem;
    opacity: 0.85;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
}
.team-card__details dd {
    margin: 0;
    color: #e5e7eb;
}

/* Actions */
.team-card__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}
.team-card__actions button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Chips (status badges) */
.chip {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 1rem;
    line-height: 1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e5e7eb;
}
.chip--active {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.38);
    color: #86efac;
}
.chip--recruiting {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.40);
    color: #93c5fd;
}
.chip--inactive {
    background: rgba(156, 163, 175, 0.16);
    border-color: rgba(156, 163, 175, 0.40);
    color: #d1d5db;
}

/* Optional label style */
#realm-label {
    font-weight: 300;
    font-size: 1rem;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
}