/* ============================================================
   CLASS CHANGES  —  per-class accordion for the Server Info page
   ============================================================ */
.cc-accordion { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 10px; }

/* class-type group divider */
.cc-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-family: "Oxanium", sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--role);
}
.cc-group:first-child { margin-top: 0; }
.cc-group i { font-size: 13px; }
.cc-group::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--role) 45%, transparent), transparent);
}

.cc-item {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    overflow: hidden;
    transition: border-color .16s ease;
}
.cc-item.open { border-color: rgba(209, 155, 37, .45); }

.cc-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: "Oxanium", sans-serif;
    transition: background .16s ease;
}
.cc-head:hover { background: rgba(255, 255, 255, .03); }

.cc-role {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--role) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--role) 45%, transparent);
    color: var(--role);
    font-size: 15px;
    flex: 0 0 auto;
}
.cc-name { font-weight: 700; font-size: 16px; color: #e9e9e9; flex: 1; }
.cc-item.open .cc-name { color: #fff; }
.cc-role-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--role); opacity: .85; }
.cc-count {
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 20px;
    background: rgba(209, 155, 37, .16);
    border: 1px solid rgba(209, 155, 37, .35);
    color: #e0b34e;
    font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.cc-arrow { color: #8f8f8f; transition: transform .25s ease; }
.cc-item.open .cc-arrow { transform: rotate(180deg); color: var(--secondary-color, #d19b25); }

.cc-panel { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.cc-item.open .cc-panel { max-height: 800px; }
.cc-panel-inner { padding: 2px 18px 16px; display: flex; flex-direction: column; gap: 9px; }

.cc-change {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 8px;
}
.cc-change-icon {
    width: 34px; height: 34px; border-radius: 6px;
    background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .08);
    flex: 0 0 auto; object-fit: contain;
}
.cc-change-info {
    width: 34px; height: 34px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(209, 155, 37, .14); border: 1px solid rgba(209, 155, 37, .3);
    color: var(--secondary-color, #d19b25); font-size: 15px;
    flex: 0 0 auto;
}
.cc-change-info.cc-down { background: rgba(224, 56, 79, .14); border-color: rgba(224, 56, 79, .35); color: #ff7183; }
.cc-tag {
    display: inline-block;
    font-family: "Oxanium", sans-serif;
    font-size: 10px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 20px;
    vertical-align: middle; margin-left: 3px; white-space: nowrap;
}
.cc-tag-oly  { background: rgba(180, 106, 229, .16); color: #c79bf0; border: 1px solid rgba(180, 106, 229, .4); }
.cc-tag-open { background: rgba(79, 143, 224, .16); color: #8bb8ee; border: 1px solid rgba(79, 143, 224, .4); }

.cc-change-body { display: flex; flex-direction: column; gap: 0; }
.cc-change-name { font-family: "Oxanium", sans-serif; font-weight: 700; font-size: 14px; line-height: 1.35; color: #fff; }
.cc-change-text { color: #c2c2c6; font-size: 14px; line-height: 1.45; }
.cc-change-text strong { color: #fff; }
.cc-empty { color: #8f8f8f; font-size: 13.5px; font-style: italic; padding: 4px 2px; }

@media (max-width: 575px) {
    .cc-role-label { display: none; }
    .cc-head { gap: 10px; padding: 12px 13px; }
}
