/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body, html {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #121212;
    color: #fff;
}

.server-container {
    height: 100vh;
}

.servers-grid {
    display: flex;
    height: 100vh;
}

/* Cambiado de .server-option a a.server-option */
a.server-option {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none; /* Elimina el subrayado */
    color: inherit; /* Mantiene el color del texto consistente */
}

/* Efecto de overlay oscuro */
a.server-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
}

a.server-option:hover {
    flex: 1.2;
}

a.server-option:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

a.server-option:last-child {
    border-right: none;
}

/* Efecto shine */
a.server-option::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 2;
}

a.server-option:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

/* Contenido del servidor */
.server-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
    width: 100%;
}

a.server-option h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #f8f8f8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

a.server-option p {
    font-size: 1.5rem;
    color: #eee;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

a.server-option:hover h2,
a.server-option:hover p {
    transform: scale(1.05);
}

/* Estilo específico para las fechas */
.server-date {
    font-size: 1rem;
    color: #f8d56b;
    margin-top: 10px;
    font-style: italic;
    text-decoration: none; /* Asegura que no tenga subrayado */
    display: block; /* Mejor control del espaciado */
}

/* Animación de brillo */
@keyframes shine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

/* Versión responsive para móviles */
@media (max-width: 768px) {
    body, html {
        overflow: auto;
        height: auto;
    }
    
    .server-container {
        height: auto;
    }
    
    .servers-grid {
        flex-direction: column;
        height: auto;
    }
    
    a.server-option {
        height: 200px;
        min-height: 40vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    a.server-option:last-child {
        border-bottom: none;
    }
    
    a.server-option:hover {
        flex: 1;
        height: 220px;
    }
    
    .server-content {
        padding: 15px;
    }
    
    a.server-option h2 {
        font-size: 1.8rem;
    }
    
    a.server-option p {
        font-size: 1.3rem;
    }
}