/*
Theme Name: EmpregoJá
Description: Tema WordPress para portal de empregos em Angola
Version: 1.0
Author: EmpregoJá Team
*/

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #111827;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
}

/* Navigation */
.nav-menu {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #2563eb;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    color: #374151;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #1d4ed8;
}

/* Job Cards */
.job-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.job-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.job-company {
    color: #6b7280;
    font-size: 0.875rem;
}

.job-type {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.job-description {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.job-apply-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.job-apply-btn:hover {
    background: #1d4ed8;
}

/* Filter Bar */
.filter-bar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    min-width: 150px;
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.mobile-menu a {
    display: block;
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: #2563eb;
}

@media (max-width: 767px) {
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu.hidden {
        display: none;
    }
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #374151;
}

.newsletter-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: #1d4ed8;
}

/* Job Detail Styles */
.job-detail {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.job-detail-breadcrumb {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.job-detail-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.job-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.job-detail-title {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.job-detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.job-detail-info > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.job-detail-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.job-category {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.job-description h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #111827;
}

.job-description-content {
    line-height: 1.7;
    color: #4b5563;
}

.job-application {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.job-application h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #111827;
}

.application-email {
    margin: 1rem 0;
}

.email-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

.apply-btn {
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    display: inline-block;
    font-weight: 500;
    transition: background 0.2s;
}

.apply-btn:hover {
    background: #1d4ed8;
}

/* Sidebar */
.job-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #111827;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #2563eb;
    color: white;
}

.share-btn.facebook:hover {
    background: #1877f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
}

.share-btn.whatsapp:hover {
    background: #25d366;
}

.similar-jobs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.similar-job {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.similar-job h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.similar-job h4 a {
    color: #111827;
    text-decoration: none;
}

.similar-job h4 a:hover {
    color: #2563eb;
}

.similar-job-meta {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Featured Badge */
.featured-badge {
    background: #fbbf24;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.job-card.featured {
    border-color: #fbbf24;
    background: #fffbeb;
}

/* Loading and Error States */
.loading, .error {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.error {
    color: #dc2626;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
}

.pagination a:hover {
    background: #f3f4f6;
}

.pagination .current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Search Results */
.search-header {
    margin-bottom: 2rem;
}

.search-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
}

.search-count {
    color: #6b7280;
    margin-bottom: 1rem;
}

.search-result {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.search-result h2 {
    margin-bottom: 0.5rem;
}

.search-result h2 a {
    color: #111827;
    text-decoration: none;
}

.search-result h2 a:hover {
    color: #2563eb;
}

.search-excerpt {
    color: #4b5563;
    line-height: 1.5;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.search-suggestions {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #111827;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 0.25rem 0;
    color: #6b7280;
}

.search-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 3rem 1rem;
}

.error-404-title {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.error-404-message {
    color: #6b7280;
    margin-bottom: 2rem;
}

.error-404-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.error-404-search,
.error-404-links,
.error-404-categories {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.error-404-search h3,
.error-404-links h3,
.error-404-categories h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #111827;
}

.error-404-links ul,
.error-404-categories ul {
    list-style: none;
    padding: 0;
}

.error-404-links li,
.error-404-categories li {
    margin-bottom: 0.5rem;
}

.error-404-links a,
.error-404-categories a {
    color: #2563eb;
    text-decoration: none;
}

.error-404-links a:hover,
.error-404-categories a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #3b82f6;
}

.footer-logo span {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

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

.social-links a {
    width: 2.25rem;
    height: 2.25rem;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition: background 0.2s;
}

.social-links a:hover {
    background: #3b82f6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-section ul li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-ad {
    background: #1f2937;
    border-top: 1px solid #374151;
    padding: 0.75rem 0;
    text-align: center;
}

.footer-ad p {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Admin Button */
.admin-btn {
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: background 0.2s;
}

.admin-btn:hover {
    background: #1d4ed8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2563eb;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 100;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Widget Styles */
.recent-jobs-list,
.featured-jobs-list,
.job-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-job-item,
.featured-job-item,
.job-category-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.recent-job-item:last-child,
.featured-job-item:last-child,
.job-category-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-job-title,
.featured-job-title {
    display: block;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.recent-job-title:hover,
.featured-job-title:hover {
    color: #2563eb;
}

.featured-job-title {
    position: relative;
    padding-left: 2.5rem;
}

.featured-badge {
    position: absolute;
    left: 0;
    top: 0;
    background: #fbbf24;
    color: #92400e;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.recent-job-company,
.featured-job-company {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.recent-job-date,
.featured-job-type {
    color: #9ca3af;
    font-size: 0.75rem;
}

.job-category-item a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.job-category-item a:hover {
    color: #2563eb;
}

/* Newsletter Widget */
.newsletter-widget {
    text-align: center;
}

.newsletter-description {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

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

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

.newsletter-email {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.newsletter-email:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.newsletter-submit {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-submit:hover {
    background: #1d4ed8;
}

/* Category and Location Cards */
.categories-grid,
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-card,
.location-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.category-card:hover,
.location-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-card h3,
.location-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.category-card h3 a,
.location-card h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.category-card h3 a:hover,
.location-card h3 a:hover {
    color: #2563eb;
}

.category-card p,
.location-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Archive Headers */
.archive-header,
.category-header,
.location-header {
    margin-bottom: 2rem;
    text-align: center;
}

.archive-title,
.category-title,
.location-title {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.archive-description,
.category-description,
.location-description {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.archive-stats,
.category-stats,
.location-stats {
    color: #2563eb;
    font-weight: 500;
}

/* Featured Jobs Section */
.featured-jobs {
    margin-bottom: 3rem;
}

.featured-jobs .section-title {
    color: #2563eb;
    position: relative;
    padding-left: 1.5rem;
}

.featured-jobs .section-title::before {
    content: "⭐";
    position: absolute;
    left: 0;
}

/* All Jobs Section */
.all-jobs {
    margin-bottom: 3rem;
}

/* Related Sections */
.related-categories,
.related-locations {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .job-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-detail-content {
        grid-template-columns: 1fr;
    }
    
    .job-detail-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .job-detail-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .error-404-actions {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .categories-grid,
    .locations-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .archive-title,
    .category-title,
    .location-title {
        font-size: 1.5rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
}
