/* ========================================
   ROSTER V2 — CLEAN ROW LAYOUT
   ======================================== */

/* WoW Class Colors */
:root {
    --c-warrior: #C79C6E;
    --c-paladin: #F58CBA;
    --c-hunter: #ABD473;
    --c-rogue: #FFF569;
    --c-priest: #FFFFFF;
    --c-deathknight: #C41F3B;
    --c-shaman: #0070DE;
    --c-mage: #69CCF0;
    --c-warlock: #9482C9;
    --c-monk: #00FF96;
    --c-druid: #FF7D0A;
    --c-demonhunter: #A330C9;
    --c-evoker: #33937F;
}

/* ---- Hero ---- */
.roster-hero {
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.roster-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.roster-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.8rem;
}

.roster-overview {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.overview-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-tank   { background: #C41F3B; box-shadow: 0 0 6px #C41F3B88; }
.dot-heal   { background: #00FF96; box-shadow: 0 0 6px #00FF9688; }
.dot-melee  { background: #C79C6E; box-shadow: 0 0 6px #C79C6E88; }
.dot-range  { background: #69CCF0; box-shadow: 0 0 6px #69CCF088; }

.pill-recruit {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.25);
    color: var(--warning);
}

.pill-closed {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

/* ---- Roster Wrap ---- */
.roster-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ---- Role Group ---- */
.role-group {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(20, 25, 35, 0.5);
}

/* ---- Role Bar (Header) ---- */
.role-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.4rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.role-bar:hover {
    background: rgba(255,255,255,0.03);
}

.role-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-bar-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.role-bar-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-bar-count {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.role-bar-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.status-full {
    color: var(--success);
    background: rgba(0,255,159,0.1);
}

.status-recruit {
    color: var(--warning);
    background: rgba(255,165,0,0.1);
}

/* Role bar accent lines */
.role-bar-tank   { border-left: 3px solid #C41F3B; }
.role-bar-heal   { border-left: 3px solid #00FF96; }
.role-bar-melee  { border-left: 3px solid #C79C6E; }
.role-bar-range  { border-left: 3px solid #69CCF0; }

/* Chevron */
.role-bar-chevron {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.role-body-open ~ .role-bar .role-bar-chevron,
.role-group:has(.role-body-open) .role-bar-chevron {
    transform: rotate(180deg);
}

/* ---- Role Body (Collapsible) ---- */
.role-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.role-body-open {
    max-height: none;
}

/* ---- Player Row ---- */
.player-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
    min-height: 52px;
}

.player-row:hover {
    background: rgba(255,255,255,0.025);
}

/* Class color accent — subtle left glow via name color */
.class-warrior    .pr-name { color: var(--c-warrior); }
.class-paladin    .pr-name { color: var(--c-paladin); }
.class-hunter     .pr-name { color: var(--c-hunter); }
.class-rogue      .pr-name { color: var(--c-rogue); }
.class-priest     .pr-name { color: var(--c-priest); }
.class-deathknight .pr-name { color: var(--c-deathknight); }
.class-shaman     .pr-name { color: var(--c-shaman); }
.class-mage       .pr-name { color: var(--c-mage); }
.class-warlock    .pr-name { color: var(--c-warlock); }
.class-monk       .pr-name { color: var(--c-monk); }
.class-druid      .pr-name { color: var(--c-druid); }
.class-demonhunter .pr-name { color: var(--c-demonhunter); }
.class-evoker     .pr-name { color: var(--c-evoker); }



/* Icon */
.pr-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.pr-icon img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: block;
}

/* Info */
.pr-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.pr-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges */
.pr-badge {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.pr-badge-gm {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.pr-badge-officer {
    color: var(--primary);
    background: rgba(0, 217, 179, 0.1);
    border: 1px solid rgba(0, 217, 179, 0.25);
}

.pr-badge-role {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Score */
.pr-score {
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 50px;
    text-align: right;
}

/* Links */
.pr-links {
    flex-shrink: 0;
    display: flex;
    gap: 0.35rem;
}

.pr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s;
    letter-spacing: 0.3px;
}

.pr-link-rio {
    color: #ffa500;
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.pr-link-rio:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: #ffa500;
}

.pr-link-wcl {
    color: #a29bfe;
    background: rgba(162, 155, 254, 0.08);
    border: 1px solid rgba(162, 155, 254, 0.2);
}

.pr-link-wcl:hover {
    background: rgba(162, 155, 254, 0.2);
    border-color: #a29bfe;
}

/* ---- Empty Slot Row ---- */
.row-empty {
    opacity: 0.5;
    border-top: 1px dashed rgba(255,255,255,0.08);
}

.row-empty:hover {
    opacity: 0.8;
}

.empty-slot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px dashed rgba(255,255,255,0.15);
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 300;
}

.empty-name {
    color: var(--text-muted) !important;
    font-style: italic;
}

.pr-recruit-btn {
    flex-shrink: 0;
    padding: 0.25rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    color: var(--bg-dark);
    background: var(--warning);
    transition: all 0.15s;
    letter-spacing: 0.3px;
}

.pr-recruit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .roster-title { font-size: 2rem; }
    .roster-wrap { padding: 0 0.75rem 3rem; }
    
    .role-bar { padding: 0.75rem 1rem; }
    .role-bar-name { font-size: 0.85rem; }
    
    .player-row {
        padding: 0.5rem 0.8rem;
        gap: 0.6rem;
        flex-wrap: wrap;
    }
    
    .pr-score { display: none; }
    
    .pr-links {
        margin-left: auto;
    }
    
    .pr-detail { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .overview-pill { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
    .role-bar-status { display: none; }
    .pr-badge { font-size: 0.55rem; }
}
