/* =========================================
   LAYOUT CRIAR POST
   ========================================= */
.admin-post-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px;
    font-family: 'Roboto', sans-serif;
}

.admin-post-header h2 { font-size: 24px; color: #0f1111; margin-bottom: 5px; }
.admin-post-header p { color: #565959; font-size: 14px; margin-bottom: 30px; }

.post-secao { background: #fdfdfd; border: 1px solid #f0f0f0; padding: 25px; border-radius: 8px; }
.post-secao-titulo { font-size: 18px; color: #e30613; border-bottom: 2px solid #f4f4f4; padding-bottom: 10px; margin-bottom: 20px; }

/* Formulários */
.form-grupo { margin-bottom: 20px; }
.form-grupo label { display: block; font-weight: bold; color: #444; font-size: 14px; margin-bottom: 8px; }
.form-grupo input[type="text"], .form-grupo input[type="date"], .form-grupo select {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; outline: none; transition: border 0.3s;
}
.form-grupo input:focus, .form-grupo select:focus { border-color: #e30613; }
.form-linha-dupla { display: flex; gap: 20px; }
.form-linha-dupla .form-grupo { flex: 1; }

/* Área de Upload Tracejada */
.area-upload {
    border: 2px dashed #ccc; background-color: #f9f9f9; padding: 30px; text-align: center;
    border-radius: 6px; cursor: pointer; transition: all 0.3s;
}
.area-upload:hover { border-color: #aaa; background-color: #f1f1f1; }
.area-upload i { font-size: 30px; color: #b5b5b5; margin-bottom: 10px; }
.area-upload p { color: #666; font-size: 14px; margin: 0; }

/* O EDITOR DE TEXTO (Inovação!) */
.editor-toolbar {
    display: flex; gap: 5px; background: #f4f5f7; padding: 8px 10px;
    border: 1px solid #ccc; border-bottom: none; border-radius: 4px 4px 0 0;
}
.editor-toolbar button {
    background: #fff; border: 1px solid #ddd; padding: 6px 12px; border-radius: 4px;
    cursor: pointer; color: #333; font-weight: bold; transition: 0.2s;
}
.editor-toolbar button:hover { background: #e30613; color: #fff; border-color: #e30613; }
.separador-tool { width: 1px; background: #ccc; margin: 0 5px; }

.editor-area {
    width: 100%; border: 1px solid #ccc; border-radius: 0 0 4px 4px;
    padding: 15px; font-size: 14px; outline: none; background: #fff;
    min-height: 100px; line-height: 1.5;
}
.editor-area.editor-grande { min-height: 300px; }
.editor-area[placeholder]:empty:before { content: attr(placeholder); color: #999; cursor: text; }

/* Botão Publicar */
.btn-publicar-vermelho {
    width: 100%; background: #e30613; color: #fff; border: none; padding: 15px;
    border-radius: 6px; font-weight: bold; font-size: 16px; cursor: pointer;
    margin-top: 20px; transition: 0.3s;
}
.btn-publicar-vermelho:hover { background: #c0000e; }

/* =========================================
   PAINEL DE INSERIR ELEMENTOS (VISUAL PREMIUM)
   ========================================= */
.bloco-inserir-avancado {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* O botãozão tracejado que convida a clicar */
.btn-abrir-inserir {
    width: 100%;
    background-color: #fcfcfc;
    border: 2px dashed #d5d9d9;
    color: #666;
    padding: 15px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
}

.btn-abrir-inserir:hover {
    border-color: #e30613;
    color: #e30613;
    background-color: #fffafa;
}

.btn-abrir-inserir i {
    font-size: 20px;
}

/* A caixa onde os cartões aparecem */
.painel-inserir-oculto {
    display: none; /* Escondido por padrão */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 15px;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.painel-inserir-oculto.ativo {
    display: grid; /* O JavaScript troca pra isso quando clica */
}

/* O visual de cada cartãozinho (Imagem, Youtube, etc) */
.btn-item-inserir {
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #444;
}

.btn-item-inserir:hover {
    border-color: #e30613;
    transform: translateY(-3px); /* Dá um pulinho */
    box-shadow: 0 6px 12px rgba(227, 6, 19, 0.08);
}

.btn-item-inserir i {
    font-size: 28px;
    color: #e30613;
}

.btn-item-inserir span {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}