/* Custom style for new visual identity */

/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #12121f);
    color: #e0e0e0;
    line-height: 1.7;
}

/* Navbar Styles */
.navbar {
    background: #0f0f1a;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

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

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

.logo h1 {
    color: #00ffea;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px #00ffea;
    transition: color 0.3s ease;
}

.logo a:hover h1 {
    color: #00d8c9;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-link {
    color: #a0f0e0;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 6px;
}

.nav-link:hover {
    color: #00ffea;
    background: rgba(0, 255, 234, 0.15);
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
    padding: 6px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    background-color: #00ffea;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #12121f;
        flex-direction: column;
        padding: 90px 25px 35px;
        transition: 0.4s ease;
        box-shadow: -6px 0 20px rgba(0, 255, 234, 0.3);
    }

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

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

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

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

/* Hero Banner */
.hero-banner {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 25px;
    background: linear-gradient(135deg, #00ffea88, #12121fcc);
    text-align: center;
    border-radius: 25px;
    box-shadow: 0 0 40px #00ffea88;
}

.banner-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(18, 18, 31, 0.85);
    border-radius: 25px;
    box-shadow: 0 0 40px #00ffeaaa;
}

.banner-content h2 {
    font-size: 72px;
    color: #00ffea;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 15px #00ffea;
}

.banner-content h3 {
    font-size: 36px;
    color: #d0f7f3;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(0, 255, 234, 0.6);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #00ffea, #008f7a);
    color: #12121f;
    padding: 30px 60px;
    font-size: 26px;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 255, 234, 0.5);
    margin: 40px auto;
    letter-spacing: 2px;
}

.cta-button:hover {
    transform: translateY(-6px) scale(1.05);
    background: linear-gradient(45deg, #00d8c9, #006655);
    box-shadow: 0 10px 30px rgba(0, 216, 201, 0.7);
}

.subtitle {
    font-size: 26px;
    color: #b0f0e8;
    margin-top: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.9;
    opacity: 0.95;
}

/* 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: 30px;
    min-height: 100vh;
}

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

/* 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: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #004d4d, #002222);
    border: 1px solid #00ffea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-item:hover {
    transform: scale(1.07);
    box-shadow: 0 0 30px #00ffea;
}

.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: 15px 15px 0 0;
}

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

.loading-bar {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(0, 255, 234, 0.2);
}

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

.num-loading-bar {
    color: #b0f0e8;
    font-size: 15px;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

/* Platform Section */
.platform-section {
    background: #001a1a;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    border-radius: 20px;
    border: 1px solid #00ffea;
}

.platform-title {
    font-size: 40px;
    color: #00ffea;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 0 0 15px #00ffea;
}

.platform-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #004d4d, #002222);
    border-radius: 20px;
    border: 1px solid #00ffea;
}

.info-item {
    flex: 1;
}

.info-label {
    font-size: 20px;
    color: #a0f0e0;
    margin-bottom: 15px;
}

.info-value {
    font-size: 28px;
    color: #00ffea;
    font-weight: 900;
}

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

.btn-porcentagens {
    display: inline-block;
    background: linear-gradient(45deg, #00ffea, #008f7a);
    color: #12121f;
    padding: 25px 50px;
    font-size: 22px;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 255, 234, 0.5);
    letter-spacing: 2px;
}

.btn-porcentagens:hover {
    transform: translateY(-6px) scale(1.05);
    background: linear-gradient(45deg, #00d8c9, #006655);
    box-shadow: 0 10px 30px rgba(0, 216, 201, 0.7);
}

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

.willslots-title h2 {
    font-size: 40px;
    color: #00ffea;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 0 0 15px #00ffea;
}

.willslots-link {
    display: inline-block;
    background: linear-gradient(45deg, #00ffea, #008f7a);
    color: #12121f;
    padding: 25px 35px;
    margin: 15px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 255, 234, 0.5);
    min-width: 220px;
}

.willslots-link:hover {
    transform: translateY(-6px) scale(1.05);
    background: linear-gradient(45deg, #00d8ea, #006655);
    box-shadow: 0 10px 30px rgba(0, 216, 201, 0.7);
}

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

/* Instagram Popup */
.instagram-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    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: 25px;
    z-index: 999;
    box-shadow: 0 15px 40px rgba(0, 255, 234, 0.7);
    background: url('../images/INSTAGRAM.webp') center/cover no-repeat;
    overflow: hidden;
}

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

.close-popup:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: rotate(90deg) scale(1.15);
    border-color: rgba(0, 255, 234, 0.8);
}

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

    .subtitle {
        font-size: 20px;
    }

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

    .btn-porcentagens {
        padding: 20px 40px;
        font-size: 20px;
    }

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

    .willslots-link {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 15px auto;
        padding: 20px 25px;
        font-size: 18px;
        min-width: 180px;
    }

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

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

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

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

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

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

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

    .subtitle {
        font-size: 18px;
    }

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

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

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

    .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: 16px;
    }

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