/* public/assets/css/pages/server.css
   Namespaced server show page styles
   Namespace root: .hsSrvShow
*/

body.server-show-page{
    /* keep consistent with other pages */
}

/* =====================================================
   Layout
   ===================================================== */

/* Uncap the Semantic UI container that wraps the page content */
body.server-show-page nav + .ui.container{
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.hsSrvShow__wrap{
    width: min(70vw, 1500px);
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.hsSrvShow__grid{
    display: grid;
    grid-template-columns: minmax(280px, 28%) 1fr;
    gap: 2rem;
    align-items: start;
}

/* Kill any Semantic UI container clamping inside the server page */
.hsSrvShow__wrap .ui.container{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 1100px){
    .hsSrvShow__wrap{ width: clamp(920px, 88vw, 1200px); }
}

@media (max-width: 960px){
    .hsSrvShow__wrap{
        width: calc(100% - 2rem);
        padding: 1rem 0 2rem;
    }
    .hsSrvShow__grid{
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* =====================================================
   Cards (shared)
   (Blur moved to ::before to keep text crisp)
   ===================================================== */

.hsSrvShow__detailsCard {
    position: sticky;
    overflow: hidden;
    isolation: isolate;

    top: 94px;
    align-self: start;

    border-radius: 14px;

    background: transparent;
    border: none;
    box-shadow: none;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hsSrvShow__mainCard{
    position: relative;
    overflow: hidden;
    isolation: isolate;

    border-radius: 14px;

    background: transparent;
    border: none;
    box-shadow: none;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hsSrvShow__detailsCard::before,
.hsSrvShow__mainCard::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: rgba(10, 15, 31, 0.78);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);

    z-index: 0;
    pointer-events: none;
}

.hsSrvShow__detailsCard > *,
.hsSrvShow__mainCard > *{
    position: relative;
    z-index: 1;
}

.hsSrvShow__mainCard{
    max-width: none;
    justify-self: stretch;
}

/* =====================================================
   Left details
   ===================================================== */

.hsSrvShow__detailsHead{
    padding: 1rem 1rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hsSrvShow__name{
    font-weight: 950;
    letter-spacing: 0.01em;
    font-size: 1.65rem;
    line-height: 1.15;
    color: rgba(90, 185, 235, 0.98);

    text-shadow:
            0 2px 16px rgba(0,0,0,0.65),
            0 0 26px rgba(40, 160, 255, 0.22);
}

.hsSrvShow__rows{ padding: 0 1rem 1rem; }

.hsSrvShow__row{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.hsSrvShow__row:first-child{ border-top: none; }

.hsSrvShow__label{
    color: rgba(255,255,255,0.80);
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(0,0,0,0.45);
}

.hsSrvShow__value{
    color: rgba(255,255,255,0.95);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    text-align: right;

    word-break: break-word;
    text-shadow: 0 1px 1px rgba(0,0,0,0.45);
}

.hsSrvShow__mono{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
}

.hsSrvShow__muted{
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

.hsSrvShow__valueStrong{
    color: rgba(255,255,255,0.92);
    font-weight: 700;
}

.hsSrvShow__value--players{
    font-variant-numeric: tabular-nums;
}
.hsSrvShow__value--players .hsSrvShow__muted{ font-weight: 700; }

.hsSrvShow__unknownPill{
    display: inline-flex;
    align-items: center;

    padding: 0.26rem 0.6rem;
    border-radius: 999px;

    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);

    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Left info card links */
:root{
    --hsSrvShow-link: rgba(120, 190, 255, 0.95);
    --hsSrvShow-link-hover: rgba(160, 210, 255, 1);
}

body.server-show-page .hsSrvShow__link{
    color: var(--hsSrvShow-link);
    text-decoration: none;
    font-weight: 500;
}
body.server-show-page .hsSrvShow__link:hover{
    color: var(--hsSrvShow-link-hover);
    text-decoration: underline;
}
body.server-show-page .hsSrvShow__link:visited{
    color: var(--hsSrvShow-link);
}

/* Tags */
.hsSrvShow__tags{
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hsSrvShow__tagPill{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #7c5cff;
    border: 1px solid rgba(255,255,255,0.22);
    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;

    padding: 0.42rem 0.8rem;
    border-radius: 999px;

    letter-spacing: 0.02em;

    box-shadow: none;
    text-shadow: none;
}

.hsSrvShow__tagPill:hover{
    background: #6f50f2;
}

/* Status pill */
.hsSrvShow__status{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.28rem 0.6rem;
    border-radius: 999px;

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;

    border: 1px solid rgba(255, 255, 255, 0.10);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hsSrvShow__status--online{
    border-color: rgba(170, 255, 0, 0.35);
    background: rgba(170, 255, 0, 0.10);
    color: rgba(170, 255, 0, 0.92);
}

.hsSrvShow__status--pending{
    border-color: rgba(255, 208, 0, 0.35);
    background: rgba(255, 208, 0, 0.10);
    color: rgba(255, 208, 0, 0.95);
}

.hsSrvShow__status--offline{
    border-color: rgba(255, 80, 80, 0.35);
    background: rgba(255, 80, 80, 0.10);
    color: rgba(255, 80, 80, 0.95);
}

/* =====================================================
   Right main
   ===================================================== */

.hsSrvShow__banner{
    width: 100%;
    aspect-ratio: 3 / 1;
    background: rgba(255, 255, 255, 0.04);
}

.hsSrvShow__banner img,
.hsSrvShow__banner video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hsSrvShow__actions{
    padding: 1rem 1rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.10);

    position: relative;
    z-index: 2;
}

.hsSrvShow__btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    height: 48px;
    padding: 0 1.25rem;

    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);

    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hsSrvShow__btn:hover{ background: rgba(255, 255, 255, 0.07); }

.hsSrvShow__btn--copy{
    border-color: rgba(255, 255, 255, 0.16);
}

.hsSrvShow__btn--vote{
    border-color: rgba(170, 255, 0, 0.35);
    background: rgba(170, 255, 0, 0.10);
    color: rgba(170, 255, 0, 0.92);
}
.hsSrvShow__btn--vote:hover{
    background: rgba(170, 255, 0, 0.14);
}

.hsSrvShow__desc{
    padding: 1rem 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    font-size: 0.98rem;

    width: 100%;
    max-width: none !important;

    text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

/* Markdown links */
body.server-show-page .hsSrvShow__desc a{
    color: var(--hsSrvShow-link);
    text-decoration: underline;
}
body.server-show-page .hsSrvShow__desc a:hover{
    color: var(--hsSrvShow-link-hover);
}
body.server-show-page .hsSrvShow__desc a:visited{
    color: var(--hsSrvShow-link);
}

/* Markdown spacing */
body.server-show-page .hsSrvShow__desc h1,
body.server-show-page .hsSrvShow__desc h2,
body.server-show-page .hsSrvShow__desc h3,
body.server-show-page .hsSrvShow__desc h4,
body.server-show-page .hsSrvShow__desc h5,
body.server-show-page .hsSrvShow__desc h6{
    margin: 0.75rem 0 0.5rem;
    line-height: 1.25;
}

body.server-show-page .hsSrvShow__desc p{ margin: 0 0 0.9rem; }

body.server-show-page .hsSrvShow__desc ul,
body.server-show-page .hsSrvShow__desc ol{
    margin: 0 0 0.9rem;
    padding-left: 1.25rem;
}

body.server-show-page .hsSrvShow__desc blockquote{
    margin: 0 0 0.9rem;
    padding: 0.6rem 0.9rem;
    border-left: 3px solid rgba(59, 130, 246, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

body.server-show-page .hsSrvShow__desc code{
    padding: 0.12rem 0.35rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.10);
}

body.server-show-page .hsSrvShow__desc pre{
    margin: 0 0 1rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.10);
    overflow: auto;
}

body.server-show-page .hsSrvShow__desc pre code{
    padding: 0;
    border: none;
    background: transparent;
}

/* =====================================================
   Vote modal (namespaced to hsSrvShow)
   ===================================================== */

body.modalOpen{ overflow: hidden; }

.hsSrvShow__voteOverlay{
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;

    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.hsSrvShow__voteOverlay.isOpen{
    opacity: 1;
    pointer-events: auto;
}

.hsSrvShow__voteOverlay::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hsSrvShow__voteCard{
    position: relative;
    width: min(520px, 92vw);
    border-radius: 14px;

    background: rgba(10, 15, 31, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);

    padding: 1rem 1rem 1.1rem;
}

.hsSrvShow__voteTitle{
    font-size: 1.2rem;
    font-weight: 900;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.35rem;
}

.hsSrvShow__voteDesc{
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.9rem;
}

.hsSrvShow__voteForm{ display: grid; gap: 0.5rem; }

.hsSrvShow__voteLabel{
    color: rgba(255,255,255,0.80);
    font-weight: 800;
    font-size: 0.95rem;
}

.hsSrvShow__voteInput{
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.92);
    padding: 0 0.9rem;
    font-weight: 700;
    outline: none;
}

.hsSrvShow__voteInput:focus{
    border-color: rgba(120, 190, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(120,190,255,0.15);
}

.hsSrvShow__voteHint{
    margin-top: 0.15rem;
    margin-bottom: 0.25rem;
}

.hsSrvShow__voteLink{
    color: rgba(120, 190, 255, 0.95);
    text-decoration: underline;
    font-weight: 700;
}

.hsSrvShow__voteActions{
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

/* Optional: a subtle "cancel" look using existing button base */
.hsSrvShow__btn--ghost{
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.85);
}

/* Keeps your existing "loading" affordance */
#srvVoteBtn.isLoading{
    opacity: 0.75;
    cursor: progress;
}

.hsSrvShow__desc table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.hsSrvShow__desc th,
.hsSrvShow__desc td {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.hsSrvShow__desc th {
    background: rgba(255,255,255,0.08);
    font-weight: 600;
}

.hsSrvShow__desc tr:nth-child(even) td {
    background: rgba(255,255,255,0.04);
}

.hsSrvShow__desc blockquote {
    border-left: 4px solid rgba(255,255,255,0.2);
    padding-left: 1rem;
    margin: 1rem 0;
    color: #ccc;
    font-style: italic;
}

.hsSrvShow__desc hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 1.5rem 0;
}

.hsSrvShow__desc code {
    background: rgba(255,255,255,0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.hsSrvShow__desc pre code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
}
