/* ═══════════════════════════════════════════════════════
   LOJA DO MAÇOM — Estilos Principais
   Paleta: Azul escuro #1a2744, Dourado #b8960c, Branco #fff
═══════════════════════════════════════════════════════ */

:root {
    --lm-azul:   #1a2744;
    --lm-azul2:  #243356;
    --lm-dourado:#b8960c;
    --lm-gold2:  #d4af37;
    --lm-branco: #ffffff;
    --lm-cinza:  #f5f5f5;
    --lm-texto:  #333333;
    --lm-verde:  #27ae60;
    --lm-rosa:   #c0392b;
    --lm-radius: 10px;
    --lm-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── Base ─────────────────────────────────────────────── */
.lm-blog-wrap, .lm-curriculo-wrap, .lm-curriculos-wrap,
.lm-login-wrap { font-family: 'Segoe UI', Arial, sans-serif; color: var(--lm-texto); }

.lm-alert { padding: 14px 18px; border-radius: var(--lm-radius); margin-bottom: 16px; }
.lm-alert-error { background: #fde8e8; color: #c0392b; border-left: 4px solid #c0392b; }
.lm-alert-success { background: #e8f5e9; color: #27ae60; border-left: 4px solid #27ae60; }

/* ── Botões ───────────────────────────────────────────── */
.lm-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 6px;
    border: none; cursor: pointer; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: all .2s ease;
}
.lm-btn-gold   { background: var(--lm-dourado); color: var(--lm-branco); }
.lm-btn-gold:hover { background: var(--lm-gold2); color: var(--lm-branco); }
.lm-btn-dark   { background: var(--lm-azul); color: var(--lm-branco); }
.lm-btn-outline{ background: transparent; color: var(--lm-azul); border: 2px solid var(--lm-azul); }
.lm-btn-outline:hover { background: var(--lm-azul); color: var(--lm-branco); }
.lm-btn-sm { padding: 6px 14px; font-size: 13px; }
.lm-btn-lg { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }

/* ── Login ────────────────────────────────────────────── */
.lm-login-wrap { display: flex; justify-content: center; padding: 40px 20px; }
.lm-login-box {
    background: var(--lm-branco); border-radius: 16px;
    box-shadow: var(--lm-shadow); padding: 40px;
    width: 100%; max-width: 420px;
    border-top: 5px solid var(--lm-dourado);
}
.lm-login-logo { text-align: center; margin-bottom: 28px; }
.lm-login-logo .lm-compass { font-size: 48px; display: block; margin-bottom: 8px; }
.lm-login-logo h2 { color: var(--lm-azul); margin: 0; font-size: 22px; }
.lm-login-logo p  { color: #888; margin: 4px 0 0; font-size: 14px; }
.lm-hint { text-align: center; font-size: 12px; color: #999; margin-top: 14px; }

/* ── Fields / Inputs ─────────────────────────────────── */
.lm-field { margin-bottom: 16px; }
.lm-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--lm-azul); }
.lm-input, .lm-textarea, select.lm-input {
    width: 100%; padding: 10px 14px; border: 2px solid #e0e0e0;
    border-radius: 6px; font-size: 14px; box-sizing: border-box;
    transition: border-color .2s;
}
.lm-input:focus, .lm-textarea:focus { outline: none; border-color: var(--lm-dourado); }
.lm-input-sm { padding: 7px 12px; font-size: 13px; width: auto; min-width: 150px; }

/* ── Blog Header ──────────────────────────────────────── */
.lm-blog-header {
    background: linear-gradient(135deg, var(--lm-azul) 0%, var(--lm-azul2) 100%);
    color: var(--lm-branco); padding: 24px 30px;
    border-radius: var(--lm-radius); margin-bottom: 24px;
}
.lm-blog-header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.lm-blog-header h1 { margin: 0; font-size: 26px; color: var(--lm-gold2); }
.lm-blog-header p  { margin: 4px 0 0; opacity: .8; font-size: 14px; }
.lm-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Tabs ─────────────────────────────────────────────── */
.lm-tabs { display: flex; border-bottom: 3px solid #e0e0e0; margin-bottom: 24px; gap: 4px; }
.lm-tab {
    padding: 12px 24px; border: none; background: none; cursor: pointer;
    font-size: 15px; font-weight: 600; color: #888; border-bottom: 3px solid transparent;
    margin-bottom: -3px; transition: all .2s;
}
.lm-tab.active { color: var(--lm-azul); border-bottom-color: var(--lm-dourado); }
.lm-tab:hover  { color: var(--lm-azul); }
.lm-refresh-btn {
    background: none; border: none; cursor: pointer; font-size: 14px;
    padding: 2px 6px; margin-left: 4px; border-radius: 4px;
    transition: transform .3s;
}
.lm-refresh-btn:hover { transform: rotate(180deg); }

/* ── Posts Grid ───────────────────────────────────────── */
.lm-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.lm-post-card {
    background: var(--lm-branco); border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow); overflow: hidden;
    border-top: 3px solid var(--lm-dourado); transition: transform .2s;
}
.lm-post-card:hover { transform: translateY(-4px); }
.lm-post-thumb img  { width: 100%; height: 180px; object-fit: cover; }
.lm-post-body       { padding: 18px; }
.lm-post-body h3    { margin: 0 0 8px; color: var(--lm-azul); font-size: 17px; }
.lm-post-meta       { font-size: 12px; color: #888; margin-bottom: 10px; }
.lm-post-excerpt    { font-size: 14px; color: #555; margin-bottom: 14px; line-height: 1.6; }

/* ── Notícias GOPSP ───────────────────────────────────── */
.lm-noticias-list { display: grid; gap: 16px; }
.lm-noticia-card {
    background: var(--lm-branco); border-radius: var(--lm-radius);
    padding: 20px; box-shadow: var(--lm-shadow);
    border-left: 4px solid var(--lm-azul); position: relative;
}
.lm-noticia-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--lm-azul); color: var(--lm-gold2);
    font-size: 10px; font-weight: 700; padding: 3px 8px;
    border-radius: 4px; letter-spacing: 1px;
}
.lm-noticia-card h3 { margin: 0 0 10px; font-size: 16px; padding-right: 60px; }
.lm-noticia-card h3 a { color: var(--lm-azul); text-decoration: none; }
.lm-noticia-card h3 a:hover { color: var(--lm-dourado); }
.lm-noticia-card p  { color: #666; font-size: 14px; margin: 0 0 12px; line-height: 1.6; }
.lm-noticia-data    { font-size: 12px; color: #999; display: block; margin-bottom: 12px; }

/* ── Card / Form ──────────────────────────────────────── */
.lm-card { background: var(--lm-branco); border-radius: var(--lm-radius); padding: 28px; box-shadow: var(--lm-shadow); margin-bottom: 24px; }
.lm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lm-field-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .lm-form-grid { grid-template-columns: 1fr; } }

/* ── Currículo Hero ───────────────────────────────────── */
.lm-curriculo-hero {
    background: linear-gradient(135deg, var(--lm-azul), var(--lm-azul2));
    color: var(--lm-branco); padding: 36px; border-radius: var(--lm-radius);
    text-align: center; margin-bottom: 28px;
}
.lm-curriculo-hero h2 { color: var(--lm-gold2); margin: 0 0 10px; font-size: 28px; }
.lm-curriculo-hero p  { opacity: .9; font-size: 15px; line-height: 1.6; margin: 0; }

/* ── Áreas Checkboxes ─────────────────────────────────── */
.lm-areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; padding: 12px; background: var(--lm-cinza); border-radius: 8px; }
.lm-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; padding: 6px 10px; border-radius: 6px; transition: background .15s; }
.lm-checkbox-label:hover { background: #e8eaf6; }
.lm-checkbox-label input { accent-color: var(--lm-dourado); width: 16px; height: 16px; }

/* ── Currículos Header ────────────────────────────────── */
.lm-curriculos-header { margin-bottom: 20px; }
.lm-curriculos-header h2 { color: var(--lm-azul); margin: 0 0 12px; }
.lm-stats-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lm-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; padding: 16px; background: var(--lm-cinza); border-radius: 8px; }

/* ── Curriculum Cards ─────────────────────────────────── */
#lm-curriculos-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 20px; }
.lm-curriculo-card {
    background: var(--lm-branco); border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow); overflow: hidden;
    border-top: 4px solid var(--lm-verde); transition: transform .2s;
}
.lm-curriculo-card.lm-hired { border-top-color: #bbb; opacity: .85; }
.lm-curriculo-card:hover { transform: translateY(-3px); }
.lm-curriculo-card-header { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #f0f0f0; }
.lm-curriculo-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lm-azul); color: var(--lm-gold2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.lm-curriculo-info { flex: 1; }
.lm-curriculo-info h4 { margin: 0 0 4px; font-size: 16px; color: var(--lm-azul); }
.lm-curriculo-details { padding: 14px 18px; }
.lm-detail-row { font-size: 13px; color: #666; margin-bottom: 8px; }
.lm-mini-cv { font-size: 13px; color: #555; line-height: 1.6; background: var(--lm-cinza); padding: 10px; border-radius: 6px; margin: 10px 0 0; }
.lm-curriculo-footer { padding: 12px 18px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.lm-contato { font-size: 13px; }
.lm-contato a { color: var(--lm-azul); }
.lm-acoes { display: flex; gap: 8px; align-items: center; }
.lm-contratado-info { font-size: 12px; color: #888; }

/* ── Areas Tags ───────────────────────────────────────── */
.lm-areas-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.lm-area-tag { background: #e8eaf6; color: var(--lm-azul); font-size: 12px; padding: 3px 10px; border-radius: 20px; }

/* ── Badges ───────────────────────────────────────────── */
.lm-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.lm-badge-blue { background: #e3f0ff; color: #1a4a8a; }
.lm-badge-green { background: #e8f5e9; color: #27ae60; }
.lm-badge-gold  { background: #fef9e7; color: #b8960c; }
.lm-badge-pink  { background: #fde8f0; color: #c0392b; }

/* ── Status ───────────────────────────────────────────── */
.lm-status { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.lm-status-ok   { background: #e8f5e9; color: var(--lm-verde); }
.lm-status-hired{ background: #f0f0f0; color: #888; }

/* ── Empty State ──────────────────────────────────────── */
.lm-empty { text-align: center; padding: 48px 20px; color: #aaa; }
.lm-empty span { font-size: 48px; display: block; margin-bottom: 12px; }
.lm-empty p { font-size: 16px; line-height: 1.6; }

/* ── Modal ────────────────────────────────────────────── */
.lm-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lm-modal-inner { background: var(--lm-branco); border-radius: 16px; padding: 32px; max-width: 700px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; }
.lm-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }

/* ── Novo Post Form ───────────────────────────────────── */
.lm-novo-post-form { border-top: 4px solid var(--lm-dourado); }
.lm-novo-post-form h3 { color: var(--lm-azul); margin: 0 0 20px; }
.lm-textarea { resize: vertical; line-height: 1.6; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .lm-blog-header-inner { flex-direction: column; text-align: center; }
    #lm-curriculos-cards  { grid-template-columns: 1fr; }
    .lm-curriculo-footer  { flex-direction: column; }
    .lm-tabs { overflow-x: auto; }
}
/* ── Toast Notification ───────────────────────────────── */
.lm-toast {
    position: fixed; bottom: 30px; right: 30px; z-index: 999999;
    background: #1a2744; color: #d4af37;
    padding: 14px 24px; border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    font-size: 15px; font-weight: 600;
    opacity: 0; transform: translateY(20px);
    transition: all .3s ease;
}
.lm-toast-show { opacity: 1; transform: translateY(0); }

/* ── Spin animation ───────────────────────────────────── */
@keyframes lm-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
