/* ======================================================
   RESET
====================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}


/* ======================================================
   BODY
====================================================== */

body{
    background:#f5f5f5;
    color:#333;
    padding-top:65px; /* Altura do header */
}


/* ======================================================
   HEADER UNIFICADO
====================================================== */

header{
    position:fixed;
    top:0;
    left:0;

    width:100%;
    z-index:9999;

    background:#fff;
    border-bottom:1px solid #ddd;
}


/* Linha única */
.topo{
    max-width:auto;
    margin:auto;

    display:flex;
    align-items:center;
    gap:20px;

    padding:12px 20px;
}


/* ======================================================
   LOGO
====================================================== */

.logo a{
    text-decoration:none;
    font-size:26px;
    font-weight:bold;
    color:#000;
}

.logo span{
    color:#e60000;
}


/* ======================================================
   BUSCA
====================================================== */

.busca{
    flex:1; /* ocupa centro */
    max-width:auto;

    display:flex;
}

.busca input{
    flex:1;
    padding:8px 12px;

    border:1px solid #ccc;
    border-radius:6px 0 0 6px;

    font-size:14px;
}

.busca button{
    padding:8px 18px;

    border:none;
    background:#111;
    color:#fff;

    border-radius:0 6px 6px 0;
    cursor:pointer;
}


/* ======================================================
   AÇÕES (DIREITA)
====================================================== */

.acoes-topo{
    display:flex;
    gap:10px;
    align-items:center;
}


/* Botão entrar */
.btn-topo{
    background:#fff;
    color:#000;

    border:2px solid #000;

    padding:7px 14px;
    border-radius:6px;

    font-weight:bold;
    text-decoration:none;

    transition:.2s;
}


/* Botão anunciar */
.btn-anunciar{
    background:#e60000;
    color:#fff;

    padding:8px 18px;
    border-radius:6px;

    font-weight:bold;
    text-decoration:none;

    transition:.2s;
}


/* Hover */
.btn-topo:hover{
    background:#000;
    color:#fff;
}

.btn-anunciar:hover{
    background:#b80000;
}


/* ======================================================
   REMOVE MENUS ANTIGOS
====================================================== */

.menu,
.menu-wrapper,
.menu-principal,
.header-bottom,
.barra-anuncio{
    display:none !important;
}


/* ======================================================
   HERO
====================================================== */

.hero-pro{
    height:400px;

    background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../img/obra.jpg");

    background-size:cover;
    background-position:center;
    
    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;
    color:#fff;
}

.hero-conteudo{
    max-width:600px;
}

.hero-conteudo h1{
    font-size:42px;
    margin-bottom:10px;
}

.hero-conteudo p{
    font-size:18px;
}


/* ======================================================
   CATEGORIAS
====================================================== */

.categorias-pro{
    margin-top:-70px;

    display:grid;
    grid-template-columns:repeat(5,1fr);

    gap:25px;
    padding:0 40px 40px;
}

.cat-box{
    background:#fff;
    padding:25px 20px;

    border-radius:14px;
    text-align:center;

    text-decoration:none;
    color:#333;

    box-shadow:0 4px 15px rgba(0,0,0,.15);

    transition:.3s;
}

.cat-box:hover{
    transform:translateY(-6px);
}

.cat-box i{
    font-size:36px;
    color:#ffc107;
    margin-bottom:10px;
}

.cat-box h3{
    margin-bottom:5px;
}

.cat-box span{
    font-size:13px;
    color:#777;
}


/* ======================================================
   ANÚNCIOS
====================================================== */

.anuncios{
    padding:40px;
}

.anuncios h2{
    margin-bottom:25px;
    text-align:center;
}

.lista-anuncios{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.anuncio{
    background:#fff;

    border-radius:12px;
    overflow:hidden;

    box-shadow:0 3px 10px rgba(0,0,0,.12);
}

.anuncio img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.anuncio h3{
    padding:10px;
}

.anuncio p{
    padding:0 10px 15px;

    font-weight:bold;
    color:green;
}


/* ================= FOOTER LIMPO E ELEGANTE ================= */

.footer-clean{

    background:#111;

    color:#ccc;

    padding:18px 15px;

    font-size:13px;
}

.footer-inner{

    max-width:1200px;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    flex-wrap:wrap;

    gap:10px;
}


/* Logo */

.footer-logo{

    font-weight:bold;

    font-size:18px;

    color:#fff;
}

.footer-logo span{

    color:#e60000;
}


/* Links */

.footer-links{

    display:flex;

    gap:18px;
}

.footer-links a{

    color:#aaa;

    text-decoration:none;

    transition:0.2s;
}

.footer-links a:hover{

    color:#fff;
}


/* Copyright */

.footer-copy{

    font-size:12px;

    color:#777;
}


/* RESPONSIVO FOOTER */

@media(max-width:700px){

    .footer-inner{

        flex-direction:column;

        text-align:center;

    }

}



/* ======================================================
   RESPONSIVO
====================================================== */

@media(max-width:1000px){

    body{
        padding-top:130px;
    }

    .categorias-pro{
        grid-template-columns:repeat(2,1fr);
        margin-top:-40px;
        padding:0 20px 30px;
    }

    .lista-anuncios{
        grid-template-columns:repeat(2,1fr);
    }

    .hero-conteudo h1{
        font-size:32px;
    }
}


@media(max-width:600px){

    body{
        padding-top:160px;
    }

    .topo{
        flex-direction:column;
        gap:10px;
    }

    .busca{
        max-width:100%;
    }

    .lista-anuncios{
        grid-template-columns:1fr;
    }

    .categorias-pro{
        grid-template-columns:1fr;
    }

    .acoes-topo{
        justify-content:center;
    }

}
/* REMOVER BARRA ANUNCIAR EXTRA */

.barra-anuncio{
    display:none !important;
}

/* ================= LOGIN NOVO ================= */

.login-page{

    min-height:calc(100vh - 180px);

    display:flex;

    align-items:center;

    justify-content:center;

    background:#f5f5f5;

    padding:40px 15px;
}

.login-box{

    background:#fff;

    width:100%;

    max-width:400px;

    padding:30px 25px;

    border-radius:12px;

    box-shadow:0 6px 20px rgba(0,0,0,0.12);

    text-align:center;
}

.login-box h2{

    margin-bottom:10px;

    font-size:24px;
}

.login-box p{

    font-size:14px;

    color:#666;

    margin-bottom:25px;
}

.login-box .form-group{

    text-align:left;

    margin-bottom:15px;
}

.login-box label{

    font-size:13px;

    font-weight:600;

    margin-bottom:5px;

    display:block;
}

.login-box input{

    width:100%;

    padding:10px;

    border:1px solid #ccc;

    border-radius:6px;

    font-size:14px;
}

.login-box input:focus{

    border-color:#ffc107;

    outline:none;
}

.btn-login{

    width:100%;

    margin-top:10px;

    padding:12px;

    background:#000;

    color:#fff;

    border:none;

    border-radius:6px;

    font-weight:bold;

    cursor:pointer;

    transition:0.2s;
}

.btn-login:hover{

    background:#333;
}

.login-links{

    margin-top:18px;

    font-size:13px;
}

.login-links a{

    color:#0066cc;

    text-decoration:none;
}

.login-links a:hover{

    text-decoration:underline;
}
/* ================= FUNDO LOGIN COM IMAGEM ================= */

.login-page{

    background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../img/login-bg.jpg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}


/* Efeito vidro na caixa */

.login-box{

    backdrop-filter: blur(6px);

    background: rgba(255,255,255,0.95);
}
/* ============================
   PAINEL - NOVO PADRÃO LIMPO
============================ */

.painel-container{
    max-width:1300px;
    margin:40px auto;
    padding:0 20px;

    display:flex;
    gap:25px;
}


/* Menu lateral */
.painel-menu{
    width:240px;
    background:#111;
    color:#fff;

    border-radius:12px;
    padding:20px;

    min-height:500px;
}

.painel-menu h3{
    color:#ffc107;
    margin-bottom:20px;
}

.painel-menu a{
    display:block;
    color:#fff;
    text-decoration:none;

    padding:10px 12px;
    border-radius:8px;

    margin-bottom:6px;
    font-size:14px;

    transition:.2s;
}

.painel-menu a:hover,
.painel-menu a.active{
    background:#ffc107;
    color:#000;
}


/* Conteúdo */
.painel-content{
    flex:1;
    background:#fff;

    border-radius:12px;
    padding:25px;

    box-shadow:0 4px 15px rgba(0,0,0,.08);
}


/* Cards */
.painel-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;

    margin:25px 0;
}

.painel-card{
    background:#ffc107;
    border-radius:12px;

    padding:20px;
    text-align:center;

    font-weight:600;

    box-shadow:0 3px 10px rgba(0,0,0,.15);
}

.painel-card h3{
    font-size:28px;
    margin:8px 0;
}


/* Box */
.painel-box{
    background:#fff;

    border-radius:12px;
    padding:20px;

    box-shadow:0 2px 8px rgba(0,0,0,.08);
}


/* Tabela */
.painel-table{
    width:100%;
    border-collapse:collapse;
}

.painel-table th{
    background:#f5f5f5;
    padding:12px;
    text-align:left;
}

.painel-table td{
    padding:12px;
    border-bottom:1px solid #eee;
}


/* Responsivo */
@media(max-width:900px){

    .painel-container{
        flex-direction:column;
    }

    .painel-menu{
        width:100%;
    }

    .painel-cards{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:500px){

    .painel-cards{
        grid-template-columns:1fr;
    }
}
/* FORM PADRÃO */

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.form-box {
    max-width: 600px;
    background: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.form-box h1 {
    text-align: center;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #f7b500;
    outline: none;
}

.btn-primary {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #f7b500;
    color: #000;
}
/* =============================
   FUNDO PÁGINA ANUNCIAR
============================= */

.pagina-anunciar{
    min-height:100vh;

    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("../img/fundo-anunciar.jpg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:40px 15px;
}


/* Caixa branca do formulário */

.anunciar-box{
    background:#fff;

    width:auto;
    max-width:600px;

    padding:0px;
 
    border-radius:12px;

    box-shadow:0 10px 30px(0,0,0,0.25);
}
/* =============================
   FUNDO DO PAINEL (DASHBOARD)
============================= */

.painel-container{

    min-height:100vh;

    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("../img/fundo-anunciar.jpg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:40px 15px;
}


/* Caixa principal branca */

.painel-content{

    background:#fff;

    border-radius:14px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,0.25);
}


/* Menu lateral */

.painel-menu{

    background:#111;

    border-radius:14px;

    padding:25px;

    color:#fff;

    min-width:220px;
}

.anuncio-img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:10px;
}
