/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* Layout base e container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

/* Navbar e navegação */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #15803d;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover {
    color: #15803d;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 100;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
}

.submenu a:hover {
    background-color: #f5f5f5;
    color: #15803d;
}

/* Seletor de idioma */
.language-selector {
    position: relative;
}

.language-selector select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 0.875rem;
}

.language-selector select:hover {
    border-color: #15803d;
}

/* Página de postagens */
.page-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: bold;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    width: 100%;
}

.tab {
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab:hover {
    border-color: #15803d;
    color: #15803d;
}

.tab.active {
    background-color: #15803d;
    color: white;
    border-color: #15803d;
}

/* Filtros */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    width: 100%;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #15803d;
}

.btn-primary {
    background-color: #15803d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #166534;
}

/* Grid de postagens */
.postagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.postagem-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    width: 100%;
    height: 100%;
}

.postagem-card:hover {
    transform: translateY(-5px);
}

.postagem-imagem {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.postagem-conteudo {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.postagem-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.postagem-tipo {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.postagem-tipo.update { background-color: #15803d; }
.postagem-tipo.article { background-color: #7c3aed; }
.postagem-tipo.report { background-color: #0891b2; }
.postagem-tipo.news { background-color: #2563eb; }
.postagem-tipo.tutorial { background-color: #ea580c; }

.postagem-data {
    color: #666;
    font-size: 0.875rem;
}

.postagem-titulo {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.postagem-subtitulo {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.postagem-resumo {
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.postagem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: background-color 0.2s ease;
}

.tag:hover {
    background-color: #e0e0e0;
}

.btn-ler {
    display: inline-block;
    color: #15803d;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-ler:hover {
    color: #166534;
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagina {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    min-width: 2.5rem;
}

.pagina:hover {
    border-color: #15803d;
    color: #15803d;
}

.pagina.active {
    background-color: #15803d;
    color: white;
    border-color: #15803d;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .tab {
        text-align: center;
    }

    .filters {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }

    .filter-group {
        width: 100%;
    }

    .postagens-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .postagem-card {
        margin-bottom: 1rem;
    }

    .paginacao {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile menu button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
}

/* Estilos adicionais para a página inicial */
.hero {
    background-color: #15803d;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Cards principais */
.cards-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.card h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    color: #15803d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.card-link:hover {
    color: #166534;
}

/* Seção de Províncias */
.provincias-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.provincias-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.provincias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.provincia-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.provincia-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.provincia-content {
    padding: 1.5rem;
}

.provincia-location {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.mineral-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

/* Seção de Notícias */
.news-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.news-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-type {
    color: #15803d;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.news-date {
    color: #666;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Seção de Ferramentas */
.tools-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.tools-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.tool-link {
    color: #15803d;
    text-decoration: none;
    font-weight: 500;
}

/* Jobs Section */
.jobs-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cards-container,
    .provincias-grid,
    .news-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .provincia-card,
    .news-card,
    .tool-card {
        margin-bottom: 1rem;
    }
}

.provincias-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provincia-card {
    cursor: pointer;
}

.mineral-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.card-link {
    margin-top: 1rem;
    display: inline-block;
}

.provincia-home-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 2rem;
    color: #15803d;
    margin-bottom: 0.5rem;
}

.stat-item span {
    color: #666;
    font-size: 0.9rem;
}

.provincia-description {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Seção de Balcão */
.balcao-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.balcao-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.balcao-home-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.balcao-description {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.balcao-content {
    max-width: 1200px;
    margin: 0 auto;
}

.latest-ads {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ad-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s ease;
}

.ad-preview:hover {
    transform: translateY(-2px);
}

.ad-preview h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.ad-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ad-meta span {
    display: block;
    margin-bottom: 0.5rem;
}

.ad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ad-price {
    color: #15803d;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 1rem 0;
}

/* Seção de Vagas */
.vagas-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.vagas-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.vagas-home-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.vagas-description {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vagas-content {
    max-width: 1200px;
    margin: 0 auto;
}

.latest-jobs {
    margin: 2rem 0;
}

.job-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    transition: transform 0.2s ease;
}

.job-preview:hover {
    transform: translateY(-2px);
}

.job-preview h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.job-meta {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.job-meta span {
    display: inline-block;
    margin-right: 1rem;
}

.job-meta .empresa {
    font-weight: 500;
    color: #4b5563;
}

.job-meta .local {
    color: #6b7280;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-tags .tag {
    background: white;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
}

.job-salary {
    color: #15803d;
    font-weight: 500;
    margin: 1rem 0;
}

/* Responsividade para Balcão e Vagas */
@media (max-width: 768px) {
    .balcao-section,
    .vagas-section {
        margin: 2rem auto;
    }

    .latest-ads {
        grid-template-columns: 1fr;
    }

    .ad-preview,
    .job-preview {
        margin-bottom: 1rem;
    }

    .job-meta span {
        display: block;
        margin-bottom: 0.5rem;
    }

    .job-tags,
    .ad-tags {
        margin-top: 1rem;
    }
}

/* Stats Grid (comum para Balcão e Vagas) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 2rem;
    color: #15803d;
    margin-bottom: 0.5rem;
}

.stat-item span {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.provincia-home-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 2rem;
    color: #15803d;
    margin-bottom: 0.5rem;
}

.stat-item span {
    color: #666;
    font-size: 0.9rem;
}

.provincia-description {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Estilos para a página de contato */
.contact-page {
    padding: 2rem 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-block {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Estilos para a página Sobre */
.about-page {
    padding: 2rem 0;
}

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 2rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.welcome-user {
    font-weight: 500;
    color: #333;
}

.login-link,
.logout-link,
.dashboard-link,
.register-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.login-link:hover,
.logout-link:hover,
.dashboard-link:hover,
.register-link:hover {
    background-color: #2563eb;
    color: white;
}

.logout-link {
    color: #dc2626;
}

.logout-link:hover {
    background-color: #dc2626;
    color: white;
}