/*
Theme Name: Hora do Emprego
Theme URI: https://horadoemprego.com.br/
Author: Antigravity AI
Author URI: https://google.com/
Description: Tema profissional para portal de vagas de emprego e carreira, otimizado para SEO e Google AdSense.
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: hora-do-emprego
Tags: jobs, blog, custom-header, custom-menu, featured-images, responsive-layout, theme-options

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* -------------------------------------------------------------------------
   CSS RESET & VARIABLES
   ------------------------------------------------------------------------- */
:root {
    --primary-color: #0046be;
    --primary-dark: #00338d;
    --secondary-color: #00a1e4;
    --accent-color: #ff9900;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f4f7f9;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --radius: 8px;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

/* -------------------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding: 40px 0;
}

/* -------------------------------------------------------------------------
   HEADER
   ------------------------------------------------------------------------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    max-height: 50px;
}

.main-navigation ul {
    display: flex;
    gap: 20px;
}

.main-navigation a {
    font-weight: 600;
    color: var(--text-main);
}

.btn-search-jobs {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search-jobs i {
    font-size: 1.1rem;
}

.btn-search-jobs:hover {
    background: var(--primary-dark);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle, .menu-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: inline-block !important; }

    .site-header { padding: 10px 0; }
    
    .logo h1 { font-size: 1.2rem; }

    .menu-toggle { display: block; }
    
    .header-right-actions { gap: 10px; }

    .btn-search-jobs {
        padding: 8px 12px;
        min-width: 40px;
    }

    /* Mobile Navigation Drawer */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.3s ease-in-out;
        padding: 60px 20px 20px;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid #f1f5f9;
    }

    .main-navigation a {
        display: block;
        padding: 18px 20px;
        font-size: 1.15rem;
        color: var(--text-main);
        transition: background 0.2s;
    }

    .main-navigation a:active {
        background: #f8fafc;
        color: var(--primary-color);
    }

    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        color: #64748b;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .menu-close:active {
        background: #f1f5f9;
        color: var(--primary-color);
    }

    body.menu-open {
        overflow: hidden;
    }
    
    /* Overlay semi-transparente quando menu abre */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
        animation: fadeIn 0.3s forwards;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -------------------------------------------------------------------------
   MODERN JOB CARDS
   --------------------------------:root */
.job-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.job-info h3 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.job-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.job-badge {
    background: #eef2f7;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* -------------------------------------------------------------------------
   SaaS STYLES & DASHBOARD
   ------------------------------------------------------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.publish { background: #dcfce7; color: #15803d; }
.status-badge.pending { background: #fef9c3; color: #a16207; }
.status-badge.private { background: #f3f4f6; color: #4b5563; }

.plan-card {
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.plan-card.highlight {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.auth-box {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.gap-20 { gap: 20px; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-5 { margin-top: 1.25rem; }

/* Nova Estrutura Dashboard */
.dashboard-grid { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.dashboard-card { background: white; padding: 30px; border-radius: 20px; border: 1px solid #eef2f6; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

.dashboard-nav { list-style: none; padding: 0; margin: 0; }
.dashboard-nav li a { 
    display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 12px;
    color: #64748b; font-weight: 600; text-decoration: none; transition: 0.3s;
}
.dashboard-nav li a:hover { background: #f8fafc; color: var(--primary-color); }
.dashboard-nav li a.active { background: var(--primary-color); color: white; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); }

/* Stats e Cards */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { text-align: center; background: white; padding: 25px; border-radius: 20px; border: 1px solid #e2e8f0; transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.stat-label { display: block; font-size: 0.85rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { display: block; font-size: 2.2rem; font-weight: 800; color: #1e293b; }

.premium-sidebar { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); color: white; padding: 25px; border-radius: 20px; }
.premium-sidebar h4 { color: #facc15; margin-bottom: 10px; }
.premium-sidebar p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 20px; }

/* Tabelas e Botões */
.dashboard-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.dashboard-table th { padding: 15px; color: #64748b; font-weight: 600; text-align: left; }
.dashboard-table td { background: white; padding: 20px 15px; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.dashboard-table td:first-child { border-left: 1px solid #f1f5f9; border-top-left-radius: 15px; border-bottom-left-radius: 15px; }
.dashboard-table td:last-child { border-right: 1px solid #f1f5f9; border-top-right-radius: 15px; border-bottom-right-radius: 15px; }

.status-badge { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; text-transform: capitalize; }
.status-badge.publish { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.private { background: #f1f5f9; color: #475569; }

/* Forms */
.alert-form label { display: block; font-weight: 600; margin-bottom: 8px; color: #334155; }
.alert-form input, .alert-form select { width: 100%; padding: 12px 15px; border-radius: 10px; border: 1px solid #cbd5e1; outline: none; transition: 0.3s; }
.alert-form input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }

/* Botoes e Interacao */
.save-job-btn {
    background: #f8fafc; border: 1px solid #e2e8f0; padding: 10px 20px; border-radius: 12px;
    cursor: pointer; font-weight: 600; color: #64748b; transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.save-job-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.save-job-btn.active { background: #fefce8; border-color: #facc15; color: #854d0e; }

.btn-search-jobs {
    background: var(--primary-color); color: white; border: none; padding: 12px 25px;
    border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; text-decoration: none;
    display: inline-block; text-align: center;
}
.btn-search-jobs:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2); }

.whitespace-pre-wrap { white-space: pre-wrap; }
.gap-5 { gap: 1.25rem; }
.mt-3 { margin-top: 0.75rem; }

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* --- FOOTER --- */
.site-footer {
    background: #0f172a;
    color: #f1f5f9;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15); /* Aumentado de 0.05 para 0.15 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.site-footer .widget-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    text-transform: none;
    border: none;
}

.site-footer .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-newsletter p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-subscribe {
    display: flex;
    gap: 10px;
}

.footer-subscribe input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    flex: 1;
    outline: none;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Generic Page Styles */
.generic-page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 20px;
    text-align: center;
    border-radius: 24px;
    margin-bottom: 60px;
    border: 1px solid #e2e8f0;
}

.generic-page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1.5px;
    margin: 0;
}

.generic-article {
    background: white;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    line-height: 1.8;
    color: #334155;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.generic-article h2 {
    color: #0f172a;
    margin-top: 45px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.generic-article p {
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .generic-article { padding: 30px; }
    .generic-page-header { padding: 50px 20px; }
    .generic-page-header h1 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .site-info { flex-direction: column; text-align: center; gap: 15px; }
}
