/* ===============================
   FUENTE GENERAL
   =============================== */

body {
    font-family: 'Segoe UI', sans-serif;
    margin:0;
    padding:0;
    min-height:100vh;
    background: url('../img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.overlay {
    position: fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background: rgba(0, 0, 0, 0.63);
    z-index:-1; /* esto coloca el fondo sobre las partículas */
}

/* TITULARES Y ELEMENTOS GAMER */
.header h1,
.header h2,
.nav-logo,
.nav-float a,
.carousel-content h2,
.featurette-text h2 {
    font-family: 'Audiowide', sans-serif;
    letter-spacing: 1px;
}


/* ===============================
   HEADER
   =============================== */

.header {
    margin-top: 70px;
    position: relative;
    z-index:1;
    text-align:center;
    color:#fff;
    padding:30px 20px 15px 20px;
    backdrop-filter: blur(5px);
}

.header .logo {width:70px; margin-bottom:10px;}
.header h1 {font-size:28px; color:#27ae60; margin:5px 0;}
.header h2 {font-size:16px; color:#ecf0f1; margin:2px 0;}

/* ===============================
   FOOTER GAMER
   =============================== */

.footer {
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0, 255, 100, 0.35);
    padding: 30px 20px 10px 20px;
    color: #e8e8e8;
    font-family: 'Audiowide', sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section h3,
.footer-section h4 {
    color: #27ae60;
    margin-bottom: 10px;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(39, 255, 120, 0.6);
}

.footer-section p {
    color: #d4d4d4;
    font-size: 14px;
    margin: 4px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 6px 0;
}

.footer-section ul li a {
    color: #cfcfcf;
    text-decoration: none;
    transition: 0.2s;
}

.footer-section ul li a:hover {
    color: #27ae60;
    text-shadow: 0 0 6px #27ae60;
}

.footer-bottom {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: #bcbcbc;
}

/* RESPONSIVE FOOTER */
@media (max-width: 700px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ===============================
   NAVBAR MINIMALISTA FLOTANTE
   =============================== */

.nav-float {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1100px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 20px;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);

    z-index: 999;
    transition: 0.3s ease;
}

.nav-float a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 10px;
    transition: 0.2s ease;
}

/* ===============================
   USERNAME CON NEÓN GAMER
   =============================== */

.nav-user-btn {
    font-family: 'Audiowide', sans-serif !important;
    letter-spacing: 1px;
    color: #6cc6ff; /* Azul celeste */
    text-shadow:
        0 0 5px #3fb9ff,
        0 0 10px #3fb9ff,
        0 0 20px #009dff,
        0 0 30px #00c3ff,
        0 0 45px #00eaff;
    font-weight: bold;
    transition: 0.3s ease;
}

/* Efecto hover */
.nav-user-btn:hover {
    color: #9bddff;
    text-shadow:
        0 0 8px #58d6ff,
        0 0 15px #58d6ff,
        0 0 25px #00c3ff,
        0 0 45px #00eaff,
        0 0 60px #00faff;
    transform: scale(1.05);
}

.nav-float a:hover {
    color: #27ae60;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
}

.nav-float-center { display: flex; gap: 18px; }
.nav-float-right { display: flex; align-items: center; }

.nav-login-btn {
    background: #27ae60;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.2s;
}

.nav-login-btn:hover { background: #1f8d4f; }

/* USUARIO */
.nav-user-dropdown { position: relative; }

.nav-user-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 10px;
}

.nav-user-menu {
    position: absolute;
    right: 0;
    top: 150%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    width: 160px;
    padding: 8px 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.nav-user-menu.show { display: flex; }

.nav-user-menu a {
    padding: 10px 14px;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-user-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #27ae60;
}

/* MOBILE MENU */
.mobile-only { display: none; }

@media (max-width: 800px) {
    .nav-float {
        width: calc(100% - 50px);
        margin-right: 12px;
        padding: 12px 16px;
    }
    .nav-float-center { display: none !important; }
    .mobile-only { display: block !important; }
}


/* ===============================
   CAROUSEL SLIDER
   =============================== */

.carousel {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 0;
    text-align: center;
    color: white;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    height: 350px;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.carousel-item {
    min-width: 100%;
    height: 350px;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: brightness(70%);
}

.carousel-content {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    text-shadow: 0 4px 12px rgba(0,0,0,0.9);
}

.carousel-content h2 { font-size: 28px; margin-bottom: 8px; }
.carousel-content p { font-size: 16px; }

/* BOTONES */
.carousel-prev,
.carousel-next {
    background: rgba(0,0,0,0.45);
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-prev:hover,
.carousel-next:hover { background: rgba(0,0,0,0.7); }

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* INDICADORES */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: 0.3s;
}

.indicator.active {
    background: #27ae60;
    transform: scale(1.2);
}


/* ===============================
   RESPONSIVE CAROUSEL
   =============================== */

@media (max-width: 768px) {

    .carousel {
        max-width: 95%;
        margin: 25px auto;
    }

    .carousel-container {
        height: 230px;
    }

    .carousel-track,
    .carousel-item,
    .carousel-img {
        height: 230px;
    }

    .carousel-content {
        bottom: 10px;
        width: 90%;
    }

    .carousel-content h2 { font-size: 18px; }
    .carousel-content p { font-size: 13px; }

    .carousel-prev,
    .carousel-next {
        padding: 6px 10px;
        font-size: 18px;
        top: 48%;
    }

    .indicator {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

@media (max-width: 480px) {
    .carousel-container { height: 200px; }

    .carousel-track,
    .carousel-img,
    .carousel-item {
        height: 200px;
    }

    .carousel-content h2 { font-size: 16px; }
    .carousel-content p { font-size: 12px; }

    .carousel-prev,
    .carousel-next {
        padding: 5px 9px;
        font-size: 16px;
    }
}


/* ===============================
   FEATURETTES
   =============================== */

.featurettes {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    color: white;
}

.featurette {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.35);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(6px);
}

.featurette.reverse { flex-direction: row-reverse; }

.featurette-text h2 { font-size: 28px; }
.featurette-text span { color: #00ff6a; }
.featurette-text p { font-size: 16px; }

.featurette-img {
    width: 700px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.featurette-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.featurette-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.9);
    margin: 40px 0;
}

@media (max-width: 700px) {
    .featurette,
    .featurette.reverse {
        flex-direction: column;
        text-align: center;
    }
    .featurette-img {
        width: 100%;
        height: 250px;
    }
}


/* ===============================
   GAMES CARDS
   =============================== */

/* ============================================
   CARDS GAMER – Nombre, descripción y botón hover
   ============================================ */

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    padding: 25px;
    max-width: 1200px;
    margin: 40px auto;
}

.game-card {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;

    border: 1px solid rgba(0, 255, 140, 0.25);
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.15);

    transition: 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #27ae60;
    box-shadow: 0 0 18px #27ae60, 0 0 28px rgba(39, 255, 120, 0.4);
}

/* Icono */
.game-icon {
    font-size: 55px;
    margin-bottom: 18px;
    color: #27ae60;
    text-shadow: 0 0 10px #27ae60;
}

/* Título */
.game-card h3 {
    font-family: 'Audiowide', sans-serif;
    color: #e8e8e8;
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Descripción */
.game-desc {
    color: #cecece;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Botón oculto por defecto */
.play-btn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 10px 22px;
    border-radius: 12px;
    font-family: 'Audiowide', sans-serif;
    text-decoration: none;
    transition: 0.35s ease;
}

/* Al hacer hover aparece */
.game-card:hover .play-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover botón */
.play-btn:hover {
    background: #1f8d4f;
    transform: scale(1.07);
}

/* RESPONSIVE */
@media(max-width: 500px){
    .game-icon { font-size: 45px; }
    .game-card { padding: 20px 15px; }
    .game-card h3 { font-size: 18px; }
}

/* ===========================
   PARTÍCULAS FLOTANTES
=========================== */

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* debajo del overlay */
    pointer-events: none;
}

/* ===============================
   SCROLLBAR GAMER
=============================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #27ae60;
    border-radius: 10px;
    box-shadow: 0 0 10px #27ae60;
}

::-webkit-scrollbar-thumb:hover {
    background: #1f8d4f;
}
