/* Reset básico e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #1a1a1a;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.background-header {
    width: 100%;
    min-height: 280px;
    position: relative;
    background: 
        url(https://leonidabrasil.com.br/uploads/image/5c374ff06639.webp),
        linear-gradient(90deg, #4C5299, #90619E);
    background-size: 
        contain,
        100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    border-bottom: 5px solid #36216C;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Barra de busca */
.search-container {
    width: 100%;
    max-width: 600px;
}

.search-form {
    display: flex;
    width: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

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

.search-button {
    padding: 15px 20px;
    border: none;
    background: #4C5299;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #36216C;
}

.search-button svg {
    width: 20px;
    height: 20px;
}

/* Conteúdo principal */
.main-content {
    background-color: #1a1a1a;
    padding: 40px 0;
    min-height: calc(100vh - 280px - 100px);
}

/* Seção de Destaques */
.featured-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.featured-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: #fff;
}

.featured-info h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.featured-info p {
    font-size: 16px;
    color: #ccc;
}

/* Botão CTA */
.cta-section {
    margin: 40px 0;
    text-align: center;
}

.cta-button {
    width: 100%;
    padding: 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.cta-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

/* Disclaimer */
.disclaimer-section {
    margin: 30px 0;
    text-align: center;
}

.disclaimer-box {
    background: #dc3545;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.disclaimer-box p {
    font-size: 14px;
    line-height: 1.8;
}

.disclaimer-box strong {
    font-weight: bold;
}

/* Grid de Categorias */
.categories-section {
    margin-top: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.category-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-card:hover .category-image img {
    opacity: 1;
    transform: scale(1.05);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 15px;
    color: #fff;
}

.category-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.category-info p {
    font-size: 14px;
    color: #ccc;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid #333;
    margin-top: 50px;
}

.footer p {
    font-size: 14px;
    color: #ccc;
}

.footer strong {
    color: #fff;
    font-weight: bold;
}

/* Media queries para responsividade */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }

    .background-header {
        min-height: 220px;
        padding: 30px 20px;
    }

    .logo img {
        max-width: 150px;
        max-height: 150px;
    }

    .featured-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-image {
        height: 300px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-image {
        height: 250px;
    }

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

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }

    .background-header {
        min-height: 180px;
        padding: 20px 15px;
    }

    .logo img {
        max-width: 120px;
        max-height: 120px;
    }

    .header-content {
        gap: 20px;
    }

    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-button {
        padding: 12px 15px;
    }

    .featured-image {
        height: 250px;
    }

    .featured-info h2 {
        font-size: 22px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-image {
        height: 300px;
    }

    .cta-button {
        padding: 15px;
        font-size: 14px;
    }

    .disclaimer-box {
        padding: 15px;
    }

    .disclaimer-box p {
        font-size: 12px;
    }
}
