/* =========================================================
   SITE DO MEIER - STYLE.CSS
   Versão responsiva
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fa;
    color: #1f2933;
    line-height: 1.6;
}

/* =========================================================
   LINKS
   ========================================================= */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* =========================================================
   TOPO
   ========================================================= */

.topbar {
    background: #075b91;
    color: #fff;
    font-size: 14px;
}

.topbar .container {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.topbar a {
    color: #fff;
    font-weight: 600;
}

.topbar a:hover {
    text-decoration: underline;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dce5ec;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Logo / nome */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #075b91;
    font-weight: 800;
    font-size: 25px;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #075b91;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.logo small {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    margin-top: -4px;
}

/* =========================================================
   NAVEGAÇÃO
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    color: #253746;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

.main-nav a:hover {
    background: #eaf4fb;
    color: #075b91;
}

/* Botão menu mobile */

.menu-toggle {
    display: none;
    border: 0;
    background: #075b91;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

/* =========================================================
   ÁREA DO USUÁRIO
   ========================================================= */

.user-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-area a {
    color: #075b91;
    font-weight: 600;
}

.user-area .btn {
    color: #fff;
}

/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 17px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #075b91;
    color: #fff !important;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
}

.btn:hover {
    background: #064b77;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: #075b91 !important;
    border-color: #075b91;
}

.btn-secondary:hover {
    background: #eaf4fb;
}

.btn-success {
    background: #16834b;
}

.btn-danger {
    background: #c0392b;
}

.btn-warning {
    background: #d88b00;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            rgba(4, 76, 122, 0.98),
            rgba(8, 116, 168, 0.92)
        );
    color: #fff;
    padding: 65px 0;
}

.hero-content {
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero p {
    font-size: 19px;
    max-width: 720px;
    opacity: 0.95;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.7);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   SEÇÕES
   ========================================================= */

.section {
    padding: 45px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section-title {
    font-size: 30px;
    color: #17384d;
    margin-bottom: 5px;
}

.section-subtitle {
    color: #667785;
}

/* =========================================================
   GRID DE NOTÍCIAS
   ========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* =========================================================
   CARD DE NOTÍCIA
   ========================================================= */

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dfe7ed;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
    transition: 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    background: #e8eef3;
}

.news-image-placeholder {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #dceaf3, #f3f7fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7c88;
    font-weight: 700;
}

.news-card-body {
    padding: 20px;
}

.news-category {
    display: inline-block;
    color: #075b91;
    background: #eaf4fb;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 21px;
    line-height: 1.25;
    color: #17384d;
    margin-bottom: 10px;
}

.news-card h3 a:hover {
    color: #075b91;
}

.news-card p {
    color: #63727e;
    font-size: 15px;
}

.news-meta {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #edf1f4;
    color: #7a8790;
    font-size: 13px;
}

/* =========================================================
   ARTIGO
   ========================================================= */

.article {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #dfe7ed;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.article-category {
    display: inline-block;
    color: #075b91;
    background: #eaf4fb;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.article h1 {
    color: #17384d;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
    margin-bottom: 15px;
}

.article-summary {
    color: #52636f;
    font-size: 19px;
    margin-bottom: 20px;
}

.article-meta {
    color: #7a8790;
    font-size: 14px;
    margin-bottom: 25px;
}

.article-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-content {
    color: #26343d;
    font-size: 17px;
    line-height: 1.85;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
    color: #17384d;
    margin: 30px 0 12px;
}

/* =========================================================
   CURTIDAS
   ========================================================= */

.like-box {
    margin-top: 30px;
    padding: 20px;
    background: #f4f8fb;
    border: 1px solid #dce7ee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.like-count {
    color: #075b91;
    font-size: 18px;
    font-weight: 800;
}

/* =========================================================
   COMENTÁRIOS
   ========================================================= */

.comments {
    margin-top: 40px;
}

.comments h2 {
    color: #17384d;
    margin-bottom: 20px;
}

.comment {
    background: #f7f9fb;
    border: 1px solid #e1e7eb;
    border-radius: 9px;
    padding: 16px;
    margin-bottom: 14px;
}

.comment-author {
    font-weight: 800;
    color: #075b91;
}

.comment-date {
    color: #7a8790;
    font-size: 12px;
}

.comment-text {
    margin-top: 8px;
    color: #34434d;
}

.comment-form {
    margin-top: 25px;
}

.comment-form textarea {
    min-height: 130px;
}

/* =========================================================
   FORMULÁRIOS
   ========================================================= */

.form-container {
    max-width: 650px;
    margin: 40px auto;
}

.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #dfe7ed;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.form-card h1,
.form-card h2 {
    color: #17384d;
    margin-bottom: 8px;
}

.form-description {
    color: #6b7881;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #263b49;
    font-weight: 700;
    margin-bottom: 7px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cdd8df;
    border-radius: 7px;
    background: #fff;
    color: #26343d;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #075b91;
    box-shadow: 0 0 0 3px rgba(7, 91, 145, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* =========================================================
   ALERTAS
   ========================================================= */

.alert {
    padding: 14px 17px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: #eaf8f0;
    color: #17663d;
    border-color: #bce4ce;
}

.alert-error {
    background: #fff0ef;
    color: #9b2c25;
    border-color: #efc0bc;
}

.alert-warning {
    background: #fff8e7;
    color: #795b12;
    border-color: #eed89b;
}

.alert-info {
    background: #edf7fc;
    color: #155b7d;
    border-color: #bfdfed;
}

/* =========================================================
   COLUNISTA
   ========================================================= */

.columnist-box {
    background: linear-gradient(135deg, #075b91, #0878ad);
    color: #fff;
    border-radius: 14px;
    padding: 35px;
}

.columnist-box h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.columnist-box p {
    max-width: 750px;
    opacity: 0.95;
    margin-bottom: 20px;
}

/* =========================================================
   TERMOS
   ========================================================= */

.terms {
    background: #fff;
    padding: 35px;
    border: 1px solid #dfe7ed;
    border-radius: 12px;
}

.terms h1 {
    color: #17384d;
    margin-bottom: 10px;
}

.terms h2 {
    color: #075b91;
    font-size: 21px;
    margin-top: 28px;
    margin-bottom: 10px;
}

.terms p {
    margin-bottom: 12px;
}

.terms ul,
.terms ol {
    margin: 10px 0 15px 25px;
}

.accept-box {
    background: #f2f7fa;
    border: 1px solid #d7e3ea;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.accept-box label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}

.accept-box input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #dfe7ed;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.dashboard-card strong {
    display: block;
    color: #075b91;
    font-size: 30px;
}

.dashboard-card span {
    color: #687883;
}

/* =========================================================
   TABELAS
   ========================================================= */

.table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dfe7ed;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th,
td {
    padding: 13px 15px;
    border-bottom: 1px solid #e7edf1;
    text-align: left;
    vertical-align: top;
}

th {
    background: #075b91;
    color: #fff;
    font-size: 14px;
}

td {
    color: #394954;
    font-size: 14px;
}

tr:hover td {
    background: #f8fafb;
}

/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.badge-pendente {
    background: #fff3cd;
    color: #856404;
}

.badge-aprovado,
.badge-publicada {
    background: #dff5e8;
    color: #17663d;
}

.badge-rejeitado,
.badge-arquivada {
    background: #fde5e3;
    color: #9b2c25;
}

.badge-rascunho {
    background: #e9eef2;
    color: #586772;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.site-footer {
    margin-top: 50px;
    background: #17384d;
    color: #dbe7ee;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

.site-footer h3 {
    color: #fff;
    margin-bottom: 12px;
}

.site-footer p {
    color: #b9cad4;
}

.site-footer a {
    color: #dbe7ee;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    color: #9fb4c0;
    font-size: 13px;
}

/* =========================================================
   PAGINAÇÃO
   ========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e0e7;
    border-radius: 6px;
    background: #fff;
    color: #075b91;
    font-weight: 700;
}

.pagination .active {
    background: #075b91;
    color: #fff;
}

/* =========================================================
   UTILITÁRIOS
   ========================================================= */

.text-center {
    text-align: center;
}

.text-muted {
    color: #71808a;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* =========================================================
   RESPONSIVIDADE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .header-inner {
        min-height: 70px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding: 8px 9px;
        font-size: 14px;
    }
}

/* =========================================================
   RESPONSIVIDADE - CELULAR
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(94%, 600px);
    }

    /* Topo */

    .topbar .container {
        justify-content: center;
        text-align: center;
        min-height: 35px;
    }

    /* Header */

    .site-header {
        position: relative;
    }

    .header-inner {
        position: relative;
        min-height: 68px;
        gap: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .logo small {
        font-size: 9px;
    }

    /* Botão mobile */

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    /* Menu */

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e1e8ed;
        border-bottom: 1px solid #dbe4ea;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        z-index: 9999;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        display: block;
        padding: 13px 20px;
        border-radius: 0;
        border-bottom: 1px solid #f0f3f5;
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    /* Área usuário */

    .user-area {
        display: none;
    }

    /* Hero */

    .hero {
        padding: 45px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Seções */

    .section {
        padding: 32px 0;
    }

    .section-header {
        display: block;
    }

    .section-title {
        font-size: 26px;
    }

    /* Notícias */

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-image,
    .news-image-placeholder {
        height: 220px;
    }

    /* Artigo */

    .article {
        padding: 22px;
    }

    .article h1 {
        font-size: 31px;
    }

    .article-content {
        font-size: 16px;
    }

    /* Formulários */

    .form-container {
        width: 100%;
        margin: 25px auto;
    }

    .form-card {
        padding: 22px;
    }

    /* Dashboard */

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Colunista */

    .columnist-box {
        padding: 25px;
    }

    .columnist-box h2 {
        font-size: 25px;
    }

    /* Termos */

    .terms {
        padding: 22px;
    }

    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Botões */

    .btn {
        width: 100%;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Curtidas */

    .like-box {
        align-items: stretch;
    }
}

/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 400px) {

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .article h1 {
        font-size: 27px;
    }

    .section-title {
        font-size: 24px;
    }
}