/* ===== TALENT BRIDGE CAREERS — STYLESHEET ===== */
/* Cores de marca: fallback abaixo; /api/branding/theme.css (último link) sobrescreve com branding da plataforma. */

:root {
    --tb-navy: #1B3D7A;
    --tb-navy2: #142E5E;
    --tb-blue: #2558A8;
    --tb-orange: #F47920;
    --tb-orange2: #D96510;
    --tb-teal: #00A8CC;
    --tb-light: #F0F5FB;
    --tb-border: #D0DFF0;
    --tb-text: #2C3E50;
    --tb-muted: #6B7A8D;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--tb-light);
    color: var(--tb-text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
}

/* ---- LOGO MARK ---- */
.tb-logo-mark {
    background: var(--tb-orange);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    border-radius: 7px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.tb-logo-mark-sm {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.tb-brand-main {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .3px;
}

.tb-brand-sub {
    color: var(--tb-orange);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: -2px;
}

/* ---- NAVBAR ---- */
.tb-navbar {
    background: var(--tb-navy);
    padding: 5px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.tb-navbar .navbar-brand {
    padding: 0;
    margin-right: 0.75rem;
}

.tb-navbar .tb-brand-logo,
.tb-navbar .navbar-brand img {
    display: block;
    max-height: 32px;
    max-width: 104px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tb-site-footer .tb-brand-logo {
    max-height: 44px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-logo .tb-brand-logo,
.tb-auth-page .auth-logo img {
    max-height: 52px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---- BUTTONS ---- */
.tb-btn-orange {
    background: var(--tb-orange);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    transition: .18s;
}

.tb-btn-orange:hover {
    background: var(--tb-orange2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(244, 121, 32, .35);
}

.tb-btn-primary {
    background: var(--tb-navy);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    transition: .18s;
}

.tb-btn-primary:hover {
    background: var(--tb-navy2);
    color: #fff;
}

.tb-btn-outline {
    background: transparent;
    border: 2px solid var(--tb-blue);
    color: var(--tb-blue);
    border-radius: 7px;
    font-weight: 600;
}

.tb-btn-outline:hover {
    background: var(--tb-blue);
    color: #fff;
}

.tb-btn-outline-blue {
    background: transparent;
    border: 1.5px solid var(--tb-teal);
    color: var(--tb-teal);
    border-radius: 7px;
    font-weight: 600;
    transition: .15s;
}

.tb-btn-outline-blue:hover {
    background: var(--tb-teal);
    color: #fff;
}

/* ---- HERO ---- */
.tb-hero {
    background: linear-gradient(135deg, var(--tb-navy2) 0%, var(--tb-navy) 55%, var(--tb-blue) 100%);
    padding: 56px 0 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tb-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(244, 121, 32, .08);
}

.tb-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--tb-light);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.tb-badge {
    display: inline-block;
    background: rgba(244, 121, 32, .18);
    color: #ffb370;
    border: 1px solid rgba(244, 121, 32, .35);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.tb-hero-title {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.tb-highlight {
    color: var(--tb-orange);
}

.tb-hero-sub {
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.tb-search-box {
    background: #fff;
    border-radius: 12px;
    border: none;
    position: relative;
    z-index: 1;
}

.tb-input-icon {
    background: #eaf1fb;
    border-color: var(--tb-border);
    color: var(--tb-blue);
}

.tb-search-box .form-control,
.tb-search-box .form-select {
    border-color: var(--tb-border);
    font-size: 14px;
}

.tb-stats-row {
    position: relative;
    z-index: 1;
}

.tb-stat {
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 600;
}

.tb-stat span {
    color: var(--tb-orange);
    font-size: 20px;
    font-weight: 800;
}

.tb-stat-sep {
    color: rgba(255, 255, 255, .3);
    font-size: 20px;
}

/* ---- FILTERS ---- */
.tb-filters-bar {
    background: #fff;
    border-bottom: 1px solid var(--tb-border);
}

.tb-filters-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tb-filters-types {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.tb-filter-label {
    color: var(--tb-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.tb-chips-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.tb-filters-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.tb-chip {
    border: 1.5px solid var(--tb-border);
    color: var(--tb-muted);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    transition: .15s;
    background: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.tb-chip:hover {
    border-color: var(--tb-orange);
    color: var(--tb-orange);
}

.tb-chip.active {
    background: var(--tb-navy);
    color: #fff;
    border-color: var(--tb-navy);
}

.tb-sort {
    font-size: 13px;
    border-color: var(--tb-border);
}

/* ---- JOB CARDS ---- */
.tb-job-card {
    background: #fff;
    border: 1.5px solid var(--tb-border);
    border-radius: 12px;
    padding: 18px 20px;
    transition: .18s;
    cursor: pointer;
}

.tb-job-card:hover {
    border-color: var(--tb-orange);
    box-shadow: 0 6px 22px rgba(244, 121, 32, .12);
    transform: translateY(-2px);
}

.tb-job-card.featured {
    border-left: 4px solid var(--tb-orange);
    background: linear-gradient(to right, #fff8f2, #fff);
}

.tb-job-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.tb-job-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.tb-job-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.tb-job-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tb-job-card-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.tb-company-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--tb-navy);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.tb-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-job-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--tb-navy);
    margin-bottom: 0;
    line-height: 1.35;
    word-break: break-word;
}

.tb-job-company {
    color: var(--tb-blue);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    word-break: break-word;
}

.tb-job-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
}

.tb-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tb-light);
    color: var(--tb-muted);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    max-width: 100%;
}

.tb-meta-tag i {
    color: var(--tb-blue);
    font-size: 10px;
}

.tb-badge-type {
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
}

.tb-badge-ft {
    background: #e3f0ff;
    color: var(--tb-navy);
}

.tb-badge-pt {
    background: #fff0e3;
    color: #c05000;
}

.tb-badge-ct {
    background: #e8f5e9;
    color: #2e7d32;
}

.tb-badge-es {
    background: #f3e5f5;
    color: #6a1b9a;
}

.tb-badge-rm {
    background: #e0f7fa;
    color: #006064;
}

.tb-badge-new {
    background: var(--tb-orange);
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
}

.tb-featured-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--tb-orange2);
    background: rgba(244, 121, 32, .1);
    border-radius: 4px;
    padding: 2px 7px;
}

.tb-deadline {
    font-size: 11px;
    color: var(--tb-muted);
}

.tb-deadline.urgent {
    color: #c0392b;
    font-weight: 700;
}

/* ---- DYNAMIC LIST (requisitos / docs) ---- */
.tb-dynamic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tb-dynamic-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--tb-light);
    border: 1px solid var(--tb-border);
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 13px;
}

.tb-dynamic-list li .remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 12px;
    padding: 0 4px;
}

.tb-dynamic-list li .remove-btn:hover {
    color: #c0392b;
}

.tb-doc-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(0, 168, 204, .12);
    color: var(--tb-teal);
    border-radius: 4px;
    padding: 2px 7px;
    margin-right: 6px;
}

/* ---- SIDEBAR ---- */
.tb-sidebar-card {
    background: #fff;
    border: 1.5px solid var(--tb-border);
    border-radius: 12px;
    overflow: hidden;
}

.tb-sidebar-card-header {
    background: var(--tb-navy);
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}

.tb-alert-card {
    border-color: var(--tb-orange);
}

.tb-icon-orange {
    color: var(--tb-orange);
}

.tb-sector-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.tb-sector-bar {
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--tb-blue), var(--tb-orange));
    margin-bottom: 6px;
}

/* ---- MODAL ---- */
.tb-modal {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

.tb-modal-header {
    background: var(--tb-navy);
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
}

.tb-modal-header .modal-title {
    font-weight: 700;
    font-size: 16px;
}

.tb-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--tb-navy);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
    display: block;
}

.tb-input {
    border-color: var(--tb-border);
    font-size: 14px;
    border-radius: 7px;
}

.tb-input:focus {
    border-color: var(--tb-orange);
    box-shadow: 0 0 0 3px rgba(244, 121, 32, .12);
}

.tb-section-label {
    color: var(--tb-navy);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ---- VAGA DETAIL ---- */
.tb-vaga-detail-header {
    background: var(--tb-light);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid var(--tb-orange);
}

.tb-vaga-section {
    margin-bottom: 14px;
}

.tb-vaga-section h6 {
    color: var(--tb-navy);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--tb-orange);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.tb-vaga-section p,
.tb-vaga-section li {
    font-size: 14px;
}

/* ---- TOAST ---- */
.tb-toast {
    background: var(--tb-navy);
    color: #fff;
    border-radius: 10px;
    max-width: min(420px, calc(100vw - 24px));
}

.tb-toast .toast-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: 160px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.35;
}

/* ---- FOOTER ---- */
.tb-site-footer {
    background: linear-gradient(180deg, var(--tb-navy2) 0%, var(--tb-navy) 100%);
    color: rgba(255, 255, 255, 0.88);
    margin-top: auto;
    border-top: 3px solid var(--tb-orange);
}

.tb-footer-main {
    padding: 48px 0 36px;
}

.tb-footer-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.tb-footer-tagline {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 18px;
    max-width: 320px;
}

.tb-footer-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 14px;
}

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

.tb-footer-links li + li {
    margin-top: 8px;
}

.tb-footer-links a,
.tb-footer-contact a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.tb-footer-links a:hover,
.tb-footer-contact a:hover {
    color: var(--tb-orange);
}

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

.tb-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 10px;
}

.tb-footer-contact li i {
    width: 16px;
    margin-top: 3px;
    color: var(--tb-orange);
    flex-shrink: 0;
}

.tb-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tb-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.tb-footer-social a:hover {
    background: var(--tb-orange);
    color: #fff;
    transform: translateY(-2px);
}

.tb-footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.tb-footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.tb-footer-newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--tb-orange);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(244, 121, 32, 0.2);
}

.tb-footer-bottom {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.tb-footer-bottom small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.tb-footer-legal a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 12px;
}

.tb-footer-legal a:hover {
    color: var(--tb-orange);
}

.tb-footer-sep {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 6px;
}

.tb-footer-made {
    opacity: 0.75;
}

/* Login — página completa sem footer */
.tb-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--tb-navy2) 0%, var(--tb-navy) 50%, var(--tb-blue) 100%);
}

.tb-auth-page .tb-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tb-auth-page .auth-bg {
    min-height: 100vh;
    flex: 1;
}

/* layout páginas com footer fixo no fim */
.tb-page-with-footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tb-page-with-footer > main,
.tb-page-with-footer > .container {
    flex: 1 0 auto;
}

/* compatibilidade */
.tb-footer {
    background: var(--tb-navy2);
    border-top: 3px solid var(--tb-orange);
}

/* ---- EMPTY ---- */
.tb-empty {
    opacity: .7;
}

/* ===================== AUTH PAGE ===================== */
.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--tb-navy2) 0%, var(--tb-navy) 50%, var(--tb-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    position: relative;
    overflow: hidden;
}

.auth-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(244, 121, 32, .07);
}

.auth-bg::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 168, 204, .06);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.auth-tabs {
    display: flex;
    border: 1.5px solid var(--tb-border);
    border-radius: 9px;
    overflow: hidden;
}

.auth-tab-btn {
    flex: 1;
    background: var(--tb-light);
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-muted);
    cursor: pointer;
    transition: .18s;
}

.auth-tab-btn.active {
    background: var(--tb-navy);
    color: #fff;
}

/* Tipo de conta selector */
.tipo-conta-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.tipo-btn {
    border: 2px solid var(--tb-border);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: .18s;
    color: var(--tb-muted);
    font-size: 13px;
}

.tipo-btn:hover {
    border-color: var(--tb-orange);
    color: var(--tb-orange);
}

.tipo-btn.selected {
    border-color: var(--tb-orange);
    background: rgba(244, 121, 32, .07);
    color: var(--tb-navy);
}

.tipo-btn i {
    display: block;
    color: inherit;
}

/* Logo upload */
.logo-upload-area {
    border: 2px dashed var(--tb-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: .18s;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo-upload-area:hover {
    border-color: var(--tb-orange);
    background: rgba(244, 121, 32, .03);
}

.tb-link {
    color: var(--tb-orange);
    font-weight: 600;
    text-decoration: none;
}

.tb-link:hover {
    color: var(--tb-orange2);
}
