/* ===================================================================
 * TEAMS REDESIGN - Minimalista com Estilo RPG
 * Design limpo e elegante inspirado em RPGs modernos
 * =================================================================== */

/* ===================================================================
 * VOCAÇÕES - ÍCONE + NOME
 * =================================================================== */

.vocation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(51, 65, 85, 0.08);
    border: 1px solid rgba(51, 65, 85, 0.15);
    color: #0f172a;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    text-transform: uppercase;
}

.vocation-knight { 
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: none;
}
.vocation-knight::before { content: '⚔'; font-size: 0.8rem; margin-right: 2px; }

.vocation-paladin { 
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: none;
}
.vocation-paladin::before { content: '✦'; font-size: 0.8rem; margin-right: 2px; }

.vocation-druid { 
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.2);
    box-shadow: none;
}
.vocation-druid::before { content: '🍃'; font-size: 0.8rem; margin-right: 2px; }

.vocation-sorcerer { 
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: none;
}
.vocation-sorcerer::before { content: '◆'; font-size: 0.8rem; margin-right: 2px; }

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(51, 65, 85, 0.06);
    border: 1px solid rgba(51, 65, 85, 0.12);
    color: #475569;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* ===================================================================
 * TABS CONTAINER - Wrapper superior
 * =================================================================== */

.teams-container {
    width: 100%;
}

/* ===================================================================
 * TABS NAVIGATION - ESTILO MODERNO
 * =================================================================== */

.tabs-nav {
    border-bottom: 1px solid rgba(51, 65, 85, 0.1);
    margin-bottom: 24px;
    display: flex;
    gap: 32px;
    background: transparent;
}

.tabs-nav .tab-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    opacity: 0.6;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    margin: -1px 0 0 0;
    cursor: pointer;
    background: none;
    border: none;
    color: #475569;
    font-size: 0.95rem;
}

.tabs-nav .tab-link:hover {
    opacity: 0.8;
    color: #334155;
}

.tabs-nav .tab-link.active {
    opacity: 1;
    font-weight: 700;
    color: #0f172a;
    border-bottom-color: #7c3aed;
}

/* ===================================================================
 * TABS CONTENT WRAPPER
 * =================================================================== */

.tabs-content-wrapper {
    width: 100%;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* ===================================================================
 * GRIDS E LAYOUTS
 * =================================================================== */

.teams-grid-full {
    width: 100%;
    margin-bottom: 40px;
}

.teams-grid-full h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 0;
}

.teams-and-fila-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ===================================================================
 * CARD PRINCIPAL - MINIMALISTA COM ESTILO RPG
 * =================================================================== */

.team-card {
    border: 1px solid rgba(51, 65, 85, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-1px);
}

/* Boss Card - Com destaque dragão */
.team-card-boss {
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.team-card-boss:hover {
    border-color: rgba(220, 38, 38, 0.3);
}
    color: #7c3aed;
    font-size: 1rem;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cmc-player-name {
    font-weight: 700;
    color: #222;
    font-size: 1rem;
    word-break: break-word;
}
.cmc-char-name {
    font-weight: 600;
    color: #2563eb;
    font-size: 1rem;
    word-break: break-word;
}
.cmc-sep {
    color: #bbb;
    font-size: 1rem;
    margin: 0 2px;
}
.cmc-vocation {
    color: #16a34a;
    font-weight: 600;
}
.cmc-level {
    color: #bfa94c;
    font-weight: 600;
}
/* === NOVO CARD DE MEMBRO DE TIME === */
.new-member-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0;
    margin: 0;
}

.new-member-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 8px 12px 6px 12px;
    min-width: 180px;
    max-width: 260px;
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    position: relative;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.new-member-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #b3b3b3;
}
.nmc-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.97rem;
    margin-bottom: 0;
    line-height: 1.2;
}
.nmc-icon {
    color: #7c3aed;
    font-size: 1.1rem;
    min-width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nmc-player-name {
    font-weight: 700;
    color: #222;
    font-size: 1.05rem;
    word-break: break-word;
}
.nmc-char-name {
    font-weight: 600;
    color: #2563eb;
    font-size: 1.05rem;
    word-break: break-word;
}
.nmc-info {
    gap: 18px;
    margin-top: 2px;
    font-size: 0.97rem;
}
.nmc-vocation {
    color: #16a34a;
    font-weight: 600;
}
.nmc-level {
    color: #bfa94c;
    font-weight: 600;
}
/* === LISTA TRADICIONAL DE MEMBROS === */
.team-composition-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    flex: 1;
}

.team-composition-list li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    font-size: 1rem;
}

.team-composition-list li:last-child {
    border-bottom: none;
}

.team-composition-list li.empty-member {
    color: #aaa;
    text-align: center;
    padding: 16px;
    font-style: italic;
}

.member-name {
    font-weight: 700;
    color: #222;
    font-size: 1rem;
    min-width: 0;
    max-width: 180px;
    overflow-wrap: anywhere;
}

.char-name {
    font-weight: 600;
    color: #2563eb;
    font-size: 1rem;
    min-width: 0;
    max-width: 180px;
    overflow-wrap: anywhere;
}

.char-info {
    font-size: 0.97rem;
    color: #555;
    margin-left: 6px;
    font-weight: 500;
}
/* ===================================================================
 * TEAMS REDESIGN - Minimalista com Estilo RPG
 * Design limpo e elegante inspirado em RPGs modernos
 * =================================================================== */

/* Removido: badges, mini-card RPG, vocação, level, char-played-details, char-info-badges, e estilos RPG. */

/* ===================================================================
 * TABS NAVIGATION - ESTILO MODERNO
 * =================================================================== */

.tabs-nav {
    border-bottom: 1px solid rgba(51, 65, 85, 0.1);
    margin-bottom: 24px;
    display: flex;
    gap: 32px;
    background: transparent;
}

.tabs-nav .tab-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    opacity: 0.6;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    margin: -1px 0 0 0;
    cursor: pointer;
    background: none;
    border: none;
    color: #475569;
    font-size: 0.95rem;
}

.tabs-nav .tab-link:hover {
    opacity: 0.8;
    color: #334155;
}

.tabs-nav .tab-link.active {
    opacity: 1;
    font-weight: 700;
    color: #0f172a;
    border-bottom-color: #7c3aed;
}

/* ===================================================================
 * TABS CONTENT WRAPPER
 * =================================================================== */

.tabs-content-wrapper {
    width: 100%;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* ===================================================================
 * GRIDS E LAYOUTS
 * =================================================================== */

.teams-grid-full {
    width: 100%;
    margin-bottom: 40px;
}

.teams-grid-full h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 0;
}

.teams-and-fila-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ===================================================================
 * CARD PRINCIPAL - MINIMALISTA COM ESTILO RPG
 * =================================================================== */

.team-card {
    border: 1px solid rgba(51, 65, 85, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-1px);
}

/* Boss Card - Com destaque dragão */
.team-card-boss {
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.team-card-boss:hover {
    border-color: rgba(220, 38, 38, 0.3);
}

/* Remove bordas coloridas das abas */
#tab-Quest .team-card,
#tab-hunt .team-card,
#tab-service .team-card {
    border-color: rgba(51, 65, 85, 0.1);
    background: #ffffff;
}

/* ===================================================================
 * HEADER - COM ÍCONE E TÍTULO
 * =================================================================== */

.team-card-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(51, 65, 85, 0.02);
    border-bottom: 1px solid rgba(51, 65, 85, 0.06);
    position: relative;
    min-height: auto;
    min-width: 0;
}

/* Ícone à esquerda */
.team-card-header::before {
    font-size: 1.3rem;
    min-width: 28px;
    text-align: center;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#tab-Quest .team-card-header::before { content: '🔮'; }
#tab-hunt .team-card-header::before { content: '⚔️'; }
#tab-service .team-card-header::before { content: '👑'; }

/* Boss Icon - Caveira */
.team-card-boss .team-card-header::before {
    content: '☠️' !important;
    font-size: 1.3rem;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

/* Nome do time */
.team-card-header h3 {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    flex: 1;
    word-break: break-word;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* Botões de ação */
.team-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.team-card-header .action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(51, 65, 85, 0.05);
    border: 1px solid rgba(51, 65, 85, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: none;
}

.team-card-header .action-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
    transform: translateY(-1px);
}

.team-card-header .action-btn.alert {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.1);
    background: rgba(220, 38, 38, 0.05);
}

.team-card-header .action-btn.alert:hover {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.team-card-header .action-btn i {
    font-size: 0.85rem;
    line-height: 1;
}

/* ===================================================================
 * FOOTER - COM AÇÕES
 * =================================================================== */

.team-card-footer {
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: transparent;
    border-top: 1px solid rgba(51, 65, 85, 0.08);
    margin-top: auto;
    overflow: hidden;
}

.team-card-footer .team-card-actions {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
}

.team-card-footer .action-btn {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    background: rgba(51, 65, 85, 0.04);
    border: none;
    border-right: 1px solid rgba(51, 65, 85, 0.08);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #475569;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    box-shadow: none;
    font-weight: 600;
    white-space: nowrap;
}

.team-card-footer .action-btn:last-child {
    border-right: none;
}

.team-card-footer .action-btn i {
    font-size: 0.875rem;
}

.team-card-footer .action-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.team-card-footer .action-btn.alert {
    color: #dc2626;
}

.team-card-footer .action-btn.alert:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.team-card-footer .action-btn i {
    font-size: 0.8rem;
    line-height: 1;
}

/* ===================================================================
 * BODY - COMPOSIÇÃO E INFO
 * =================================================================== */

.team-card-body {
    padding: 0;
    background: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Info badge - Horário */
.team-info-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(51, 65, 85, 0.04);
    border: 1px solid rgba(51, 65, 85, 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #475569;
    margin: 12px 16px 0;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.team-info-badge i {
    color: #94a3b8;
    font-size: 0.95rem;
    min-width: 16px;
}

/* Seção de composição */
.team-card-body h4 {
    font-size: 0.7rem;
    margin: 0;
    padding: 12px 16px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    border-bottom: 1px solid rgba(51, 65, 85, 0.06);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-card-body h4 i {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* ===================================================================
 * COMPOSIÇÃO - LAYOUT LIMPO
 * =================================================================== */

.team-composition-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    flex: 1;
}

.team-composition-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(51, 65, 85, 0.06);
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    transition: all 0.15s ease;
    align-items: flex-start;
}

.team-composition-list li:last-child {
    border-bottom: none;
}

.team-composition-list li:hover {
    background: rgba(51, 65, 85, 0.02);
}

.team-composition-list li.empty-member {
    color: #94a3b8;
    text-align: center;
    padding: 16px;
    font-style: italic;
}

/* Container do Jogador - Horizontal */
.team-composition-list .member-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
    white-space: normal;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.team-composition-list .member-name::before {
    content: 'PLAYER';
    color: #7c3aed;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 3px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: none;
}

/* Container do Personagem - Horizontal */
.team-composition-list .char-played-details {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    min-width: 0;
    gap: 8px;
    width: 100%;
}

.team-composition-list .char-played-details::before {
    content: 'CHARACTER';
    color: #dc2626;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 3px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.team-composition-list .char-played-details .char-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    display: inline;
    word-break: break-word;
    white-space: normal;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
        min-width: 0;
        width: 100%;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

/* Badges de info do personagem */
.team-composition-list .char-played-details .char-info-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.team-composition-list .fa-long-arrow-alt-right {
    display: none;
}

/* ===================================================================
 * RESPONSIVE ADJUSTMENTS - MOBILE FIRST
 * =================================================================== */

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .team-card-header {
        padding: 12px;
    }

    .team-card-header::before {
        font-size: 1.3rem;
        min-width: 28px;
    }

    .team-card-header h3 {
        font-size: 1rem;
    }

    .team-composition-list li {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .team-info-badge {
        padding: 10px 12px;
        font-size: 0.8rem;
        margin: 10px 12px 0;
    }

    .team-card-body h4 {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .tabs-nav {
        gap: 20px;
        margin-bottom: 16px;
    }

    .tabs-nav .tab-link {
        padding: 8px 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team-card-header {
        padding: 12px;
        gap: 10px;
    }

    .team-card-header h3 {
        font-size: 0.95rem;
    }

    .team-card-actions {
        gap: 4px;
    }

    .team-card-header .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .team-composition-list li {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .team-composition-list .char-played-details .char-name {
        font-size: 0.85rem;
    }

    .vocation-badge,
    .level-badge {
        font-size: 0.65rem;
    }

    .tabs-nav {
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tabs-nav .tab-link {
        padding: 8px 0;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* ===================================================================
 * TABS CONTENT WRAPPER
 * =================================================================== */

.tabs-content-wrapper {
    width: 100%;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* ===================================================================
 * GRIDS E LAYOUTS
 * =================================================================== */

.teams-grid-full {
    width: 100%;
    margin-bottom: 40px;
}

.teams-grid-full h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
    border-bottom: 1px solid rgba(51, 65, 85, 0.1);
    padding-bottom: 12px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 0;
}

.teams-and-fila-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
