﻿/* Estilos base */
.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Radiance', 'Segoe UI', sans-serif;
    color: #f0e6d2;
    background: #0e0e0e;
}

/* Encabezado estilo Dota 2 */
.news-detail-header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9b949;
}

.news-detail-title {
    color: #e9b949;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.news-detail-date {
    color: #8b8b8b;
    font-size: 1.1rem;
    font-style: italic;
}

/* Imagen principal */
.news-detail-image {
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 1px solid #3d3d3d;
}

    .news-detail-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .news-detail-image:hover img {
        transform: scale(1.02);
    }

/* Contenido */
.news-detail-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #f0e6d2;
    padding: 0 2rem;
    margin-bottom: 3rem;
    border-left: 3px solid #e9b949;
}

    .news-detail-content p {
        margin-bottom: 2rem;
    }

/* Botón de volver estilo Dota 2 */
.news-detail-footer {
    margin: 3rem 0;
    text-align: center;
}

.back-button {
    padding: 12px 30px;
    background: linear-gradient(to right, #1e2328, #3d3d3d);
    color: #e9b949;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #e9b949;
    box-shadow: 0 0 10px rgba(233, 185, 73, 0.3);
    position: relative;
    overflow: hidden;
}

    .back-button:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(233, 185, 73, 0.2), transparent);
        transition: 0.5s;
    }

    .back-button:hover {
        color: #ffffff;
        box-shadow: 0 0 20px rgba(233, 185, 73, 0.5);
        transform: translateY(-2px);
    }

        .back-button:hover:before {
            left: 100%;
        }

    .back-button i {
        transition: transform 0.3s ease;
    }

    .back-button:hover i {
        transform: translateX(-5px);
    }

/* Carrusel de noticias relacionadas - Versión Mejorada */
.related-news {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #3d3d3d;
}

    .related-news h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

.carousel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
    will-change: transform;
    padding: 10px 0;
}

.carousel-card {
    min-width: 300px;
    background: #1e2328;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid #3d3d3d;
    flex-shrink: 0;
    position: relative;
}

    .carousel-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient( to right, transparent 0%, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 255, 255, 0.08) 60%, transparent 100% );
        transform: skewX(-20deg);
        z-index: 1;
        pointer-events: none;
        animation: solarGlide 4s infinite ease-in-out;
        opacity: 0;
    }

@keyframes solarGlide {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        left: 140%;
        opacity: 0;
    }
}

.carousel-card .news-image,
.carousel-card .news-content {
    position: relative;
    z-index: 999;
}

.carousel-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.carousel-card .news-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

    .carousel-card .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.carousel-card:hover .news-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.carousel-card:hover .image-overlay {
    opacity: 0.4;
}

.carousel-card .news-content {
    padding: 1.5rem;
}

.carousel-card .news-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #e9b949;
    transition: color 0.3s;
}

.carousel-card:hover .news-title {
    color: #fff;
}

.carousel-card .news-date {
    color: #8b8b8b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.carousel-card .news-description {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botones del carrusel mejorados */
.carousel-button {
    background: rgba(30, 35, 40, 0.7);
    border: 2px solid #e9b949;
    color: #e9b949;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

    .carousel-button:hover {
        background: #e9b949;
        color: #1e2328;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 15px rgba(233, 185, 73, 0.5);
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    .carousel-button i {
        font-size: 1.5rem;
    }

/* Indicadores del carrusel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3d3d3d;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-indicator.active {
        background: #e9b949;
        transform: scale(1.2);
    }

/* Efectos hover para las tarjetas */
.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Efecto de neón para el título del carrusel */
.related-news h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #e9b949;
    margin: 10px auto 0;
    box-shadow: 0 0 10px #e9b949, 0 0 20px rgba(233, 185, 73, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .news-detail-title {
        font-size: 2.2rem;
    }

    .carousel-card {
        min-width: 280px;
    }

    .carousel-wrapper {
        width: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    .news-detail-container {
        padding: 0 15px;
    }

    .news-detail-title {
        font-size: 1.8rem;
    }

    .news-detail-content {
        padding: 0;
        font-size: 1rem;
    }

    .carousel-card {
        min-width: 240px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }

        .carousel-button i {
            font-size: 1.2rem;
        }
}

@media (max-width: 576px) {
    .carousel-card {
        min-width: 200px;
    }

    .carousel-wrapper {
        width: calc(100% - 60px);
    }

    .carousel-button {
        width: 35px;
        height: 35px;
    }
}


.title-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f8f8f8;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    background: linear-gradient(to right, #b89859, #e8d8a8, #b89859);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
