/* 
 * tivagas - Portal de Vagas Tech
 * Design System & Estilização CSS Premium (Tema Escuro Futurista)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* --- VARIÁVEIS DO DESIGN SYSTEM (Tema Escuro HSL Harmonioso) --- */
:root {
  --bg-main: hsl(224, 47%, 7%);
  --bg-surface: hsl(223, 47%, 12%);
  --bg-surface-glass: hsla(223, 47%, 14%, 0.65);
  --border-color: hsla(223, 40%, 25%, 0.4);
  --border-hover: hsla(180, 100%, 50%, 0.3);
  
  /* Cores de Destaque */
  --accent-cyan: hsl(180, 100%, 50%);
  --accent-cyan-rgb: 0, 242, 254;
  --accent-purple: hsl(270, 95%, 75%);
  --accent-purple-rgb: 217, 163, 255;
  --accent-pink: hsl(330, 95%, 60%);
  
  /* Estados e Badges */
  --color-pj: hsl(330, 90%, 65%);
  --bg-pj: hsla(330, 90%, 65%, 0.12);
  --color-clt: hsl(142, 70%, 50%);
  --bg-clt: hsla(142, 70%, 50%, 0.12);
  --color-homeoffice: hsl(200, 100%, 50%);
  --bg-homeoffice: hsla(200, 100%, 50%, 0.12);
  --color-hibrido: hsl(45, 100%, 50%);
  --bg-hibrido: hsla(45, 100%, 50%, 0.12);
  --color-presencial: hsl(15, 100%, 60%);
  --bg-presencial: hsla(15, 100%, 60%, 0.12);

  /* Texto */
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 15%, 55%);
  
  /* Sombras e Blur */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px -5px hsla(180, 100%, 50%, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & CONFIGURAÇÃO BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Efeito de fundo brilhante orbital */
body::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 400px;
  background: radial-gradient(circle, hsla(270, 95%, 75%, 0.08) 0%, hsla(180, 100%, 50%, 0.04) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

/* --- ESTILOS DE GLASSMORPHISM --- */
.glass-panel {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.glass-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-4px);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  background: hsla(224, 47%, 7%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Animada */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo:hover .logo-icon {
  transform: scale(1.08) rotate(6deg);
  border-color: var(--accent-purple);
  box-shadow: 0 0 25px hsla(270, 95%, 75%, 0.45), 0 0 10px hsla(180, 100%, 50%, 0.25);
}

.logo-icon {
  position: relative;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--bg-main), var(--bg-surface));
  border: 2px solid var(--accent-cyan);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px hsla(180, 100%, 50%, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-cyan);
  transition: var(--transition-smooth);
}

.logo:hover .logo-icon svg {
  color: var(--accent-purple);
}

/* Animação suave para o centro pulsante da nuvem conectada */
.logo-icon svg circle {
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.logo-text {
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
}

.logo-text span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* Navegação Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav-link:hover {
  color: var(--accent-cyan);
  background: hsla(180, 100%, 50%, 0.05);
}
.nav-link.active {
  color: var(--text-primary);
  background: hsla(223, 40%, 25%, 0.5);
  border: 1px solid var(--border-color);
}

.btn-post {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px hsla(180, 100%, 50%, 0.2);
  transition: var(--transition-smooth);
}
.btn-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(180, 100%, 50%, 0.4);
}
.btn-post svg {
  width: 16px;
  height: 16px;
  stroke: var(--bg-main);
  stroke-width: 3;
}

/* --- MENU SUBMENU / DROPDOWN --- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  user-select: none;
}

.nav-dropdown-trigger .chevron-icon {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  z-index: 1000;
  border-radius: var(--radius-sm);
  background: hsla(223, 47%, 14%, 0.95);
  box-shadow: var(--shadow-md), 0 0 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.dropdown-item:hover {
  color: var(--accent-cyan);
  background: hsla(180, 100%, 50%, 0.08);
}

.dropdown-item.active {
  color: var(--text-primary);
  background: hsla(223, 40%, 25%, 0.6);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dropdown-item .item-icon {
  transition: var(--transition-smooth);
}

.dropdown-item:hover .item-icon {
  stroke: var(--accent-cyan);
}

/* Quando um item dentro do dropdown está ativo, destaca ligeiramente o botão principal */
.nav-dropdown:has(.dropdown-item.active) .btn-post {
  box-shadow: 0 0 20px hsla(180, 100%, 50%, 0.25);
  border: 1px solid hsla(180, 100%, 50%, 0.4);
}

.nav-dropdown-content.show-mobile {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .nav-dropdown-content {
    right: auto;
    left: 50%;
    transform: translate(-50%, 10px);
  }
  .nav-dropdown:hover .nav-dropdown-content,
  .nav-dropdown-content.show-mobile {
    transform: translate(-50%, 0);
  }
}

/* --- HERO SECTION --- */
.hero {
  padding: 60px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* --- FILTROS DE VAGAS --- */
.search-container {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}
.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}
.search-input-wrapper input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px hsla(180, 100%, 50%, 0.1);
}

.filter-select {
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.filter-select:focus {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* Estilização premium para optgroup e option do dropdown */
optgroup {
  background-color: var(--bg-surface);
  color: var(--accent-purple);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  padding: 8px 0;
}

option {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 6px;
}

option:disabled {
  color: var(--text-muted);
}


/* --- FEED / GRID DE VAGAS --- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.feed-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.feed-count span {
  color: var(--accent-cyan);
}

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Cartão de Vaga Estilizado */
.job-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  position: relative;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

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

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.badge-pj { color: var(--color-pj); background: var(--bg-pj); }
.badge-clt { color: var(--color-clt); background: var(--bg-clt); }
.badge-homeoffice { color: var(--color-homeoffice); background: var(--bg-homeoffice); }
.badge-hibrido { color: var(--color-hibrido); background: var(--bg-hibrido); }
.badge-presencial { color: var(--color-presencial); background: var(--bg-presencial); }

.badge-category-mini {
  background: hsla(223, 40%, 25%, 0.4);
  color: var(--accent-purple);
  border: 1px solid var(--border-color);
  font-weight: 500;
  text-transform: none;
  font-family: 'Fira Code', monospace;
}

.job-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}
.job-card:hover .job-title {
  color: var(--accent-cyan);
}

.job-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-company svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

.job-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.job-location svg {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

.job-description-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.job-salary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-salary svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
}

.job-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.empty-state svg {
  width: 64px;
  height: 64px;
  fill: var(--text-muted);
  opacity: 0.5;
}
.empty-state h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
}
.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
}
.btn-reset {
  background: var(--bg-surface);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.btn-reset:hover {
  background: var(--accent-cyan);
  color: var(--bg-main);
  box-shadow: 0 0 15px hsla(180, 100%, 50%, 0.3);
}

/* --- FORMULÁRIO DE POSTAGEM --- */
.form-container {
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  animation: slideUp 0.4s ease-out;
}

.form-box {
  padding: 32px;
}

.form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-label span {
  color: var(--accent-pink);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}
.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px hsla(180, 100%, 50%, 0.1);
}
.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Customização Específica do Select de Categorias */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-main);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 15px hsla(180, 100%, 50%, 0.2);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(180, 100%, 50%, 0.4);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- REALTIME PREVIEW CARD --- */
.preview-box {
  align-self: start;
  position: sticky;
  top: 100px;
}
.preview-title-bar {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-title-bar::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-purple);
  animation: pulseGlow 2s infinite;
}

/* --- MODAL DE DETALHES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 17, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 36px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md), 0 0 50px -10px hsla(270, 95%, 75%, 0.15);
}
.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
.modal-close:hover {
  background: var(--accent-pink);
  color: var(--text-primary);
  border-color: var(--accent-pink);
  transform: rotate(90deg);
}

.modal-category-desc {
  background: hsla(223, 40%, 25%, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0 24px;
  font-size: 0.9rem;
  color: var(--accent-purple);
  line-height: 1.5;
  border-left: 4px solid var(--accent-purple);
}

.modal-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-wrap; /* Mantém quebras de linha enviadas */
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: hsla(223, 40%, 20%, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.meta-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.meta-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-apply-box {
  margin-top: 32px;
  padding: 24px;
  background: radial-gradient(circle at top right, hsla(180, 100%, 50%, 0.05) 0%, transparent 70%);
  border: 1px dashed var(--accent-cyan);
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.modal-apply-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.modal-apply-btn {
  background: var(--accent-cyan);
  color: var(--bg-main);
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  box-shadow: 0 4px 15px hsla(180, 100%, 50%, 0.2);
  transition: var(--transition-smooth);
}
.modal-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(180, 100%, 50%, 0.4);
}

/* --- TOAST SYSTEM (Notificações Flutuantes) --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.toast-success {
  background: hsla(142, 70%, 10%, 0.9);
  border-color: var(--color-clt);
  color: #a7f3d0;
}
.toast-error {
  background: hsla(330, 90%, 10%, 0.9);
  border-color: var(--accent-pink);
  color: #fce7f3;
}
.toast svg {
  width: 20px;
  height: 20px;
}

/* --- ANIMAÇÕES --- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--accent-purple);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 2px var(--accent-purple);
  }
}

/* --- RESPONSIVIDADE (MOBILE & TABLETS) --- */
@media (max-width: 900px) {
  .form-container {
    grid-template-columns: 1fr;
  }
  .preview-box {
    display: none; /* Oculta preview no mobile para focar no form */
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .search-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .nav-menu {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .btn-post {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-content {
    padding: 24px;
  }
  .modal-close {
    top: 16px;
    right: 16px;
  }
}

/* --- ESPAÇO PUBLICITÁRIO ADSENSE --- */
.adsense-banner {
  margin: 0 auto 32px;
  max-width: 1200px;
  padding: 16px;
  text-align: center;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsla(223, 47%, 14%, 0.4), hsla(224, 47%, 7%, 0.4));
  animation: slideUp 0.4s ease-out;
}
.adsense-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.adsense-label {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.adsense-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 80px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.adsense-content svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

/* --- CONTROLES DE PAGINAÇÃO --- */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.page-btn {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}
.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px hsla(180, 100%, 50%, 0.15);
  transform: translateY(-2px);
}
.page-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-main);
  border-color: transparent;
  box-shadow: 0 4px 15px hsla(180, 100%, 50%, 0.2);
  pointer-events: none;
}
.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.page-btn-wide {
  width: auto;
  padding: 0 16px;
}

/* --- BOTÃO DE DELETAR VAGAS (CARD) --- */
.btn-delete-card {
  background: var(--bg-pj);
  border: 1px solid var(--color-pj);
  color: var(--color-pj);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-delete-card:hover {
  background: var(--color-pj);
  color: var(--bg-main);
  box-shadow: 0 0 15px hsla(330, 90%, 65%, 0.35);
  transform: translateY(-2px);
}
.btn-delete-card svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

