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

body {
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #1b2838, #0b1622);
    color: #c7d5e0;
    height: 100vh;
    overflow: hidden; /* 🔥 sem scroll no desktop */
}

/* APP */
.app {
    display: flex;
    height: calc(100vh - 40px); /* espaço pro footer */
}

/* SIDEBAR */
.sidebar {
    width: 300px; /* 🔥 maior */
    background: rgba(20, 30, 48, 0.9);
    padding: 25px;
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255,255,255,0.1);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar h2 {
    color: #66c0f4;
}

/* agrupamento */
.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-section h3 {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.7;
}

.sidebar select {
    width: 100%;
    padding: 8px;
    background: #0b1622;
    color: #fff;
    border: 1px solid #66c0f4;
    border-radius: 5px;
}

/* BOTÕES */
.btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.primary {
    background: linear-gradient(90deg, #66c0f4, #1a9fff);
}

.secondary {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.btn:hover {
    transform: scale(1.05);
}

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* BOTÃO MENU MOBILE */
.menu-toggle {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1a9fff;
    border: none;
    color: white;
    padding: 8px;
    border-radius: 5px;
}

/* STATUS */
#status {
    font-size: 1.3rem;
}

/* BOARD */
.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
}

.cell {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.2s;
}

.cell:hover {
    background: rgba(255,255,255,0.1);
}

.cell.x {
    color: #66c0f4;
    text-shadow: 0 0 10px #66c0f4;
}

.cell.o {
    color: #f59e0b;
    text-shadow: 0 0 10px #f59e0b;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

.modal-box {
    background: #1b2838;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.progress-bar-container {
    height: 20px;
    background: #0b1622;
    border-radius: 10px;
    margin: 20px 0;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: #66c0f4;
}

/* FOOTER */
.footer {
    height: 40px;
    background: #0b1622;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between; /* 🔥 separa nome e links */
    align-items: center;
    padding: 0 20px;
}

/* ===================== */
/* 📱 RESPONSIVO */
/* ===================== */
@media (max-width: 768px) {

    body {
        overflow: auto; /* libera scroll no mobile */
    }

    .app {
        flex-direction: column;
        height: auto;
    }

    /* SIDEBAR VIRA TOPO */
    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-around;
    }

    .sidebar-top {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-around;
    }

    .menu-section {
        min-width: 120px;
    }

    .main {
        padding: 20px;
    }

    .board {
        grid-template-columns: repeat(3, 80px);
    }

    .cell {
        width: 80px;
        height: 80px;
    }

    .menu-toggle {
        display: none; /* não precisa no mobile novo layout */
    }
}


.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #66c0f4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.social-links a:hover {
    color: #1a9fff;
    text-shadow: 0 0 5px #1a9fff;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 5px;
    }
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 45px;  
    height:45px;
    object-fit: contain;
}