/*
Theme Name: Amazon Products Theme
Theme URI: https://seudominio.com
Author: Manus AI
Description: Tema WordPress integrado com o plugin Amazon PA-API para exibição de produtos da Amazon com sistema de afiliados. Inclui design responsivo e otimizado para conversão.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amazon-products-theme
Tags: e-commerce, affiliate, amazon, products, responsive, two-columns, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

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

/* Variáveis CSS */
:root {
    --primary-color: #ff9900;
    --primary-hover: #e68900;
    --secondary-color: #232f3e;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Tipografia */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

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

/* Header */
.site-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.site-title:hover {
    color: var(--primary-color);
}

.site-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Navegação */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Conteúdo principal */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color), #1a252f);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Produtos em destaque */
.featured-products {
    margin: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Estilo para produtos do plugin Amazon PA-API */
.amazon-produto {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.amazon-produto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.amazon-produto h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amazon-produto img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin: 1rem 0;
    border-radius: 4px;
}

.amazon-produto p {
    margin: 0.5rem 0;
}

.amazon-produto strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Botão Amazon */
.botao-amazon {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 24px;
    text-decoration: none !important;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.botao-amazon:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Tabela de comparação */
.amazon-compare {
    margin: 2rem 0;
    overflow-x: auto;
}

.amazon-compare table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.amazon-compare th,
.amazon-compare td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.amazon-compare th {
    background: var(--light-gray);
    font-weight: bold;
    color: var(--secondary-color);
}

.amazon-compare img {
    max-width: 120px;
    height: auto;
    border-radius: 4px;
}

/* Seções de conteúdo */
.content-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .amazon-produto {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .amazon-produto h3 {
        font-size: 1rem;
        min-height: auto;
    }
    
    .amazon-produto img {
        height: 150px;
    }
    
    .botao-amazon {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amazon-produto {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilitários */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states para acessibilidade */
a:focus,
button:focus,
.botao-amazon:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .botao-amazon {
        display: none;
    }
    
    .amazon-produto {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

