/* =============================================
   IMPROVEMENTS.CSS - Melhorias de SEO e UX
   ============================================= */

/* Breadcrumbs */
.breadcrumbs-section {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-nav li {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-nav li a {
    color: #DA0833;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav li a:hover {
    color: #a5062a;
    text-decoration: underline;
}

.breadcrumb-nav li::after {
    content: "›";
    margin: 0 8px;
    color: #adb5bd;
}

.breadcrumb-nav li:last-child::after {
    content: "";
}

.breadcrumb-nav li.active {
    color: #343a40;
    font-weight: 500;
}

/* Job Page Styles */
.job-title {
    font-size: 28px !important;
    color: #242c36;
    margin-bottom: 10px !important;
}

.job-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
}

/* Related Jobs Sidebar */
.related-jobs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid #e9ecef;
}

.related-jobs h3 {
    font-size: 18px;
    color: #242c36;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DA0833;
}

.related-jobs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-jobs ul li {
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.related-jobs ul li:last-child {
    border-bottom: none;
}

.related-jobs ul li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: block;
    padding: 2px 0;
}

.related-jobs ul li a:hover {
    color: #DA0833;
    padding-left: 5px;
}

/* Trending Section (Home) */
.trending-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.trending-section .heading h2 {
    font-size: 26px;
    color: #242c36;
}

.trending-section .heading p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.trending-card {
    display: block;
    text-decoration: none;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trending-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.trending-card-inner {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s;
}

.trending-card:hover .trending-card-inner {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #DA0833;
}

.trending-card-inner h3 {
    font-size: 16px;
    color: #242c36;
    margin-bottom: 8px;
    font-weight: 600;
}

.trending-card-inner p {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 10px;
}

.trending-cta {
    color: #DA0833;
    font-size: 14px;
    font-weight: 600;
}

.trending-card:hover .trending-cta {
    color: #a5062a;
}

/* Ver todas button */
.btn-ver-todas {
    display: inline-block;
    background: #DA0833;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-ver-todas:hover {
    background: #a5062a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 8, 51, 0.3);
}

/* Letter Navigation (Carreiras page) */
.letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.letter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: #242c36 !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.letter-link:hover {
    background: #DA0833;
    color: #fff !important;
    border-color: #DA0833;
}

/* Banner subtitle */
.banner-subtitle {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.main-banner h2 {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Fix para a caixa de busca CSE quebrar no grid */
.gcse-searchbox-only, .gsc-control-cse {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gsc-search-box {
    margin-bottom: 0 !important;
}

table.gsc-search-box td {
    vertical-align: middle !important;
}

/* Footer improvements */
footer {
    padding-top: 30px;
}

footer h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

footer ul li {
    padding: 3px 0;
}

footer ul li a {
    font-size: 14px;
    transition: color 0.2s;
}

footer ul li a:hover {
    color: #DA0833 !important;
}

.copy-right {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .job-title {
        font-size: 22px !important;
    }
    
    .trending-card-inner {
        min-height: auto;
    }
    
    .letter-link {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .related-jobs {
        margin-top: 15px;
    }
}

/* =============================================
   CARREGADOR DE DELAY ATIVO (Fase 4)
   ============================================= */
.search-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.search-loader-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.search-loader-title {
    font-size: 20px;
    color: #242c36;
    margin-bottom: 20px;
    font-weight: 600;
}

.search-loader-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.search-loader-progress {
    height: 100%;
    width: 0;
    background: #DA0833;
    border-radius: 3px;
    animation: progressFill 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.search-loader-ad-space {
    margin-top: 20px;
    border: 1px dashed #cccccc;
    padding: 15px;
    background: #fafafa;
    border-radius: 6px;
}

.search-loader-ad-space:before {
    content: "Anúncio Recomendado";
    display: block;
    font-size: 11px;
    color: #999999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* =============================================
   BOX DE VAGAS URGENTES FICTÍCIAS (Fase 3)
   ============================================= */
.urgent-jobs-container {
    background: #fff8f8;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.urgent-jobs-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.urgent-badge {
    background: #DA0833;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    margin-right: 10px;
    animation: pulseBadge 1.5s infinite;
}

.urgent-title {
    font-size: 16px;
    font-weight: bold;
    color: #242c36;
    margin: 0;
}

.urgent-job-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.urgent-job-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    border-color: #DA0833;
}

.urgent-job-info h4 {
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #242c36;
}

.urgent-job-info p {
    font-size: 12px;
    margin: 0;
    color: #777777;
}

.urgent-job-salary {
    color: #2e7d32;
    font-weight: bold;
    font-size: 13px;
}

@keyframes pulseBadge {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Otimização dos Resultados do CSE para parecer Vagas Organicas */
.gsc-webResult.gsc-result {
    padding: 15px !important;
    margin-bottom: 15px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

.gsc-webResult.gsc-result:hover {
    border-color: #DA0833 !important;
}

.gs-title, .gs-title * {
    color: #DA0833 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.gs-snippet {
    color: #555555 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

