/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
}

/* Fundo da página */
.search-body {
    background-image: url(../images/home-bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container principal */
.visibility {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-h1 {
    font-size: 3rem;
    color: #333;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Container de conteúdo principal */
.mainBody {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Container da barra de pesquisa */
.search {
    width: 100%;
    margin-bottom: 30px;
}

/* ESTILOS PARA REMOVER COMPLETAMENTE O BRANDING DO GOOGLE */
.gcsc-branding,
.gsc-branding,
.gcsc-branding-text,
.gsc-branding-text,
.gcsc-branding-img,
.gsc-branding-img,
.gcsc-branding-img-noclear,
.gsc-branding-img-noclear,
.gcsc-more-maybe-branding-root,
.gsc-adBlock,
.gsc-webResult .gsc-result .gs-spelling-original {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Remover o texto "MELHORADO PELO Google" */
.gsc-control-cse::after,
.gsc-control-cse::before,
.gsc-control-cse-pt::after,
.gsc-control-cse-pt::before {
    content: none !important;
}

/* Estilização da barra de pesquisa do Google CSE */
.gsc-search-box {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.gsc-input-box {
    border: 2px solid #36A656 !important;
    border-radius: 8px !important;
    background: white !important;
    height: 56px !important;
    overflow: hidden !important;
}

.gsc-input-box input {
    padding: 15px 20px !important;
    font-size: 18px !important;
    border: none !important;
    outline: none !important;
    width: 100% !important;
}

.gsc-search-button {
    margin-left: -13px !important;
}

.gsc-search-button button {
    background-color: #36A656 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 15px 30px !important;
    cursor: pointer !important;
    height: 56px !important;
    font-size: 16px !important;
    color: white !important;
    font-weight: bold !important;
}

.gsc-search-button svg {
    fill: white !important;
}

/* Estilização dos resultados */
.gcse-searchresults-only {
    width: 100% !important;
    max-width: 800px !important;
    margin: 30px auto 0 !important;
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.gsc-webResult.gsc-result {
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee !important;
}

.gs-webResult .gs-title {
    color: #1a0dab !important;
    font-size: 18px !important;
    text-decoration: none !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.gs-webResult .gs-visibleUrl {
    color: #006621 !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

.gs-webResult .gs-snippet {
    color: #545454 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Footer */
.rodape {
    background-color: #f5f1f1fd;
    padding: 25px 20px;
    color: #72798f;
    text-align: center;
    font-size: 13px;
    width: 100%;
}

.links {
    margin-bottom: 15px;
}

.list-link {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 0;
}

.link-item a {
    text-decoration: none;
    color: #72798f;
    transition: color 0.3s;
}

.link-item a:hover {
    color: #36A656;
    text-decoration: underline;
}

.rodape p {
    margin: 8px 0;
    line-height: 1.4;
}

/* Responsividade */
@media (max-width: 768px) {
    .logo-h1 {
        font-size: 2.2rem;
    }
    
    .gsc-input-box {
        height: 50px !important;
    }
    
    .gsc-input-box input {
        padding: 12px 15px !important;
        font-size: 16px !important;
    }
    
    .gsc-search-button button {
        padding: 12px 20px !important;
        height: 50px !important;
        font-size: 14px !important;
    }
    
    .gcse-searchresults-only {
        padding: 15px !important;
    }
    
    .list-link {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .logo-h1 {
        font-size: 1.8rem;
    }
    
    .visibility {
        padding: 15px;
    }
    
    .gsc-search-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .gsc-input-box {
        width: 100% !important;
    }
    
    .gsc-search-button {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .gsc-search-button button {
        width: 100% !important;
    }
}