/*
 Theme Name: Marketing
 Theme URI: https://michelaguiar.com.br/wordpress
 Author: Michel Aguiar
 Author URI: https://michelaguiar.com.br
 Description: Um tema básico baseado no Underscores para o Afiliados de Michel Aguiar.
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: marketing
 Tags: blog, custom-menu, featured-images
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7fc;
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    animation: slideDown 1s ease-out;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navegação */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

nav ul.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1.5rem;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #1e3c72;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
}

nav ul li a:hover {
    color: #ff7043;
    background-color: #f4f7fc;
    border-radius: 5px;
}

/* Submenu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f4f7fc;
    color: #ff7043;
}

/* Seção Hero (Captura Primária) */
.hero.primary-capture {
    background: #5e6569; /* Cinza escuro conforme a imagem */
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    animation: fadeIn 1.5s ease-in;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero-text {
    flex: 1;
    color: white;
    padding-left: 2rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.primary-lead-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.primary-lead-form input {
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    width: 300px;
}

.primary-lead-form button {
    background-color: #ff7043;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.primary-lead-form button:hover {
    background-color: #e65b32;
}

/* Seção de Posts */
.posts-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: slideUp 1s ease-out;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    color: #666;
    margin-bottom: 1rem;
}

.post-content a {
    color: #ff7043;
    text-decoration: none;
    font-weight: 600;
}

/* Seção de Autor */
.author-section {
    background: url('https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=2015&auto=format&fit=crop') no-repeat center/cover;
    padding: 2rem;
    position: relative;
    color: white;
    text-align: center;
    animation: fadeIn 1.5s ease-in;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8));
}

.author-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.author-content img,
.author-content .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.author-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

.social-links a:hover {
    color: #ff7043;
}

/* Seção de Captura de Leads (Secundária) */
.lead-capture {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    animation: fadeIn 2s ease-in;
}

.lead-capture.top {
    margin: 3rem auto;
    max-width: 1200px;
}

.lead-capture.bottom {
    margin: 2rem 0;
    padding: 1.5rem;
    flex: 3;
}

.lead-capture h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lead-capture.bottom h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.lead-capture form {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.lead-capture.top input {
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    width: 300px;
}

.lead-capture.bottom input {
    padding: 0.6rem;
    border: none;
    border-radius: 5px;
    width: 250px;
}

.lead-capture.top button {
    background-color: #ff7043;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lead-capture.bottom button {
    background-color: #ff7043;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lead-capture button:hover {
    background-color: 'e65b32';
}

/* Main Layout com Sidebar e Post */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Sidebar */
.sidebar {
    flex: 1;
    max-width: 300px;
}

.sidebar-section {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.sidebar-section p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 0.5rem;
}

.sidebar-section ul li a {
    color: #ff7043;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-section ul li a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #1e3c72;
    font-size: 1.5rem;
    text-decoration: none;
}

.social-links a:hover {
    color: #ff7043;
}

/* Post Completo */
.post-content {
    flex: 3;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 1s ease-out;
}

.post-content img,
.post-content .post-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #1e3c72;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Animações */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-bottom: 1rem;
    }

    .hero-text {
        padding-left: 0;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .primary-lead-form {
        flex-direction: column;
    }

    .primary-lead-form input {
        width: 100%;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar {
        max-width: 100%;
    }

    .post-content {
        width: 100%;
    }

    .lead-capture form {
        flex-direction: column;
    }

    .lead-capture input {
        width: 100%;
    }

    .lead-capture.top {
        margin: 1.5rem;
    }

    .lead-capture.bottom {
        margin: 1.5rem 0;
    }

    .author-section {
        margin: 1.5rem 0;
    }

    .main-content {
        margin: 1.5rem auto;
    }

    .author-content h2 {
        font-size: 1.5rem;
    }

    .author-meta {
        flex-direction: column;
    }

    /* Menu Responsivo */
    nav ul.nav-menu {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        transform: none;
        opacity: 1;
        display: none;
        background-color: #f4f7fc;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}