/* Estilos para noticias y contenido dinamico */
/* Estilos para funcionalidad de Leer mas */
.news-content-short,
.news-content-full {
    transition: all 0.3s ease;
    line-height: 1.6;
}

.read-more {
    color: #ff6600;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff8533;
}

.server-details strong {
    color: #ff6600;
    font-weight: bold;
}

/* FORZAR ESPACIADO MINIMO - REGLAS AGRESIVAS */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px !important;
    background: rgba(20, 10, 5, 0.95);
    border: 1px solid #674220;
    border-radius: 5px;
    position: relative;
    top: -10px !important;
}

/* Eliminar TODOS los margenes de elementos antes de paginacion */
.server-info-box:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
}

.game-description:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
}

/* Forzar center-column a no tener espacio extra */
.center-column {
    gap: 10px !important;
}

.center-column > *:last-child:not(.pagination) {
    margin-bottom: 0 !important;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    background: #331a0e;
    color: #e8c88a;
    text-decoration: none;
    border: 1px solid #674220;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 35px;
    text-align: center;
}

.pagination a:hover {
    background: #90300a;
    color: #fff;
    border-color: #ff6600;
}

.pagination a.active {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
    font-weight: bold;
}

.pagination span {
    color: #999;
    padding: 8px 4px;
    font-size: 14px;
}

/* Estilos para la seccion de eventos */
.events-box {
    background: rgba(20, 10, 5, 0.98);
    border: 2px solid #ff9900;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
}

/* Eliminar padding del server-info-box solo para eventos */
.events-box.server-info-box {
    padding: 0 !important;
}

/* Centrar icono y eliminar imagen de fondo SVG */
.events-box .server-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: none !important;
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
}

/* Asegurar que el ícono FontAwesome esté centrado */
.events-box .server-icon i {
    line-height: 1 !important;
    display: block !important;
}

/* Estilos para el contenedor de eventos destacado con imagen de fondo */
.events-box-featured {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 300px;
}

/* Overlay más claro para mostrar mejor la imagen de fondo */
.events-box-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 10, 5, 0.50) 0%,
        rgba(20, 10, 5, 0.60) 50%,
        rgba(20, 10, 5, 0.70) 100%
    );
    z-index: 1;
}

/* Asegurar que el contenido esté por encima del overlay */
.events-box-featured .server-icon,
.events-box-featured .server-details {
    position: relative;
    z-index: 2;
}

/* Agregar padding solo al server-details dentro de events-box */
.events-box .server-details {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0;
    padding: 0;
    width: 100%;
}

.event-item {
    background: rgba(51, 26, 14, 0.9);
    border: 1px solid #674220;
    border-radius: 5px;
    padding: 14px 16px;
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.event-item:hover {
    background: rgba(51, 26, 14, 1);
    border-color: #ff6600;
    transform: translateX(5px);
}

.event-active {
    border-left: 4px solid #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.event-upcoming {
    border-left: 4px solid #4488ff;
    background: rgba(68, 136, 255, 0.05);
}

.event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.event-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.event-name {
    flex: 1;
    color: #ff9900;
    font-weight: bold;
    font-size: 15px;
}

.event-status {
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.event-active .event-status {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.event-upcoming .event-status {
    background: rgba(68, 136, 255, 0.2);
    color: #4488ff;
    border: 1px solid #4488ff;
}

.event-time {
    color: #ccc;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-time i {
    color: #ff6600;
}

/* Ajustes para responsive */
@media (max-width: 768px) {
    .server-details h3 {
        font-size: 16px;
    }

    .server-details p {
        font-size: 14px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-status {
        align-self: flex-start;
    }

    .event-item {
        padding: 10px;
    }
}
