/* ============================================
   VAGAS TI - Minimalist Apple-Inspired Design
   ============================================ */

:root {
    --primary-color: #0071e3;
    --primary-light: #0a84ff;
    --secondary-color: #f5f5f7;
    --text-primary: #1d1d1d;
    --text-secondary: #6e6e73;
    --border-color: #e5e5e7;
    --bg-light: #ffffff;
    --bg-dark: #f5f5f7;
    --success-color: #34c759;
    --warning-color: #ff9500;
    --error-color: #ff3b30;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
body.dark-mode {
    --primary-color: #0a84ff;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border-color: #424245;
    --bg-light: #1d1d1d;
    --bg-dark: #2a2a2e;
    --secondary-color: #2a2a2e;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    transition: var(--transition);
}

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

a:hover {
    opacity: 0.8;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .navbar {
    background-color: rgba(29, 29, 29, 0.8);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    font-size: 24px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    margin-left: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

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

.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--secondary-color);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    margin-bottom: 60px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-dark);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-reset-filters {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-filters:hover {
    color: var(--primary-color);
}

/* ============================================
   STATISTICS
   ============================================ */

.quick-stats {
    margin-bottom: 80px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.stat-card,
.stat-card-large {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover,
.stat-card-large:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-card-large .stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.stat-label,
.stat-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================
   FEATURED JOBS
   ============================================ */

.featured-section {
    margin-bottom: 80px;
}

.featured-jobs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.job-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.job-source {
    background-color: var(--secondary-color);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.job-company {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.job-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.job-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.view-all-link {
    text-align: center;
    margin-top: 40px;
}

.link-arrow {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 8px;
}

/* ============================================
   SOURCES SECTION
   ============================================ */

.sources-section {
    margin-bottom: 80px;
}

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

.source-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.source-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.source-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.source-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.source-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   QUICK LINKS
   ============================================ */

.quick-links-section {
    margin-bottom: 80px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.quick-link-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.quick-link-card:hover {
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.link-icon {
    font-size: 28px;
}

.link-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   VAGAS PAGE
   ============================================ */

.vagas-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.filters-sidebar {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.filters-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--bg-light);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.vagas-main {
    flex: 1;
}

.sync-info {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.sync-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

.sync-info.syncing .sync-indicator {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.vagas-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vaga-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.vaga-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.vaga-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.vaga-titulo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.vaga-origem {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.vaga-empresa {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vaga-local {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.vaga-descricao {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.vaga-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.vaga-data {
    font-size: 12px;
    color: var(--text-secondary);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-dots {
    color: var(--text-secondary);
    padding: 0 4px;
}

/* ============================================
   STATISTICS PAGE
   ============================================ */

.stats-page-container {
    max-width: 1280px;
    margin: 0 auto;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card-large {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.charts-grid .full-width {
    grid-column: 1 / -1;
}

.chart-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.chart-container h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.chart-container canvas {
    max-height: 300px;
}

/* ============================================
   SYNC HISTORY
   ============================================ */

.sync-history-section {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 60px;
}

.sync-history-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table thead {
    border-bottom: 2px solid var(--border-color);
}

.history-table th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.history-table td {
    padding: 16px 12px
(Content truncated due to size limit Use line ranges to read remaining content) }


/* =========================================
   FOOTER - DESIGN MINIMALISTA (APPLE STYLE)
========================================= */
.footer {
    background-color: #f5f5f7; /* Cor Secundária do Projeto */
    color: #1d1d1d; /* Texto Principal */
    padding: 60px 0 24px;
    border-top: 1px solid #e5e5e7;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    margin-top: auto; /* Mantém o footer no fundo se o conteúdo for curto */
}

.footer-container {
    max-width: 1280px; /* Breakpoint Desktop */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 0 24px;
}

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

.footer-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.85rem;
    color: #6e6e73; /* Texto Secundário */
    line-height: 1.6;
}

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

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

.footer-links a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0071e3; /* Azul Primário */
}

.sync-status-footer {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e5e7;
    font-size: 0.8rem;
    color: #6e6e73;
}

.footer-divider {
    height: 1px;
    background-color: #e5e5e7;
    margin: 40px auto 24px;
    max-width: 1280px;
}

.footer-bottom {
    text-align: center;
    padding: 0 24px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #6e6e73;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer {
        padding: 40px 0 20px;
    }
}

/* =========================================
   ICONS & QUICK LINKS (APPLE STYLE)
========================================= */

/* Ajuste padrão para ícones Lucide */
.lucide {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.inline-icon {
    width: 16px;
    height: 16px;
    color: #6e6e73;
    margin-right: 6px;
    transform: translateY(-2px);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: #0071e3;
    margin-right: 10px;
}

/* Nova Seção: Acesso Rápido em formato "Pills" */
.section-header-inline {
    text-align: center;
    margin-bottom: 32px;
}

.section-subtitle {
    color: #6e6e73;
    font-size: 1rem;
    margin-top: -10px;
}

.quick-links-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.quick-link-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 100px; /* Formato Pílula */
    padding: 12px 24px;
    color: #1d1d1d;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.quick-link-pill:hover {
    border-color: #0071e3;
    color: #0071e3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.1);
}

.pill-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    color: #a1a1a6;
    transition: color 0.2s ease;
}

.quick-link-pill:hover .pill-icon {
    color: #0071e3;
}

/* Ajuste nos Ícones das Fontes (Cards) */
.source-icon {
    color: #0071e3;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}
.source-icon .lucide {
    width: 40px;
    height: 40px;
}