/* ============================================
   SERVER INFO PAGE STYLES
   ============================================ */

/* Make main-content scrollable for server-info */
body.server-info-page .main-content {
    overflow-y: auto;
    height: calc(var(--page-height) - var(--header-height));
}

:root {
    --si-bg: #060606;
    --si-panel: rgba(12, 12, 12, .88);
    --si-panel-2: rgba(18, 16, 12, .94);
    --si-line: rgba(217, 174, 92, .28);
    --si-line-soft: rgba(255, 235, 194, .075);
    --si-gold: #d9ae5c;
    --si-gold-2: #ffe0a3;
    --si-bronze: #8f6631;
    --si-text: #f4efe4;
    --si-muted: #b5aa97;
    --si-muted-2: #736a5b;
    --si-green: #8fd694;
    --si-blue: #6ec6ff;
    --si-red: #e85d4a;
    --si-radius: 18px;
}

/* Wrap */
.si-wrap {
    position: relative;
    padding: 0 16px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Grid */
.si-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* ---- SIDEBAR ---- */
.si-side {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--si-gold) transparent;
}

.si-side-card {
    background: var(--si-panel-2);
    border: 1px solid var(--si-line);
    border-radius: var(--si-radius);
    padding: 20px 0;
}

.si-side-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--si-gold);
    padding: 0 20px 14px;
    border-bottom: 1px solid var(--si-line-soft);
    margin-bottom: 6px;
}

/* Nav groups */
.si-nav-group { overflow: hidden; }

.si-cat-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--si-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    cursor: pointer;
    transition: color .2s;
}
.si-cat-toggle span { flex: 1; text-align: left; }
.si-cat-toggle i {
    width: 10px; height: 10px;
    border-right: 1.5px solid var(--si-muted-2);
    border-bottom: 1.5px solid var(--si-muted-2);
    transform: rotate(45deg);
    transition: transform .25s;
    flex-shrink: 0;
}
.si-nav-group.is-open .si-cat-toggle { color: var(--si-gold); }
.si-nav-group.is-open .si-cat-toggle i { transform: rotate(-135deg); }

.si-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.si-nav-group.is-open .si-sub-list {
    max-height: 600px;
}

.si-sub-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--si-muted-2);
    font-size: 12.5px;
    padding: 7px 20px 7px 32px;
    cursor: pointer;
    transition: color .2s, background .2s;
    border-left: 2px solid transparent;
}
.si-sub-btn:hover { color: var(--si-text); background: var(--si-line-soft); }
.si-sub-btn.active {
    color: var(--si-gold);
    border-left-color: var(--si-gold);
    background: rgba(217, 174, 92, .06);
}

/* ---- CONTENT ---- */
.si-content {
    min-width: 0;
}

/* Section */
.si-section {
    background: var(--si-panel);
    border: 1px solid var(--si-line);
    border-radius: var(--si-radius);
    padding: 28px 30px;
    margin-bottom: 20px;
}

.si-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--si-gold);
    margin-bottom: 14px;
}

.si-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--si-bronze);
    margin-bottom: 6px;
}

.si-desc {
    color: var(--si-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Icon cells */
.si-icon {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.si-icon-sm {
    width: 24px;
    height: 24px;
}
.si-feat-table td.si-icon-cell {
    width: 40px;
    padding: 8px;
    vertical-align: middle;
}
.si-feat-table td.si-name-cell {
    vertical-align: middle;
}

/* Rates block */
.si-rates-block {
    margin-bottom: 20px;
}
.si-rates-block-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--si-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--si-line-soft);
}
.si-rate-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--si-line-soft);
}
.si-rate-row:last-child { border-bottom: none; }
.si-rate-name {
    flex: 1;
    font-size: 13px;
    color: var(--si-text);
}
.si-rate-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--si-green);
    min-width: 50px;
    text-align: right;
}

/* Hero section */
.si-hero {
    background: var(--si-panel-2);
    position: relative;
    overflow: hidden;
}
.si-hero-box { position: relative; z-index: 1; }
.si-hero-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--si-text);
    margin-bottom: 2px;
}
.si-hero-time {
    font-size: 12px;
    color: var(--si-gold);
    margin-bottom: 16px;
}
.si-hero-text p {
    color: var(--si-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 10px;
}

/* Lists */
.si-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.si-list li {
    position: relative;
    padding: 6px 0 6px 16px;
    color: var(--si-muted);
    font-size: 13.5px;
    line-height: 1.6;
}
.si-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--si-gold);
}

/* Tables */
.si-feat-table {
    width: 100%;
    border-collapse: collapse;
}
.si-feat-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--si-gold);
    text-transform: uppercase;
    padding: 10px 12px;
    border-bottom: 1px solid var(--si-line);
}
.si-feat-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--si-muted);
    border-top: 1px solid var(--si-line-soft);
    line-height: 1.5;
}
.si-feat-table tr:hover td { background: rgba(217, 174, 92, .04); }

/* Rates */
.si-rates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.si-rates-table-wrap {
    background: rgba(20, 20, 20, .85);
    border: 1px solid var(--si-line);
    border-radius: 12px;
    overflow: hidden;
}
.si-rates-table-title {
    background: linear-gradient(90deg, #3a250b, #7a5018, #3a250b);
    color: var(--si-gold-2);
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
.si-rates-table {
    width: 100%;
    border-collapse: collapse;
}
.si-rates-table th {
    background: rgba(255, 255, 255, .06);
    color: var(--si-gold);
    padding: 10px;
    font-size: 13px;
    text-transform: uppercase;
}
.si-rates-table td {
    padding: 9px 10px;
    text-align: center;
    border-top: 1px solid var(--si-line-soft);
    color: var(--si-text);
    font-size: 13px;
}
.si-rates-table tr:hover td { background: rgba(217, 174, 92, .06); }
.si-rate-val { color: var(--si-green); font-weight: 700; }
.si-bonus-val { color: var(--si-blue); font-weight: 700; }

/* Note */
.si-note {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(217, 174, 92, .06);
    border-left: 3px solid var(--si-gold);
    border-radius: 0 8px 8px 0;
    color: var(--si-gold);
    font-size: 13px;
    line-height: 1.6;
}

/* Epic table */
.si-epic-name { color: var(--si-red); font-weight: 700; }
.si-epic-table tr:hover td { background: transparent; }
.si-epic-row { cursor: pointer; transition: background 0.2s; }
.si-epic-row:hover td { background: rgba(217, 174, 92, 0.08); }
.si-epic-row.is-open td { background: rgba(217, 174, 92, 0.06); border-bottom-color: transparent; }
.si-epic-expand { display: none; }
.si-epic-expand.is-open { display: table-row; }
.si-epic-expand td {
    padding: 0 12px 16px 12px;
    background: rgba(20, 20, 20, 0.6);
    border-top: none;
    font-size: 13px;
    line-height: 1.8;
    color: var(--si-muted);
}
.si-epic-expand-inner {
    padding: 12px 0 0 0;
    border-top: 1px dashed rgba(217, 174, 92, 0.2);
}
.si-epic-expand-inner br + br {
    margin-top: 4px;
}
.si-epic-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--si-gold);
    opacity: 0.7;
}
.si-epic-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--si-gold);
    transition: transform 0.2s;
}
.si-epic-row.is-open .si-epic-toggle::after {
    transform: rotate(180deg);
}

/* ---- MOBILE CATEGORY BAR ---- */
.si-mobile-cats {
    display: none;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.si-mobile-cats::-webkit-scrollbar { display: none; }

.si-mob-btn {
    flex-shrink: 0;
    background: var(--si-panel);
    border: 1px solid var(--si-line);
    border-radius: 20px;
    color: var(--si-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.si-mob-btn.active,
.si-mob-btn:hover {
    background: var(--si-gold);
    color: #0a0907;
    border-color: var(--si-gold);
}

/* ---- TO TOP ---- */
.si-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--si-gold);
    color: #0a0907;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s;
    z-index: 100;
}
.si-to-top:hover { opacity: 1; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
    .si-grid {
        grid-template-columns: 1fr;
    }
    .si-side {
        display: none;
    }
    .si-mobile-cats {
        display: flex;
    }
    .si-section {
        padding: 20px 18px;
    }
    .si-rates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .si-wrap { padding: 0 10px 30px; }
    .si-section { padding: 16px 14px; }
    .si-section-title { font-size: 17px; }
    .si-feat-table th,
    .si-feat-table td { padding: 8px 8px; font-size: 12px; }
}
