/* ========================= */
/* 🌐 ESTILO GERAL           */
/* ========================= */
body {
    margin: 0;
    padding: 15px;
    font-family: 'Segoe UI', sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #1a1a1a;
    color: white;
    min-height: 100vh;
}

/* ========================= */
/* 🏷️ TÍTULO                 */
/* ========================= */
h1 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #FFD700;
    text-align: center;
}

/* ========================= */
/* 🎯 BOTÃO FAZER BANNER     */
/* ========================= */
#fazerBannerBtn {
    margin: 15px 0 25px 0;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;

    background: #FFD700;
    color: #000;

    transition: 0.3s ease;
}

#fazerBannerBtn:hover:not(:disabled) {
    background: #e6c200;
}

#fazerBannerBtn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}

/* ========================= */
/* 📦 CONTAINER TEMPLATES    */
/* ========================= */
.templates-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* ========================= */
/* 🗂️ SEÇÃO DE CATEGORIA     */
/* ========================= */
.template-section {
    width: 100%;
}

.template-section h2 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #ccc;
    text-align: center;
}

/* ========================= */
/* 🖼️ GRID 5 POR LINHA (PC)  */
/* ========================= */
.mini-previews {
    display: grid;
    grid-template-columns: repeat(5, 90px);
    gap: 10px;
    justify-content: center;
}

.mini-template {
    width: 90px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease;
}

.mini-template:hover {
    transform: scale(1.05);
}

.mini-template.selected {
    border-color: #FFD700;
}

/* ========================= */
/* 🔐 MODAL PLUS             */
/* ========================= */
.plus-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.plus-modal-content {
    background: #222;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 300px;
}

.plus-modal-content input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 6px;
    border: none;
}

.plus-modal-content button {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    background: #FFD700;
    cursor: pointer;
    font-weight: bold;
}

.plus-modal-content button:hover {
    background: #e6c200;
}

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

    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.2rem;
    }

    .mini-previews {
        grid-template-columns: repeat(4, 70px);
        gap: 8px;
    }

    .mini-template {
        width: 70px;
    }

    #fazerBannerBtn {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }

}