/* Variáveis CSS para cores e outras configurações */
:root {
    --primary-color: #FF69B4; /* Rosa Vibrante */
    --secondary-color: #00CED1; /* Azul Turquesa */
    --background-color: #F8F9FA; /* Fundo Suave */
    --text-color: #333;
    --text-light: #666;
    --border-color: #E0E0E0;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.05);
    --sidebar-width: 250px;
}

/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilitários */
.align-center {
    text-align: center;
}
.sidebar-top-margin {
    margin-top: 30px;
}
.full-width {
    width: 100%;
}
.margin-top-50 {
    margin-top: 50px;
}
.margin-bottom-50 {
    margin-bottom: 50px;
}

/* Header e Navegação */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Conteúdo Principal e Estrutura SPA */
main {
    padding: 40px 0;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Hero Section (Página Inicial) */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255,105,180,0.1) 0%, rgba(0,206,209,0.1) 100%);
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Cards e Grids */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.craft-types { /* Grid para cards na Home */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.craft-card, .category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    cursor: pointer;
    padding-bottom: 20px;
}

.category-card {
    padding-bottom: 0; /* Remove padding extra se o conteúdo já o tiver */
}

.craft-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.craft-card-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 20px auto;
    transition: background-color 0.3s;
}

.craft-card:hover .craft-card-icon {
    background-color: var(--secondary-color);
}

.craft-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.craft-card p {
    padding: 0 20px;
    color: var(--text-light);
}

.category-image {
    height: 180px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--secondary-color);
}
.category-content {
    padding: 20px;
}
.category-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.category-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background-color: rgba(0, 206, 209, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}
/* Estilos específicos para a tag de tendência do blog */
.tag-tendencia { 
    background-color: rgba(255, 105, 180, 0.1); 
    color: var(--primary-color); 
}

/* Botões (CTA) */
.cta-sections {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}
.cta-section {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s;
}
.cta-section:hover {
    transform: translateY(-5px);
}
.cta-section i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.cta-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 15px;
}
.btn:hover {
    background-color: #FF5FA4;
}
.btn-secondary {
    background-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: #00A9B8;
}

/* Layout de Artigo/Sidebar */
.article-container {
    display: flex;
    gap: 30px;
}
.article-content {
    flex: 1;
}
.sidebar {
    width: var(--sidebar-width);
    position: sticky;
    top: 90px;
    height: fit-content;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}
.sidebar-menu ul {
    list-style: none;
}
.sidebar-menu ul li {
    margin-bottom: 10px;
}
.sidebar-menu ul li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    transition: color 0.3s;
}
.sidebar-menu ul li a:hover {
    color: var(--primary-color);
}

/* Estilos de Artigo */
.article-title {
    color: var(--text-color); /* Retira o rosa do h1 do blog post, deixando-o preto */
}
.article-meta {
    color: var(--text-light);
    margin-bottom: 25px;
    font-style: italic;
    text-align: left;
}
.article-image {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--primary-color);
}
.article-section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    text-align: left; /* Garante que o texto do artigo seja justificado à esquerda */
}
.article-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color); /* Mantém o h2 rosa no artigo */
}
.affiliate-section {
    background-color: rgba(255, 105, 180, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    text-align: center; /* Centraliza o conteúdo da seção de afiliação */
}
.affiliate-link {
    /* Estilos dos cards de link de afiliado dentro da seção */
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-width: 200px;
}
.affiliate-link i {
    /* Estilos para os ícones de afiliação */
    font-size: 30px;
}

/* Rodapé */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* Responsividade */
@media (max-width: 992px) {
    .article-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .sidebar-menu h3 {
        display: none; 
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
        box-shadow: none;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-menu ul {
        display: flex;
        gap: 10px;
        white-space: nowrap;
        padding: 0 15px;
        list-style: none;
    }
    
    .sidebar-menu ul li {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .sidebar-menu ul li a {
        border-bottom: none;
        padding: 8px 15px;
        border-radius: 20px;
        background-color: var(--background-color);
    }
    
    .sidebar-menu ul li a:hover {
        background-color: var(--primary-color);
        color: white;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .cta-sections {
        flex-direction: column;
    }

    .craft-types {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}