/*
 * Farol de Busca · Portal de Vagas (público + candidato logado)
 * Tailwind-compatible utility CSS — self-hosted, sem CDN, pronto pra produção.
 * Contém EXATAMENTE as classes usadas nas views públicas do módulo de vagas.
 */

/* ─── Reset / base ─── */
*, *::before, *::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.5; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: 0; list-style: none; }

/* ─── Variáveis das cores customizadas (substitui o tailwind.config) ─── */
:root {
    --fdb-gray: #1F2937;
    --fdb-text: #374151;
    --fdb-bg: #F9F9F9;
    --primary-blue: #004b97;
}

/* ─── Display ─── */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ─── Flex ─── */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; }
.gap-x-2 { column-gap: .5rem; } .gap-x-4 { column-gap: 1rem; } .gap-x-6 { column-gap: 1.5rem; } .gap-x-8 { column-gap: 2rem; } .gap-x-12 { column-gap: 3rem; }
.gap-y-2 { row-gap: .5rem; } .gap-y-4 { row-gap: 1rem; } .gap-y-6 { row-gap: 1.5rem; } .gap-y-8 { row-gap: 2rem; } .gap-y-12 { row-gap: 3rem; }
.space-x-2 > * + * { margin-left: .5rem; }
.space-x-3 > * + * { margin-left: .75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* ─── Grid ─── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ─── Tamanhos ─── */
.w-full { width: 100%; }
.w-4 { width: 1rem; } .w-5 { width: 1.25rem; } .w-8 { width: 2rem; }
.w-10 { width: 2.5rem; } .w-12 { width: 3rem; } .w-16 { width: 4rem; }
.w-20 { width: 5rem; } .w-28 { width: 7rem; } .w-32 { width: 8rem; }
.w-40 { width: 10rem; } .w-80 { width: 20rem; }
.h-full { height: 100%; }
.h-4 { height: 1rem; } .h-5 { height: 1.25rem; } .h-8 { height: 2rem; }
.h-10 { height: 2.5rem; } .h-12 { height: 3rem; } .h-16 { height: 4rem; }
.h-20 { height: 5rem; } .h-28 { height: 7rem; } .h-32 { height: 8rem; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.min-w-0 { min-width: 0; }

/* ─── Padding ─── */
.p-0 { padding: 0; } .p-1 { padding: .25rem; } .p-2 { padding: .5rem; }
.p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-16 { padding-top: 4rem; }
.pl-1 { padding-left: .25rem; } .pl-4 { padding-left: 1rem; } .pl-5 { padding-left: 1.25rem; }
.pr-10 { padding-right: 2.5rem; }

/* ─── Margin ─── */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: .5rem; margin-bottom: .5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.ml-1 { margin-left: .25rem; } .ml-2 { margin-left: .5rem; }
.ml-4 { margin-left: 1rem; } .ml-6 { margin-left: 1.5rem; }
.mr-1 { margin-right: .25rem; } .mr-2 { margin-right: .5rem; }
.mr-3 { margin-right: .75rem; } .-mr-2 { margin-right: -.5rem; }
.-mt-12 { margin-top: -3rem; }
.-mx-2 { margin-left: -.5rem; margin-right: -.5rem; }

/* ─── Typography ─── */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-normal { font-weight: 400; } .font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.tracking-wide { letter-spacing: .025em; }
.tracking-normal { letter-spacing: 0; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-words { overflow-wrap: break-word; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Cores: texto ─── */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-red-600 { color: #dc2626; }
.text-red-800 { color: #991b1b; }
.text-red-900 { color: #7f1d1d; }
.text-green-600 { color: #16a34a; }
.text-green-800 { color: #166534; }
.text-blue-600 { color: #2563eb; }
.text-blue-900 { color: #1e3a8a; }
.text-fdb-gray { color: var(--fdb-gray); }
.text-fdb-text { color: var(--fdb-text); }
.text-primary-blue { color: var(--primary-blue); }

/* ─── Cores: fundos ─── */
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-500 { background-color: #6b7280; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.bg-green-700 { background-color: #15803d; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-primary-blue { background-color: var(--primary-blue); }
.bg-fdb-gray { background-color: var(--fdb-gray); }
.bg-fdb-bg { background-color: var(--fdb-bg); }
.bg-opacity-50 { background-color: rgba(0,0,0,.5); }

/* ─── Bordas ─── */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-y { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-200 { border-color: #fecaca; }
.border-red-300 { border-color: #fca5a5; }
.border-green-200 { border-color: #bbf7d0; }
.border-blue-200 { border-color: #bfdbfe; }
.border-yellow-200 { border-color: #fef08a; }
.border-primary-blue { border-color: var(--primary-blue); }
.border-transparent { border-color: transparent; }
.divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
.divide-gray-200 > * + * { border-color: #e5e7eb; }

.rounded { border-radius: .25rem; }
.rounded-sm { border-radius: .125rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ─── Sombras ─── */
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

/* ─── Posicionamento ─── */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; } .top-4 { top: 1rem; }
.right-0 { right: 0; } .right-3 { right: .75rem; } .right-4 { right: 1rem; }
.bottom-0 { bottom: 0; }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ─── Transforms ─── */
.transform { transform: translateZ(0); }
.translate-x-full { transform: translateX(100%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* ─── Overflow ─── */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

/* ─── Cursor / Interação ─── */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.disabled\:opacity-50:disabled { opacity: .5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ─── Aspect ratio ─── */
.aspect-video { aspect-ratio: 16 / 9; }

/* ─── Hover / Focus ─── */
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-gray-900:hover { background-color: #111827; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-blue-800:hover { background-color: #1e40af; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:text-primary-blue:hover { color: var(--primary-blue); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.focus\:outline-none:focus { outline: none; }
.focus\:border-primary-blue:focus { border-color: var(--primary-blue); }

/* ─── Transições ─── */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: .15s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.transition-opacity { transition-property: opacity; transition-duration: .15s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.transition-transform { transition-property: transform; transition-duration: .15s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.duration-300 { transition-duration: .3s; }

/* ─── List ─── */
.list-disc { list-style-type: disc; }
.list-none { list-style: none; }
.divide-y { display: block; }

/* ─── Backdrop / efeito ─── */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ─── Responsivo (breakpoints Tailwind) ─── */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:inline-flex { display: inline-flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:justify-between { justify-content: space-between; }
    .md\:items-start { align-items: flex-start; }
    .md\:mt-0 { margin-top: 0; }
    .md\:px-0 { padding-left: 0; padding-right: 0; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:gap-x-12 { column-gap: 3rem; }
    .md\:gap-y-8 { row-gap: 2rem; }
}

/* ─── Botões base — reuso ─── */
.btn-primary-blue {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--primary-blue); color: #fff;
    font-weight: 700; padding: .75rem 1.5rem; border-radius: .375rem;
    transition: background-color .15s;
}
.btn-primary-blue:hover { background-color: #1e40af; }
.btn-outline-blue {
    background-color: transparent; color: var(--primary-blue);
    font-weight: 600; padding: .625rem 1.5rem; border: 1px solid var(--primary-blue);
    border-radius: 9999px; transition: all .15s;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline-blue:hover { background-color: #eff6ff; }
