/* Servers Section */
.servers {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 15%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.7) 85%, rgba(0, 0, 0, 0.95) 100%), url('../assets/textures/cooltexturebetter.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
}



.servers-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: 4rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.server-showcase {
    position: relative;
    width: 100%;
    max-width: 1500px;
    height: 400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.server-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.server-showcase:hover {
    transform: scale(1.05);
}

.server-showcase:hover::before {
    opacity: 1;
}

.server-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 1;
    transition: all 0.5s ease;
}

.server-content.transitioning {
    opacity: 0;
}

.server-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%);
}

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

.server-title::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: 
        /* Top-left L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 0/12px 3px,
        linear-gradient(var(--color-red), var(--color-red)) 0 0/3px 12px,
        /* Bottom-right L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/12px 3px,
        linear-gradient(var(--color-red), var(--color-red)) 100% 100%/3px 12px;
    background-repeat: no-repeat;
}

.server-description {
    font-family: 'Oxanium', monospace;
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 500px;
}

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

.server-button::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-button:hover {
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transform: translateY(-2px);
    border-radius: 0;
}

.server-button:hover::before {
    opacity: 1;
}

.server-button:active {
    transform: translateY(0);
}

.server-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Additional Content Section */
.additional-content {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    margin-top: 2rem;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    min-height: 300px;
    padding: 0 2rem; /* Add consistent padding */
}

.content-image {
    flex: 0 0 400px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.content-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.rectangular-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.content-image:hover .rectangular-image {
    transform: scale(1.05);
}

.content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 1rem 0 0;
    text-align: left;
    min-width: 0; /* Allow text to shrink properly */
    overflow-wrap: break-word; /* Better text wrapping */
}

.content-buttons {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0;
    min-width: 180px; /* Ensure minimum button width */
}

.content-button {
    font-family: 'Oxanium', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    background: #181818;
    border: 2px solid transparent;
    padding: 1rem 1.5rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-align: center;
    white-space: nowrap;
}

.content-button[data-action="view-website"] {
    font-size: 0.9rem;
    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: 1rem 1.5rem;
    border-radius: 4px;
}

.content-button[data-action="view-website"]:hover {
    color: var(--color-white);
    background: #2c2c2c;
    backdrop-filter: none;
    transform: translateY(-1px);
}

.content-button[data-action="view-website"]::before {
    display: none;
}

.content-button::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;
}

.content-button:hover {
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.content-button:hover::before {
    opacity: 1;
}

.content-button:active {
    transform: translateY(0);
}

.content-button[data-action="next-gamemode"] {
    background: var(--color-red);
    color: var(--color-white);
    border: 1px solid var(--color-red);
}

.content-button[data-action="next-gamemode"]:hover {
    background: var(--color-red-hover);
    color: var(--color-white);
    border: 1px solid var(--color-red-hover);
}

.content-button[data-action="next-gamemode"]::before {
    display: none;
}

/* Single button layout styling */
.content-buttons.single-button {
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Ensure single button container is centered */
}

.content-buttons.single-button .content-button {
    width: 100%;
    max-width: 200px;
}

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

.content-title::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 10px;
    height: 10px;
    background: 
        /* Top-left L bracket */
        linear-gradient(var(--color-red), var(--color-red)) 0 0/10px 2px,
        linear-gradient(var(--color-red), var(--color-red)) 0 0/2px 10px;
    background-repeat: no-repeat;
}

.content-description {
    font-family: 'Oxanium', monospace;
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.content-description:last-child {
    margin-bottom: 0;
}

/* Responsive Design - Servers */
/* Grid layout for the specified range 1261px down to 769px */
@media (max-width: 1261px) and (min-width: 769px) {
    .additional-content {
        display: grid;
        grid-template-columns: 1fr 280px; /* Reduced button column width */
        grid-template-rows: auto auto;
        gap: 2rem;
        margin-top: 2rem;
        min-height: 300px;
        align-items: start;
        padding: 0 1.5rem; /* Adjusted padding */
    }
    
    .content-text {
        grid-column: 1;
        grid-row: 1 / 3;
        text-align: left;
        padding-right: 2rem;
    }
    
    .content-image {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        height: 300px;
    }
    
    .content-buttons {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        align-items: stretch;
        margin-top: 1rem;
        min-width: 240px; /* Ensure buttons don't get too narrow */
    }
}

@media (max-width: 992px) {
    .servers {
        padding: 4rem 3rem;
    }
    
    .server-showcase {
        height: 350px;
    }
    
    .server-info {
        padding: 2.5rem;
    }
    
    .server-title {
        font-size: 2rem;
    }
    
    .server-description {
        font-size: 1.1rem;
    }
    
    .content-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }
    
    .content-title {
        font-size: 1.8rem;
    }
    
    .content-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Hide all decorative brackets on mobile */
    .server-title::before,
    .server-title::after {
        display: none;
    }
    
    .content-title::before,
    .content-title::after {
        display: none;
    }
    
    .content-button::before,
    .content-button::after {
        display: none;
    }
    
    .server-button::before,
    .server-button::after {
        display: none;
    }
    
    .servers {
        padding: 3rem 2rem;
    }
    
    .server-showcase {
        height: 300px;
    }
    
    .server-info {
        padding: 2rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
    }
    
    .server-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .server-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: none;
    }
    
    .additional-content {
        flex-direction: column;
        gap: 2rem;
        margin-top: 1.5rem;
        min-height: auto;
        padding: 0 1.5rem; /* Better padding for tablets */
    }
    
    .content-text {
        padding: 1rem 0;
        text-align: left;
        justify-content: flex-start;
        order: 1;
    }
    
    .content-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        height: 250px;
        margin: 0 auto;
        order: 2;
    }
    
    .content-buttons {
        flex: none;
        flex-direction: row;
        justify-content: center; /* Center buttons on tablets */
        gap: 1.5rem;
        padding: 1rem 0 0 0;
        max-width: 500px;
        margin: 0 auto; /* Center the button container */
        order: 3;
        flex-wrap: wrap; /* Allow wrapping on smaller tablets */
    }
    
    .content-button {
        flex: 1;
        min-width: 140px;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .content-title {
        font-size: 1.6rem;
    }
    
    .content-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .servers {
        padding: 2rem 1rem;
    }
    
    .server-showcase {
        height: 280px;
    }
    
    .server-info {
        padding: 1.5rem;
    }
    
    .server-title {
        font-size: 1.6rem;
    }
    
    .server-description {
        font-size: 0.9rem;
    }
    
    .server-button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    
    .additional-content {
        margin-top: 1.5rem;
        gap: 1.5rem;
        padding: 0 1rem; /* Better mobile padding */
    }
    
    .content-text {
        text-align: left;
        order: 1;
    }
    
    .content-image {
        height: 220px;
        max-width: 350px;
        order: 2;
    }
    
    .content-buttons {
        gap: 1rem;
        max-width: 400px;
        justify-content: center; /* Center buttons */
        margin: 0 auto; /* Center the button container */
        order: 3;
        flex-wrap: wrap; /* Allow wrapping */
    }
    
    .content-button {
        font-size: 0.85rem;
        padding: 0.7rem 0.8rem;
        min-width: 120px;
    }
    
    .content-title {
        font-size: 1.4rem;
    }
    
    .content-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 360px) {
    .server-showcase {
        height: 260px;
    }
    
    .server-info {
        padding: 1rem;
    }
    
    .server-title {
        font-size: 1.4rem;
    }
    
    .server-description {
        font-size: 0.85rem;
    }
    
    .server-button {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
    
    .additional-content {
        margin-top: 1rem;
        gap: 1rem;
        padding: 0 0.75rem; /* Tighter padding for very small screens */
    }
    
    .content-text {
        text-align: left;
        order: 1;
    }
    
    .content-image {
        height: 200px;
        max-width: 300px;
        order: 2;
    }
    
    .content-buttons {
        flex-direction: column;
        gap: 0.8rem;
        max-width: 260px; /* Slightly smaller for very small screens */
        justify-content: center; /* Center buttons */
        align-items: center; /* Center buttons horizontally in column layout */
        margin: 0 auto; /* Center the button container */
        order: 3;
    }
    
    .content-buttons.single-button {
        align-items: center;
        justify-content: center;
        max-width: 200px;
        margin: 0 auto; /* Ensure single button is centered */
    }
    
    .content-button {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        min-width: 100px; /* Ensure buttons maintain minimum width on mobile */
        width: 100%; /* Take full width of container for better touch targets */
        max-width: 200px; /* Prevent buttons from becoming too wide */
    }
    
    .content-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .content-description {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    /* Enhanced button styling for very small screens */
    .content-button {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        min-width: 90px; /* Slightly smaller min-width for very small screens */
        width: 100%;
        max-width: 180px; /* Prevent buttons from being too wide on tiny screens */
    }
}