/* Reset Básico e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0c0c0e;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.banner-header {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.background-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 14, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4;
    padding: 1rem 0;
    background: rgba(0,0,0,0.2);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #00c3ff;
}


.header-content {
    position: relative;
    z-index: 3;
    padding: 0 1rem;
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.header-content p {
    font-size: 1.2rem;
    color: #d0d0d0;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

#searchInput {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem; /* Espaço para o ícone */
    font-size: 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#searchInput::placeholder { color: #ccc; }
#searchInput:focus {
    border-color: rgba(0, 195, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.5);
}

/* --- CONTEÚDO PRINCIPAL --- */
.main-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Filtros */
.filter-container {
    margin-bottom: 3rem;
    text-align: center;
}
.filter-container h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background: rgba(0, 195, 255, 0.2);
    border-color: #00c3ff;
}
.filter-btn.active {
    background: #00c3ff;
    color: #0c0c0e;
    border-color: #00c3ff;
    font-weight: 600;
}

/* Grid de Resultados */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.result-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1d;
    display: flex;
    flex-direction: column;
}

.result-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 195, 255, 0.5);
}

.result-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz este container crescer para preencher o espaço */
    text-align: left;
}
.item-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.category-tag {
    background-color: rgba(0, 195, 255, 0.2);
    color: #00c3ff;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start; /* Alinha a tag no início */
    margin-bottom: 1rem;
}

.details-btn {
    margin-top: auto; /* Empurra o botão para o final do card */
    padding: 0.8rem 1rem;
    background-color: #00c3ff;
    color: #0c0c0e;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
.details-btn:hover {
    background-color: #fff;
}

#notFoundMessage {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-top: 3rem;
    width: 100%;
}

.hidden { display: none; }

/* --- SEÇÃO SOBRE MIM --- */
.about-section {
    background-color: #121214;
    padding: 5rem 0;
    border-top: 1px solid #2c2c2c;
}
.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00c3ff;
}
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.about-text p {
    color: #b0b0b0;
    max-width: 600px;
}
.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}
.social-links a {
    color: #b0b0b0;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: #00c3ff;
    transform: translateY(-3px);
}

/* --- RODAPÉ --- */
.main-footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: #0c0c0e;
    border-top: 1px solid #2c2c2c;
}
.main-footer p { margin-bottom: 0.5rem; }

/* --- MODAL DE DETALHES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #1a1a1d;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close-button:hover { color: #fff; }

#modalBody {
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

.modal-img {
    width: 40%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}
.modal-info {
    width: 60%;
}
.modal-info h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}
.modal-description {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}
.modal-details-list {
    list-style: none;
    margin-bottom: 2rem;
}
.modal-details-list li {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}
.modal-details-list i {
    color: #00c3ff;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #00c3ff;
    color: #0c0c0e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.1rem;
}
.download-btn i { margin-right: 10px; }
.download-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .header-content h1 { font-size: 2.5rem; }
    .header-content p { font-size: 1rem; }
    .banner-header { height: 60vh; }
    
    .main-nav .container { flex-direction: column; gap: 1rem; }

    .about-content { flex-direction: column; text-align: center; }

    #modalBody { flex-direction: column; align-items: center; text-align: center; }
    .modal-img { width: 100%; max-width: 300px; }
    .modal-info { width: 100%; }
}
/* --- ESTILOS PARA OS ANÚNCIOS --- */
.ad-container-horizontal {
    margin: 40px auto; /* Espaço vertical de 40px e centralizado horizontalmente */
    padding: 0 2rem;
    max-width: 1200px; /* Mantém o alinhamento com o container principal do site */
    text-align: center;
}

.ad-container-footer {
    margin-top: 2rem; /* Adiciona um espaço acima do anúncio no rodapé */
    text-align: center;
}
