/*!
Theme Name: ImperatrizMA - Página de Pesquisa
Theme URI: https://imperatrizma.com.br
Description: Um tema WordPress moderno e responsivo para página de pesquisa com espaço para publicidade
Version: 1.0.0
Author: ImperatrizMA
Author URI: https://imperatrizma.com.br
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imperatrizma
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   RESET E ESTILOS BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: #1a1a1a;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

button {
    font-family: inherit;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 100%;
}

/* ============================================
   LOGO/TÍTULO
   ============================================ */

.logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
    font-family: Arial, sans-serif;
    letter-spacing: 0.05em;
}

/* ============================================
   SEÇÃO DE PESQUISA
   ============================================ */

.search-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 3rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: #999;
}

.search-icon {
    color: #999;
    font-size: 1.2rem;
}

/* ============================================
   BOTÕES
   ============================================ */

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid #666;
}

.btn-secondary:hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   SUGESTÕES DE PESQUISA
   ============================================ */

.suggestions {
    text-align: center;
    margin-bottom: 3rem;
    color: #999;
    font-size: 0.9rem;
}

.suggestions p {
    margin-bottom: 0.5rem;
}

.suggestions-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.suggestions-list button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.suggestions-list button:hover {
    color: #ffffff;
}

/* ============================================
   SEÇÃO DE PUBLICIDADE
   ============================================ */

.ads-section {
    background: #252525;
    border-top: 1px solid #333;
    padding: 2rem;
    width: 100%;
}

.ads-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ad-slot {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ad-slot:hover {
    border-color: #555;
    background: #1f1f1f;
    transform: translateY(-2px);
}

.ad-slot-content {
    font-size: 0.9rem;
}

.ad-slot-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #888;
}

.ad-slot-text {
    font-size: 0.8rem;
    color: #666;
}

.ads-info {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.ads-info a {
    color: #2563eb;
    text-decoration: none;
}

.ads-info a:hover {
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-text {
    font-size: 0.8rem;
    color: #666;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .search-section {
        max-width: 100%;
    }

    .ads-grid {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .container {
        padding: 1rem;
    }

    .ads-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .search-box {
        padding: 0.5rem 1rem;
    }

    .search-box input {
        font-size: 0.9rem;
    }

    .suggestions-list {
        gap: 0.5rem;
    }

    .suggestions-list button {
        font-size: 0.8rem;
    }

    .footer-nav {
        gap: 1rem;
    }
}

/* ============================================
   CLASSES UTILITÁRIAS
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ============================================
   WORDPRESS ESPECÍFICO
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wp-caption {
    max-width: 100%;
}

.gallery {
    margin: 0 -8px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    margin: 0;
    padding: 8px;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

.wp-block-image img {
    max-width: 100%;
}

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.clear {
    clear: both;
}
