* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background: #df0000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    text-decoration: none;
    border-bottom: none !important;
}

.logo h1 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
    
}

.logo a:hover h1 {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #ffdc16;
    background: rgba(223, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Hero Banner melhorado */
.hero-banner {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    box-shadow: 0 0 30px #4b303045;
}

.banner-content h2 {
    font-size: 64px;
    color: #df0000;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 800;

    letter-spacing: 2px;
}

.banner-content h3 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #df0000, #530000);
    color: #fff;
    padding: 25px 50px;
    font-size: 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(205 50 50 / 30%);
    margin: 30px auto;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(45deg, #df0000, #530000);
    box-shadow: 0 8px 25px rgba(223, 0, 0, 0.4);
}

.subtitle {
    font-size: 24px;
    color: #fff;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* Banner Backend */
#banner-backend {
    width: 100%;
    height: 400px;
    display: block;
    background: transparent;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Games Grid */
.games-grid {
    padding: 20px;
    min-height: 100vh; /* Mantém altura consistente durante recarregamento */
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 48px;
    }

    .banner-content h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .cta-button {
        padding: 20px 40px;
        font-size: 20px;
    }

    .subtitle {
        font-size: 18px;
        line-height: 1.6;
    }

    .banner-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 36px;
    }

    .banner-content h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 18px;
        margin: 20px auto;
    }

    .subtitle {
        font-size: 16px;
    }

    .banner-content {
        padding: 20px 15px;
    }
}

/* Mantendo os estilos existentes do grid de jogos e popup do Instagram */
.game-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

.bg-loading-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

.loading-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    width: 0;
    transition: width 1s ease-out;
}

.num-loading-bar {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

/* Platform Section */
.platform-section {
    background: rgba(223, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-top: 1px solid rgba(223, 0, 0, 0.1);
    border-bottom: 1px solid rgba(223, 0, 0, 0.1);
}

.platform-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: bold;
}

.platform-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(223, 0, 0, 0.1);
}

.info-item {
    flex: 1;
}

.info-label {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 10px;
}

.info-value {
    font-size: 24px;
    color: #df0000;
    font-weight: bold;
}

/* Button Container */
.button-container {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
}

.btn-porcentagens {
    display: inline-block;
    background: linear-gradient(45deg, #df0000, #530000);
    color: #fff;
    padding: 20px 40px;
    font-size: 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(205 50 50 / 30%);
    letter-spacing: 1px;
}

.btn-porcentagens:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(45deg, #df0000, #530000);
    box-shadow: 0 8px 25px rgba(223, 0, 0, 0.4);
}

/* Willslots Links */
.willslots-links {
    padding: 40px 20px;
    text-align: center;
    margin: 30px 0;
}

.willslots-title h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.willslots-link {
    display: inline-block;
    background: linear-gradient(45deg, #df0000, #530000);
    color: #fff;
    padding: 20px 30px;
    margin: 10px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(205 50 50 / 30%);
    min-width: 200px;
}

.willslots-link:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(45deg, #df0000, #530000);
    box-shadow: 0 8px 25px rgba(223, 0, 0, 0.4);
}

.willslots-link h2 {
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
}

/* Instagram Popup */
.instagram-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 998;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-overlay.active {
    opacity: 1;
}

.instagram-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vh, 600px);
    height: min(90vh, 600px);
    aspect-ratio: 1;
    border-radius: 20px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: url('../images/INSTAGRAM.webp') center/cover no-repeat;
    overflow: hidden;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: all 0.2s ease;
    z-index: 1002;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-popup:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 18px;
    }

    .btn-porcentagens {
        padding: 15px 30px;
        font-size: 18px;
    }

    .willslots-title h2 {
        font-size: 28px;
    }

    .willslots-link {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        padding: 15px 20px;
        font-size: 16px;
        min-width: 150px;
    }

    .willslots-link h2 {
        font-size: 14px;
    }

    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .platform-title {
        font-size: 28px;
    }

    .platform-info {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .info-value {
        font-size: 20px;
    }

    .instagram-popup {
        width: 90vw;
        height: 90vw;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .willslots-title h2 {
        font-size: 24px;
    }

    .willslots-link {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        padding: 12px 15px;
        font-size: 14px;
        min-width: 120px;
    }

    .willslots-link h2 {
        font-size: 12px;
    }

    .platform-title {
        font-size: 24px;
    }

    .info-label {
        font-size: 14px;
    }

    .info-value {
        font-size: 18px;
    }
}
