/*
 * METALMENTE - CSS GLOBAL
 * Arquivo CSS principal com todos os estilos do site
 * Versão: 2.0 - Otimizado e unificado
 */

/* ============================================
   RESET E BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   HEADER / NAVEGAÇÃO
   ============================================ */

.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

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

.header-contact span {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-social a {
    color: white;
    margin-left: 1rem;
    transition: color 0.3s;
}

.header-social a:hover {
    color: #3498db;
}

.header-main {
    padding: 1rem 0;
}

.navbar {
    padding: 0;
}

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

.navbar-brand {
    flex-shrink: 0;
}

.navbar-brand .brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s;
}

.navbar-brand .brand-link:hover {
    transform: translateY(-2px);
}

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

.brand-text {
    color: white;
    font-size: 1.5rem;
}

.brand-text strong {
    color: #3498db;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    transform: translateY(-2px);
}

.navbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-toggle,
.theme-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.search-toggle:hover,
.theme-toggle:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Search Bar */
.search-bar {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    display: none;
}

.search-bar.active {
    display: block;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-group {
    flex: 1;
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: #3498db;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

.search-close {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: auto;
}

.footer-main {
    padding: 3rem 0;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link.facebook { background: #3b5998; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.linkedin { background: #0077b5; }
.social-link.youtube { background: #ff0000; }
.social-link.whatsapp { background: #25d366; }

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.newsletter-input-group:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.newsletter-form input {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    background: #3498db;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #2980b9;
}

.newsletter-privacy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-align: center;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #3498db;
}

.back-to-top button {
    background: #3498db;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top button:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-nav a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-nav span:not(:last-child) {
    color: #999;
}

/* ============================================
   BOTÕES E COMPONENTES
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #229954;
}

/* ============================================
   CARDS E ARTIGOS
   ============================================ */

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-tag,
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #3498db;
}

.article-summary,
.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================
   PAGINAÇÃO
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: white;
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.current {
    background: #3498db;
    color: white;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

.text-center {
    text-align: center;
}

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

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

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
}

.error {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success {
    background: #27ae60;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: #2c3e50;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .footer-main {
        padding: 2rem 0;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
}

/* ============================================
   HEADER PADRONIZADO - NOVO DESIGN
   ============================================ */

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header .logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.header .logo:hover {
    transform: translateY(-2px);
}

.header .logo i {
    font-size: 28px;
    color: #e74c3c;
}

.header .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header .nav-menu li {
    margin: 0;
}

.header .nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
}

.header .nav-menu a:hover,
.header .nav-menu a.active {
    color: #3498db;
}

/* Responsivo para Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .header .logo {
        font-size: 20px;
    }
    
    .header .logo i {
        font-size: 24px;
    }
}

/* ============================================
   NEWSLETTER - CORREÇÃO DE ESTILO
   ============================================ */

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 25px 0 0 25px; /* Curvado apenas na esquerda */
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    border-right: none;
}

.newsletter-form input[type="email"]:focus {
    border-color: #3498db;
}

.newsletter-form button {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0; /* Curvado apenas na direita */
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: #2980b9;
}

.newsletter-form button i {
    font-size: 16px;
}

.newsletter-privacy {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}
