/* =========================
   TEAMS TAB LAYOUT
========================= */

.teams-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* =========================
   TABLE RESET
========================= */

.left-align-table {
    width: 100%;
    border-collapse: collapse;
}

/* REMOVE DEFAULT TABLE LOOK */
.left-align-table td {
    border: none;
    padding: 0;
}

/* =========================
   ROW STYLE (RIVALS STYLE)
========================= */

.left-align-table tr {
    display: block;
    margin-bottom: 8px;
}

/* ROW CARD */
.left-align-table tr td {
    background: #1f2432;
    border: 1px solid #2a3042;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

/* HOVER */
.left-align-table tr td:hover {
    border-color: #c855f7;
    background: #262c3d;
}

/* =========================
   TEAM NAME
========================= */

.left-align-table td:first-child {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}

/* =========================
   RECORD (W/L)
========================= */

.left-align-table td:last-child {
    font-size: 12px;
    color: #9ca3af;
}

/* =========================
   OPTIONAL: COLOR W/L
========================= */

.left-align-table td:last-child {
    display: flex;
    gap: 4px;
}

/* If you later split wins/losses */
.wins {
    color: #00dc80;
    font-weight: 600;
}

.losses {
    color: #e84f64;
    font-weight: 600;
}

/* =========================
   TEAMS LAYOUT
========================= */

.teams-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CARD */
.teams-card {
    background: #171b26;
    border: 1px solid #232938;
    border-radius: 10px;
    padding: 14px;
}

/* HEADER */
.card-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* LIST */
.teams-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ROW */
.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #1f2432;
    border: 1px solid #2a3042;
    border-radius: 8px 8px 0 0;

    padding: 10px 12px;
    transition: 0.2s;
}

.team-row:hover {
    border-color: #c855f7;
    background: #262c3d;
}

/* LEFT */
.team-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* NAME */
.team-name {
    color: #b5a4f3;
    font-size: 15px;
    font-weight: 600;
}

.team-name:hover,
.team-link:hover {
    color: #e84f64; /* nicer red */
}

/* LADDER */
.team-ladder {
color: #babec9;
    font-size: 12px;
}

/* NICKNAME */
.team-nickname {
    font-size: 14px;
    color: white;
}

/* RIGHT */
.team-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* RECORD */
.team-record {
    font-size: 12px;
}

.wins {
    color: #00dc80;
    font-weight: 600;
}

.losses {
    color: #e84f64;
    font-weight: 600;
}

/* WINRATE */
.team-winrate {
    font-size: 13px;
    font-weight: 600;
}

/* DATE */
.team-date {
    font-size: 12px;
    color: #9ca3af;
}

/* STATUS */
.team-status {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
}

.team-status.active {
    background: rgba(0, 220, 128, 0.15);
    color: #00dc80;
}

.team-status.left {
    background: rgba(232, 79, 100, 0.15);
    color: #e84f64;
}

/* TEAM BLOCK */
.team-block {
    display: flex;
    flex-direction: column;
}

/* CLICKABLE ROW */
.toggle-team {
    cursor: pointer;
}

/* STATS HIDDEN */
.team-stats {
    display: none;
    background: #141824;
    border: 1px solid #2a3042;
    border-radius: 0 0 8px 8px;
    padding: 8px;
}

/* SHOW */
.team-stats.open {
    display: block;
}

/* TABLE */
.characters-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-weight: 700;
}

.characters-table th {
    text-align: left;
    color: #9ca3af;
    padding: 6px;
    border-bottom: 1px solid #2a3042;
}

.characters-table td {
    padding: 6px;
    border-bottom: 1px solid #1f2432;
}

.characters-table tr:last-child td {
    border-bottom: none;
}

.characters-table tr:hover {
    background: #1c2130;
}

/* =========================
   TEAM HEADER / ROW ALIGNMENT
========================= */

.team-header-row,
.team-row-full {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 360px;
    align-items: center;
    column-gap: 16px;
}

/* HEADER */
.team-header-row {
    padding: 8px 12px;
    font-size: 11px;
    color: #9ca3af;
    border-bottom: 1px solid #2a3042;
}

.team-header-row .left {
    text-align: left;
}

.team-header-row .right {
    display: grid;
    grid-template-columns: repeat(5, minmax(60px, 1fr));
    align-items: center;
    text-align: center;
    column-gap: 12px;
}

/* ROW */
.team-row-full {
    padding: 10px 12px;
    border-bottom: 1px solid #1f2432;
    transition: 0.2s;
}

.team-row-full:hover {
    background: #1c2130;
}

/* LEFT SIDE */
.team-left-full {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.team-logo img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.team-info-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
}

.team-ladder {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.15;
}

.team-nickname {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.15;
}

/* RIGHT SIDE STATS */
.team-stats-inline {
    display: grid;
    grid-template-columns: repeat(5, minmax(60px, 1fr));
    align-items: center;
    text-align: center;
    column-gap: 12px;
}

.team-stats-inline .stat {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}