/* Section Separator */
.separator-line {
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--color-red);
}

/* Server Highlighting Effect */
.server-highlight {
    animation: serverHighlight 5s ease-in-out;
    border: 2px solid var(--color-red) !important;
    box-shadow: 0 0 20px rgba(255, 69, 69, 0.5) !important;
}

@keyframes serverHighlight {
    0% {
        box-shadow: 0 0 20px rgba(255, 69, 69, 0.8);
        border-color: var(--color-red);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 69, 69, 0.6);
        border-color: var(--color-red);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 69, 69, 0.3);
        border-color: rgba(255, 69, 69, 0.5);
    }
}

.separator-line:before,
.separator-line:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
}

.separator-line:before {
    top: -8px;
    left: -8px;
    background: 
        /* Top-left inverted L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 0/2px 8px,
        linear-gradient(var(--color-red), var(--color-red)) 0 0/8px 2px,
        /* Bottom-left inverted L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 100%/2px 8px,
        linear-gradient(var(--color-red), var(--color-red)) 0 100%/8px 2px;
    background-repeat: no-repeat;
}

.separator-line:after {
    top: -8px;
    right: -8px;
    background: 
        /* Top-right inverted L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 0/2px 8px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 0/8px 2px,
        /* Bottom-right inverted L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/2px 8px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/8px 2px;
    background-repeat: no-repeat;
}

/* Server Browser Section */
.server-browser {
    padding: 0 4rem 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-browser .separator-line {
    margin: 0;
    margin-bottom: 4rem;
}

.server-browser-title {
    font-family: 'BankGothic', 'Special Gothic Expanded One', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.total-players {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    gap: 0.5rem;
}

.total-players-count {
    font-family: 'Oxanium', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-red);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    line-height: 1;
}

.total-players-label {
    font-family: 'Oxanium', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pc-steam-notice {
    font-family: 'Oxanium', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-red);
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; /* Hidden on desktop by default */
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
}

.server-list {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.server-card {
    background: rgba(16, 16, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100px;
}

.server-card:hover {
    background: rgba(24, 24, 24, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.server-card.offline {
    opacity: 0.6;
    background: rgba(8, 8, 8, 0.9);
}

.server-card.offline:hover {
    background: rgba(12, 12, 12, 0.9);
}

.server-status-indicator {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    flex-shrink: 0;
    z-index: 10;
    pointer-events: none;
}

.server-info-left {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    flex: 1;
}

.server-status-indicator.offline {
    background: var(--color-gray);
    box-shadow: 0 0 8px rgba(74, 74, 74, 0.6);
}

.server-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
}

.server-name {
    font-family: 'Oxanium', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    margin: 0;
}

.server-map {
    font-family: 'Oxanium', monospace;
    font-size: 1.1rem;
    color: var(--color-light-gray);
    margin: 0;
}

.server-info-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.server-players {
    font-family: 'Oxanium', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: right;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.player-icon {
    width: 1.4rem;
    height: 1.4rem;
    opacity: 0.7;
    filter: brightness(0) invert(1); /* Make SVG white */
    flex-shrink: 0;
}

.server-join-btn {
    font-family: 'Oxanium', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    background: #181818;
    border: 2px solid transparent;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.server-join-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: 
        /* Top-left L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 0/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 0 0/1.5px 6px,
        /* Top-right L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 0/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 0/1.5px 6px,
        /* Bottom-left L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 100%/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 0 100%/1.5px 6px,
        /* Bottom-right L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/1.5px 6px;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-join-btn:hover {
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
    border-radius: 0;
}

.server-join-btn:hover::before {
    opacity: 1;
}

.server-join-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Server Group Styles */
.server-group {
    width: 100%;
}

.server-group-main {
    background: rgba(16, 16, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100px;
    cursor: pointer;
}

.server-group-main:hover {
    background: rgba(24, 24, 24, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.server-group-info-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
}

.server-group-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.server-group-name {
    font-family: 'Oxanium', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    margin: 0;
}

.server-group-subtitle {
    font-family: 'Oxanium', monospace;
    font-size: 1.1rem;
    color: var(--color-light-gray);
    margin: 0;
}

.server-group-info-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.server-group-players {
    font-family: 'Oxanium', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: right;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.server-expand-btn {
    font-family: 'Oxanium', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    background: #181818;
    border: 2px solid transparent;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-expand-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: 
        /* Top-left L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 0/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 0 0/1.5px 6px,
        /* Top-right L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 0/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 0/1.5px 6px,
        /* Bottom-left L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 100%/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 0 100%/1.5px 6px,
        /* Bottom-right L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/1.5px 6px;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-expand-btn:hover {
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
    border-radius: 0;
}

.server-expand-btn:hover::before {
    opacity: 1;
}

.expand-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.server-expand-btn.expanded .expand-arrow {
    transform: rotate(180deg);
}

/* Sub-servers container */
.server-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-sub-list.expanded {
    max-height: 1000px;
    padding: 1rem 0 0 0;
}

.server-sub-card {
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 80px;
    width: calc(100% - 2rem);
    margin: 0 auto;
}

.server-sub-card:hover {
    background: rgba(20, 20, 20, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.server-sub-card.offline {
    opacity: 0.6;
    background: rgba(4, 4, 4, 0.9);
}

.server-sub-card.offline:hover {
    background: rgba(8, 8, 8, 0.9);
}

.server-sub-status-indicator {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    flex-shrink: 0;
    z-index: 10;
    pointer-events: none;
}

.server-sub-info-left {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex: 1;
}

.server-sub-status-indicator.offline {
    background: var(--color-gray);
    box-shadow: 0 0 6px rgba(74, 74, 74, 0.6);
}

.server-sub-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    flex: 1;
}

.server-sub-name {
    font-family: 'Oxanium', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    margin: 0;
}

.server-sub-map {
    font-family: 'Oxanium', monospace;
    font-size: 0.9rem;
    color: var(--color-light-gray);
    margin: 0;
}

.server-sub-info-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.server-sub-players {
    font-family: 'Oxanium', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: right;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.server-sub-join-btn {
    font-family: 'Oxanium', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-white);
    background: #181818;
    border: 2px solid transparent;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.server-sub-join-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: 
        /* Top-left L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 0/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 0 0/1.5px 6px,
        /* Top-right L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 0/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 0/1.5px 6px,
        /* Bottom-left L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 100%/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 0 100%/1.5px 6px,
        /* Bottom-right L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/6px 1.5px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/1.5px 6px;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-sub-join-btn:hover {
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
    border-radius: 0;
}

.server-sub-join-btn:hover::before {
    opacity: 1;
}

.server-sub-join-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.loading-text {
    font-family: 'Oxanium', monospace;
    font-size: 1.1rem;
    color: var(--color-light-gray);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Server Background Images */
.server-card.bg-homigrad::before,
.server-group-main.bg-homigrad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/gamemodes/homigrad.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 80%, 
        rgba(0, 0, 0, 1) 100%),
        url('../assets/gamemodes/homigrad.png');
    background-size: auto 100%, cover;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
}

.server-card.bg-horde::before,
.server-group-main.bg-horde::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/gamemodes/horde.jpg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 80%, 
        rgba(0, 0, 0, 1) 100%),
        url('../assets/gamemodes/horde.jpg');
    background-size: auto 100%, cover;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
}

.server-card.bg-sandbox::before,
.server-group-main.bg-sandbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/gamemodes/sandbox.jpg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 80%, 
        rgba(0, 0, 0, 1) 100%),
        url('../assets/gamemodes/sandbox.jpg');
    background-size: auto 100%, cover;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
}

/* Sub-server card background images */
.server-sub-card.bg-homigrad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 80%, 
        rgba(0, 0, 0, 1) 100%),
        url('../assets/gamemodes/homigrad.png');
    background-size: auto 100%, cover;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.12;
    z-index: 1;
}

.server-sub-card.bg-horde::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 80%, 
        rgba(0, 0, 0, 1) 100%),
        url('../assets/gamemodes/horde.jpg');
    background-size: auto 100%, cover;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.12;
    z-index: 1;
}

.server-sub-card.bg-sandbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 80%, 
        rgba(0, 0, 0, 1) 100%),
        url('../assets/gamemodes/sandbox.jpg');
    background-size: auto 100%, cover;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.12;
    z-index: 1;
}

.server-card.bg-mapsweepers::before,
.server-group-main.bg-mapsweepers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 80%, 
        rgba(0, 0, 0, 1) 100%),
        url('../assets/gamemodes/mapsweepers.png');
    background-size: auto 100%, cover;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.server-sub-card.bg-mapsweepers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.9) 80%, 
        rgba(0, 0, 0, 1) 100%),
        url('../assets/gamemodes/mapsweepers.png');
    background-size: auto 100%, cover;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.12;
    z-index: 1;
}

/* Ensure content is above background */
.server-card > *,
.server-group-main > *,
.server-sub-card > * {
    position: relative;
    z-index: 3;
}

/* Partner Server Container Styling - No special outline */

/* PC Only Tag */
.pc-only-tag-desktop {
    position: absolute !important;
    bottom: 2rem !important;
    left: 2rem !important;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Oxanium', monospace;
    font-size: 0.6rem;
    font-weight: 400;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 12 !important;
    pointer-events: none;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    display: none; /* Hidden on desktop by default */
    align-items: center;
    min-height: 1rem;
    opacity: 0.7;
}

.pc-only-tag-mobile {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Oxanium', monospace;
    font-size: 0.6rem;
    font-weight: 400;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    pointer-events: none;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    display: none; /* Hidden on desktop by default */
    align-items: center;
    min-height: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Partner Label */
.partner-label {
    position: absolute !important;
    top: -8px !important;
    left: -8px !important;
    background: #8B0000;
    color: var(--color-white);
    font-family: 'Oxanium', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    padding-left: 0.5rem; /* Reduced padding since icon provides the spacing */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 15 !important;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    border: 2px solid #660000;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.5rem;
}

.partner-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    filter: brightness(0) invert(1); /* Make the icon white */
}

/* Additional Buttons for Higher Resolutions */
.workshop-btn {
    font-family: 'Oxanium', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}

.workshop-btn:hover {
    color: var(--color-white);
    background: #333333;
    backdrop-filter: none;
    transform: translateY(-1px);
}

.learn-more-btn {
    font-family: 'Oxanium', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.learn-more-btn:hover {
    color: var(--color-white);
    background: #2c2c2c;
    backdrop-filter: none;
    transform: translateY(-1px);
}

/* ZGRAD Logo Piece Next to Text */
.zgrad-logo-piece {
    height: 2rem;
    width: auto;
    margin-left: 0.5rem;
    opacity: 0.8;
}

/* NPCZ Logo Piece Next to Text */
.npcz-logo-piece {
    height: 2rem;
    width: auto;
    margin-left: 0.5rem;
    opacity: 0.8;
}

/* Number One Server Highlight */
.server-card.number-one,
.server-group-main.number-one {
    border: 2px solid #cc0000 !important;
    box-shadow: 
        0 0 20px rgba(204, 0, 0, 0.5),
        0 0 40px rgba(204, 0, 0, 0.2);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.social-svg {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1); /* Make SVGs white */
    transition: all 0.3s ease;
}

/* Adjust additional elements on smaller screens */
@media (max-width: 768px) {
    /* Hide all decorative brackets on mobile */
    .server-join-btn::before,
    .server-join-btn::after {
        display: none;
    }
    
    .server-expand-btn::before,
    .server-expand-btn::after {
        display: none;
    }
    
    .server-sub-join-btn::before,
    .server-sub-join-btn::after {
        display: none;
    }
    
    .workshop-btn,
    .learn-more-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }
    
    .zgrad-logo-piece,
    .npcz-logo-piece {
        height: 1.5rem;
    }
}

@media (max-width: 480px) {
    .workshop-btn,
    .learn-more-btn {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
    
    .zgrad-logo-piece,
    .npcz-logo-piece {
        height: 1.2rem;
    }
    
    .social-icons {
        gap: 0.3rem;
    }
    
    .social-icon {
        width: 1rem;
        height: 1rem;
        font-size: 0.9rem;
    }
    
    .social-svg {
        width: 100%;
        height: 100%;
    }
}



/* Responsive Design - Server Browser */
@media (max-width: 992px) {
    /* Show PC/Steam notice on mobile */
    .pc-steam-notice {
        display: block;
    }
    
    /* Show PC ONLY tags on mobile */
    .pc-only-tag-desktop {
        display: none; /* Hide desktop version on mobile */
    }
    
    .pc-only-tag-mobile {
        display: flex; /* Show mobile version on mobile */
    }
    
    /* Hide connect buttons on mobile */
    .server-join-btn,
    .server-expand-btn,
    .server-sub-join-btn {
        display: none;
    }
    .server-browser .separator-line {
        margin-bottom: 3rem;
    }
    
    .server-browser {
        padding: 0 3rem 5rem;
    }
    
    .total-players-count {
        font-size: 3rem;
    }
    
    .total-players-label {
        font-size: 1.1rem;
    }
    
    .server-card {
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        min-height: 90px;
    }
    
    .server-sub-card {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-info-left {
        gap: 2rem;
    }
    
    .server-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        flex-shrink: 0;
    }
    
    .server-name {
        font-size: 1.4rem;
    }
    
    .server-map {
        font-size: 1rem;
    }
    
    .server-players {
        font-size: 1.2rem;
        min-width: 70px;
    }
    
    .server-join-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.8rem;
    }
    
    /* Server Group Responsive */
    .server-group-main {
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        min-height: 90px;
    }
    
    .server-group-info-left {
        gap: 2rem;
    }
    
    .server-group-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        flex-shrink: 0;
    }
    
    .server-group-name {
        font-size: 1.4rem;
    }
    
    .server-group-subtitle {
        font-size: 1rem;
    }
    
    .server-group-players {
        font-size: 1.2rem;
        min-width: 70px;
    }
    
    .server-expand-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.8rem;
    }
    
    .server-sub-card {
        padding: 1.2rem 2rem;
        min-height: 70px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-sub-name {
        font-size: 1.1rem;
    }
    
    .server-sub-map {
        font-size: 0.85rem;
    }
    
    .server-sub-players {
        font-size: 1rem;
        min-width: 55px;
    }
    
    .server-sub-join-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.3rem;
    }
}

@media (max-width: 768px) {
    .server-browser .separator-line {
        margin-bottom: 2.5rem;
    }
    
    .server-browser {
        padding: 0 2rem 4rem;
    }
    
    .pc-only-tag-desktop {
        font-size: 0.55rem;
        padding: 0.1rem 0.4rem;
        min-height: 0.9rem;
        bottom: 1.2rem !important;
        left: 1.5rem !important;
    }
    
    .pc-only-tag-mobile {
        font-size: 0.55rem;
        padding: 0.1rem 0.4rem;
        min-height: 0.9rem;
    }
    
    .partner-label {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        padding-left: 0.4rem;
        min-height: 1.3rem;
    }
    
    .partner-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .total-players {
        margin-bottom: 2rem;
    }
    
    .total-players-count {
        font-size: 2.5rem;
    }
    
    .total-players-label {
        font-size: 1rem;
    }
    
    .server-card {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        min-height: 80px;
    }
    
    .server-sub-card {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-info-left {
        gap: 1.2rem;
    }
    
    .server-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 0.8rem;
        flex-shrink: 0;
    }
    
    .server-name {
        font-size: 1.3rem;
    }
    
    .server-map {
        font-size: 0.95rem;
    }
    
    .server-players {
        font-size: 1.1rem;
        min-width: 60px;
    }
    
    .server-join-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.4rem;
    }
    
    /* Server Group Responsive - 768px */
    .server-group-main {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        min-height: 80px;
    }
    
    .server-group-info-left {
        gap: 1.2rem;
    }
    
    .server-group-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 0.8rem;
        flex-shrink: 0;
    }
    
    .server-group-name {
        font-size: 1.3rem;
    }
    
    .server-group-subtitle {
        font-size: 0.95rem;
    }
    
    .server-group-players {
        font-size: 1.1rem;
        min-width: 60px;
    }
    
    .server-expand-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.4rem;
    }
    
    .server-sub-card {
        padding: 1rem 1.5rem;
        min-height: 65px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-sub-name {
        font-size: 1rem;
    }
    
    .server-sub-map {
        font-size: 0.8rem;
    }
    
    .server-sub-players {
        font-size: 0.95rem;
        min-width: 50px;
    }
    
    .server-sub-join-btn {
        font-size: 0.75rem;
        padding: 0.45rem 1.1rem;
    }
}

@media (max-width: 480px) {
    .server-browser .separator-line {
        margin-bottom: 2rem;
    }
    
    .server-browser {
        padding: 0 1rem 3rem;
    }
    
    .pc-only-tag-desktop {
        font-size: 0.5rem;
        padding: 0.08rem 0.35rem;
        min-height: 0.8rem;
        bottom: 1rem !important;
        left: 1.2rem !important;
    }
    
    .pc-only-tag-mobile {
        font-size: 0.5rem;
        padding: 0.08rem 0.35rem;
        min-height: 0.8rem;
    }
    
    .partner-label {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
        padding-left: 0.35rem;
        min-height: 1.2rem;
    }
    
    .partner-icon {
        width: 0.9rem;
        height: 0.9rem;
    }
    
    .total-players {
        margin-bottom: 1.5rem;
    }
    
    .total-players-count {
        font-size: 2rem;
    }
    
    .total-players-label {
        font-size: 0.9rem;
    }
    
    .server-card {
        padding: 1rem 1.2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        min-height: 70px;
    }
    
    .server-sub-card {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-info-left {
        gap: 1rem;
    }
    
    .server-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 0.6rem;
        flex-shrink: 0;
    }
    
    .server-name {
        font-size: 1.1rem;
    }
    
    .server-map {
        font-size: 0.85rem;
    }
    
    .server-players {
        font-size: 1rem;
        min-width: 50px;
    }
    
    .server-join-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }
    
    /* Server Group Responsive - 480px */
    .server-group-main {
        padding: 1rem 1.2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        min-height: 70px;
    }
    
    .server-group-info-left {
        gap: 1rem;
    }
    
    .server-group-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 0.6rem;
        flex-shrink: 0;
    }
    
    .server-group-name {
        font-size: 1.1rem;
    }
    
    .server-group-subtitle {
        font-size: 0.85rem;
    }
    
    .server-group-players {
        font-size: 1rem;
        min-width: 50px;
    }
    
    .server-expand-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }
    
    .server-sub-card {
        padding: 0.8rem 1.2rem;
        min-height: 60px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-sub-name {
        font-size: 0.9rem;
    }
    
    .server-sub-map {
        font-size: 0.75rem;
    }
    
    .server-sub-players {
        font-size: 0.85rem;
        min-width: 45px;
    }
    
    .server-sub-join-btn {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 360px) {
    .server-browser .separator-line {
        margin-bottom: 2rem;
    }
    
    .server-browser {
        padding: 0 0.5rem 2.5rem;
    }
    
    .total-players {
        margin-bottom: 1.2rem;
    }
    
    .total-players-count {
        font-size: 1.6rem;
    }
    
    .total-players-label {
        font-size: 0.8rem;
    }
    
    .server-card {
        padding: 0.8rem 1rem;
        gap: 0.6rem;
        min-height: 60px;
    }
    
    .server-sub-card {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-info-left {
        gap: 0.8rem;
    }
    
    .server-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .server-name {
        font-size: 1rem;
    }
    
    .server-map {
        font-size: 0.8rem;
    }
    
    .server-players {
        font-size: 0.9rem;
        min-width: 45px;
    }
    
    .server-join-btn {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    /* Server Group Responsive - 360px */
    .server-group-main {
        padding: 0.8rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        min-height: 60px;
    }
    
    .server-group-info-left {
        gap: 0.8rem;
    }
    
    .server-group-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .server-group-name {
        font-size: 1rem;
    }
    
    .server-group-subtitle {
        font-size: 0.8rem;
    }
    
    .server-group-players {
        font-size: 0.9rem;
        min-width: 45px;
    }
    
    .server-expand-btn {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .server-sub-card {
        padding: 0.6rem 1rem;
        min-height: 55px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-sub-name {
        font-size: 0.85rem;
    }
    
    .server-sub-map {
        font-size: 0.7rem;
    }
    
    .server-sub-players {
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .server-sub-join-btn {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (max-width: 320px) {
    .server-browser .separator-line {
        max-width: 92%;
        margin-bottom: 1.5rem;
    }
    
    .server-browser {
        padding: 0 0.25rem 2rem;
    }
    
    .pc-only-tag-desktop {
        font-size: 0.45rem;
        padding: 0.06rem 0.3rem;
        min-height: 0.7rem;
        bottom: 0.8rem !important;
        left: 0.8rem !important;
    }
    
    .pc-only-tag-mobile {
        font-size: 0.45rem;
        padding: 0.06rem 0.3rem;
        min-height: 0.7rem;
    }
    
    .partner-label {
        font-size: 0.55rem;
        padding: 0.1rem 0.4rem;
        padding-left: 0.3rem;
        min-height: 1rem;
    }
    
    .partner-icon {
        width: 0.85rem;
        height: 0.85rem;
    }
    
    .total-players {
        margin-bottom: 1rem;
    }
    
    .total-players-count {
        font-size: 1.4rem;
    }
    
    .total-players-label {
        font-size: 0.75rem;
    }
    
    .server-card {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
        min-height: 55px;
    }
    
    .server-sub-card {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-info-left {
        gap: 0.6rem;
    }
    
    .server-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
    }
    
    .server-name {
        font-size: 0.9rem;
    }
    
    .server-map {
        font-size: 0.75rem;
    }
    
    .server-players {
        font-size: 0.85rem;
        min-width: 40px;
    }
    
    .server-join-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Server Group Responsive - 320px */
    .server-group-main {
        padding: 0.6rem 0.8rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        min-height: 55px;
    }
    
    .server-group-info-left {
        gap: 0.6rem;
    }
    
    .server-group-info-right {
        justify-content: flex-end;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
    }
    
    .server-group-name {
        font-size: 0.9rem;
    }
    
    .server-group-subtitle {
        font-size: 0.75rem;
    }
    
    .server-group-players {
        font-size: 0.85rem;
        min-width: 40px;
    }
    
    .server-expand-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    .server-sub-card {
        padding: 0.5rem 0.8rem;
        min-height: 50px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .server-sub-name {
        font-size: 0.8rem;
    }
    
    .server-sub-map {
        font-size: 0.65rem;
    }
    
    .server-sub-players {
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .server-sub-join-btn {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }
}