/* UNIVERSAL RESPONSIVE RESET */
*, *:before, *:after {
    box-sizing: border-box !important;
}
html {
    max-width: 100% !important;
}
body {
    max-width: 100% !important;
    overflow-x: clip !important;
}
img, iframe, object, embed {
    max-width: 100% !important;
}

@font-face {

    font-family: 'Minecraft';

    src: url('fonts/MinecraftRegular.woff2') format('woff2'),

         url('fonts/MinecraftRegular.woff') format('woff');

    font-weight: normal;

    font-style: normal;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Arial', sans-serif;

}



header {

    background: #333;

    color: #fff;

    padding: 1rem 2rem;

    position: relative; /* Asegurar que el encabezado sea relativo */

}



nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.logo {

    font-family: 'Minecraft', sans-serif;

    font-size: 1.5rem;

    font-weight: bold;

    color: #fff;

    text-decoration: none;

}



.logo:hover,

.logo:focus,

.logo:active {

    color: #fff;

}



.menu {

    display: flex;

    list-style: none;

}



.menu li {

    margin-left: 2rem;

}



.menu a {

    color: #fff;

    text-decoration: none;

    font-size: 1rem;

    transition: color 0.3s ease;

}



.menu a:hover {

    color: #ff6347;

}



.menu-toggle {

    display: none;

    font-size: 1.5rem;

    cursor: pointer;

    transition: transform 0.3s ease;

    z-index: 10; /* Ensure toggle button is above the menu */

}



.menu-toggle.active {

    transform: rotate(90deg);

}



@media (max-width: 768px) {

    .menu {

        display: none;

        flex-direction: column;

        width: 100%;

        text-align: center;

        background: #444;

        position: absolute;

        top: calc(100% + 10px); /* Position menu just below the nav */

        left: 0;

        z-index: 9999; /* Ensure menu is above other content */

    }



    .menu li {

        margin: 1rem 0;

    }



    .menu-toggle {

        display: block;

        position: absolute;

        top: 1rem;

        right: 1rem;

        z-index: 10; /* Ensure toggle button is above other content */

    }



    .menu.active {

        display: flex;

        animation: fadeIn 0.5s ease;

    }



    main {

        transition: margin-top 0.5s ease;

    }



    main.menu-active {

        margin-top: calc(100% + 60px); /* Adjust based on menu height */

    }

}



@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(-20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}





/* PREMIUM HEADER & HAMBURGER NAVIGATION */
header {
    background-color: #ffffff;
    border-bottom: 4px solid var(--border-color, #000000);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 0;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}
.logo img {
    height: 38px;
    display: block;
    transition: transform 0.2s ease;
}
.logo img:hover {
    transform: scale(1.03);
}
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color, #000000) !important;
    font-weight: 800;
    font-size: 15px;
    transition: color 0.2s ease;
    text-transform: uppercase;
}
.nav-links a:hover {
    color: var(--accent-color, #ff6b6b) !important;
}

/* Hot Badge in Navigation */
.hot-badge {
    background-color: #ff6b6b;
    color: #ffffff !important;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    border: 2px solid #000000;
    box-shadow: 1px 1px 0 #000000;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    animation: pulseHot 1.5s infinite alternate;
}
@keyframes pulseHot {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); box-shadow: 2px 2px 0 #000000; }
}

/* Dropdown Navigation styling */
.nav-dropdown-wrapper {
    position: relative;
}
.nav-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: #ffffff;
    border: 4px solid var(--border-color, #000000);
    border-radius: 4px;
    list-style: none;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
    display: none;
    z-index: 2000;
}
.nav-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--border-color, #000000) transparent;
}
.nav-dropdown::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 25px;
    background-color: transparent;
    z-index: -1;
}
.nav-dropdown li {
    width: 100%;
    margin: 0;
    padding: 0;
}
.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-color, #000000) !important;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none !important;
}
.nav-dropdown li a:hover {
    background-color: var(--accent-color, #ff6b6b) !important;
    color: #ffffff !important;
}
.nav-dropdown-wrapper:hover .nav-dropdown {
    display: block;
    animation: popInDropdown 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popInDropdown {
    0% { opacity: 0; transform: translateX(-50%) translateY(25px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(15px); }
}

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
    z-index: 1010;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 4px;
    background-color: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* TWO COLUMNS LAYOUT SYSTEM */
.game-layout-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}
.main-content {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    z-index: 10;
}

/* Sidebar Trending Box */
.trending-sidebar-box {
    border: 6px solid #ff6b6b !important;
    box-shadow: 6px 6px 0 rgba(255, 107, 107, 0.2) !important;
    padding: 15px !important;
    background-color: #ffffff !important;
    border-radius: 4px;
}
.trending-sidebar-title {
    color: #ff6b6b;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
}
.trending-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.trending-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #000000 !important;
    font-weight: 800;
    font-size: 14px;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: #faf8f5;
}
.trending-sidebar-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 2px solid #000000;
    object-fit: cover;
    flex-shrink: 0;
}
.trending-sidebar-item:hover {
    border-color: #ff6b6b;
    background-color: #fff5f5;
    transform: translateX(5px) scale(1.02);
    box-shadow: 2px 2px 0 rgba(255, 107, 107, 0.15);
}

/* MOBILE AND TABLET RESPONSIVE STYLING */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 4px solid #000000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
        flex-direction: column;
        padding: 20px;
        z-index: 999;
    }
    .nav-menu.active {
        display: flex;
        animation: slideDownMenu 0.3s ease forwards;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: stretch;
    }
    .nav-links a {
        display: block;
        padding: 10px 0;
        text-align: center;
        border-bottom: 2px dashed #e2e8f0;
    }
    .nav-dropdown-wrapper .nav-dropdown-trigger {
        justify-content: center;
    }
    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: 2px solid #000000;
        margin-top: 10px;
        width: 100%;
        min-width: unset;
        display: none;
    }
    .nav-dropdown-wrapper.active .nav-dropdown {
        display: block;
    }
    .nav-dropdown li a {
        text-align: center;
        border-bottom: 1px dashed #e2e8f0;
        padding: 12px 10px;
    }
    
    /* Hamburger Active Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Layout column stack */
    .game-layout-container {
        flex-direction: column;
        padding: 0 15px;
        margin: 20px auto;
    }
    .sidebar {
        width: 100%;
        position: static;
        margin-top: 20px;
    }
}
@keyframes slideDownMenu {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

