/*
Theme Name: WES MiniTool
Description: Tema personalizado para o portal de ferramentas online WES MiniTool. Otimizado para uso com Elementor.
Author: WES MiniTool Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: wes-minitool
Domain Path: /languages
Tags: elementor, tools, responsive, modern, clean
*/

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #F8F8F8;
}

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

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
}

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

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007BFF;
}

/* Main Content */
.main {
    margin-top: 80px;
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E0F2F7;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    margin-bottom: 1.5rem;
}

.tool-icon img {
    width: 64px;
    height: 64px;
}

.tool-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1rem;
}

.tool-description {
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tool-button {
    background-color: #007BFF;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.tool-button:hover {
    transform: translateY(-2px);
}

.tool-button:active {
    transform: translateY(0);
}

/* Cores específicas para cada botão */
.pdf-button {
    background-color: #007BFF;
}

.pdf-button:hover {
    background-color: #0056b3;
}

.image-button {
    background-color: #28A745;
}

.image-button:hover {
    background-color: #1e7e34;
}

.compress-button {
    background-color: #FD7E14;
}

.compress-button:hover {
    background-color: #e8590c;
}

.qr-button {
    background-color: #6F42C1;
}

.qr-button:hover {
    background-color: #5a32a3;
}

/* Footer */
.footer {
    background-color: #333333;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #007BFF;
}

.footer-copyright {
    color: #cccccc;
}

/* Responsividade */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-icon img {
        width: 48px;
        height: 48px;
    }
}

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

.tool-card {
    animation: fadeInUp 0.6s ease forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }

/* Estados de loading para futuras integrações */
.tool-button.loading {
    background-color: #cccccc;
    cursor: not-allowed;
}

.tool-button.loading::after {
    content: "Carregando...";
}

/* Classes utilitárias para Elementor */
.elementor-widget-container .tool-card {
    margin-bottom: 0;
}

.elementor-section .tools-grid {
    margin-bottom: 0;
}

/* Estilos específicos do WordPress */
.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-heading {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

.wp-block-paragraph {
    margin-bottom: 1rem;
}

/* Compatibilidade com Elementor */
.elementor-page .main {
    margin-top: 0;
    padding: 0;
}

.elementor-page .header {
    position: relative;
}

/* Estilos para widgets customizados */
.wes-tool-widget {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.wes-tool-widget .tool-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.wes-tool-widget .tool-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1rem;
    text-align: center;
}

.wes-tool-widget .tool-description {
    color: #666666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wes-tool-widget .tool-button {
    display: block;
    width: 100%;
    text-align: center;
}

