/* =========================================================
   PVP Statistics module — Spyral theme integration
   ========================================================= */

.pvp-container,
.pvp-container *,
.pvp-container *::before,
.pvp-container *::after {
    box-sizing: border-box;
}

.pvp-container {
    color: #d0c8b8;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    text-shadow: 0 1px 1px #000;
}

/* ---------- Header & Tabs ---------- */

.pvp-header {
    margin-bottom: 14px;
}

.pvp-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    border: 1px solid #131316;
    flex-wrap: wrap;
}

.pvp-tab {
    font-family: calibrib, Verdana, sans-serif;
    font-size: 12px;
    color: #848177;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 250ms;
    text-shadow: 0 1px 1px #000;
    outline: none;
}

.pvp-tab:hover {
    color: #d0c8b8;
    background: rgba(160, 115, 50, 0.12);
    border-color: #2a2a2e;
}

.pvp-tab.active {
    color: #f6c85c;
    background: rgba(160, 115, 50, 0.2);
    border-color: #A07332;
    box-shadow: 0 0 6px rgba(160, 115, 50, 0.25);
}

/* ---------- Realm Selector ---------- */

.pvp-realm-select {
    margin-left: auto;
    padding: 5px 10px;
    font-family: MuseoSans, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #4f5356;
    background: url(../../../themes/Spyral/images/input_bg.png) repeat-x;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #28333a, inset 0 0 4px rgba(0,0,0,.5), inset 0 1px 1px rgba(0,0,0,.5), 0 0 5px rgba(0,0,0,1);
    text-shadow: 1px 1px 1px rgba(0,0,0,.6);
    transition: all 300ms;
    min-width: 160px;
}

.pvp-realm-select:focus {
    color: #f6c85c;
    box-shadow: 0 0 0 1px #3d4f5d, inset 0 0 4px rgba(0,0,0,.5), inset 0 1px 1px rgba(0,0,0,.5), 0 0 5px rgba(0,0,0,1);
    outline: none;
}

/* ---------- Table Wrapper ---------- */

.pvp-table-wrap {
    overflow-x: auto;
    border: 1px solid #131316;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.15);
}

/* ---------- Table ---------- */

.pvp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pvp-table thead th {
    font-family: calibrib, Verdana, sans-serif;
    font-size: 11px;
    font-weight: normal;
    color: #A07332;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border-bottom: 1px solid #1e1e22;
    background: rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-align: left;
}

.pvp-table tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(30, 30, 34, 0.5);
    color: #d0c8b8;
    vertical-align: middle;
}

.pvp-table tbody tr:hover {
    background: rgba(160, 115, 50, 0.06);
}

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

/* ---------- Special Cells ---------- */

.pvp-table tbody td a {
    color: #ffc437;
    text-decoration: none;
    transition: color 200ms;
}

.pvp-table tbody td a:hover {
    color: #f6c85c;
    text-decoration: underline;
}

.pvp-kills-count {
    font-family: calibrib, Verdana, sans-serif;
    color: #f9b52d !important;
    font-weight: bold;
}

.pvp-team-name {
    font-family: calibrib, Verdana, sans-serif;
    color: #d0a53d !important;
}

.pvp-rating {
    font-family: calibrib, Verdana, sans-serif;
    color: #f9b52d !important;
    font-weight: bold;
}

/* ---------- Members ---------- */

.pvp-members {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    align-items: center;
}

.pvp-member-icon {
    display: inline-block;
    opacity: 0.85;
    transition: opacity 200ms, transform 200ms;
}

.pvp-member-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

.pvp-member-icon img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* ---------- Faction Icon ---------- */

.pvp-faction-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* ---------- Empty State ---------- */

.pvp-empty {
    text-align: center;
    padding: 30px 16px;
    color: #4e5253;
    font-style: italic;
    font-size: 13px;
}

/* ---------- Rank column highlight ---------- */

.pvp-table tbody tr:nth-child(1) td:first-child {
    color: #f6c85c;
    font-weight: bold;
}

.pvp-table tbody tr:nth-child(2) td:first-child {
    color: #c0b8a8;
    font-weight: bold;
}

.pvp-table tbody tr:nth-child(3) td:first-child {
    color: #cd7f32;
    font-weight: bold;
}
