/* =========================================================
   HELP-VIVO · Svi Oglasi (Premium Job Board)
   ========================================================= */

:root {
  --c-primary: #30ABAF;
  --c-primary-dark: #20878a;
  --c-accent: #71bada;
  --c-text-main: #0f172a;
  --c-text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-solid: rgba(255, 255, 255, 1);
  --border-glass: #f1f5f9;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 15px 40px rgba(48, 171, 175, 0.08);
}

body {
  background-color: var(--bg-main);
  font-family: "Montserrat", sans-serif;
}

/* ---------- Premium Zaglavlje ---------- */
.page-header-ui {
  text-align: center;
  margin: 14vh auto 0;
  padding: 0 20px;
  max-width: 800px;
  animation: fadeInDown 0.6s ease;
}
.page-header-ui h1 { font-size: 2.6rem; color: var(--c-text-main); margin: 0 0 10px; font-weight: 800; letter-spacing: -0.02em; }
.page-header-ui p { font-size: 1.1rem; color: var(--c-text-muted); margin: 0; line-height: 1.6; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Glavni Layout ---------- */
.page-container {
  max-width: 1200px;
  margin: 5vh auto 8vh;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* ---------- Sidebar (Filteri) ---------- */
.sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 12vh; }
.filter-box {
  background: var(--bg-glass-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.filter-box h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 20px; color: var(--c-text-main); }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--c-text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group select, .filter-group input {
  width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 12px;
  font-family: inherit; font-size: 0.95rem; background: #fff; transition: 0.3s; box-sizing: border-box; color: var(--c-text-main);
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 4px rgba(48, 171, 175, 0.15); }

/* ---------- Lista Oglasa ---------- */
.jobs-list { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; }

.job-card {
  background: var(--bg-glass-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 15px;
}
.job-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(48,171,175,0.3); }

/* Premium Oglas Stil */
.job-card.premium { background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%); border-color: rgba(48, 171, 175, 0.2); }
.premium-badge { position: absolute; top: 25px; right: -35px; background: var(--c-primary); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 40px; transform: rotate(45deg); text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(48,171,175,0.3); }

.job-header { display: flex; justify-content: space-between; align-items: flex-start; padding-right: 20px; }
.job-category-pill { display: inline-block; font-size: 0.75rem; background: #e6f5f6; color: var(--c-primary-dark); padding: 5px 12px; border-radius: 12px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.job-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; line-height: 1.2; }
.job-title a { color: var(--c-text-main); text-decoration: none; transition: 0.2s; }
.job-title a:hover { color: var(--c-primary); }

.job-company { font-size: 0.95rem; color: var(--c-text-muted); font-weight: 500; }
.job-company b { color: var(--c-text-main); font-weight: 600; }

.job-meta { display: flex; flex-wrap: wrap; gap: 15px 25px; font-size: 0.95rem; color: var(--c-text-muted); font-weight: 500; margin-top: 5px; }

/* Tagovi */
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.job-tags .tag { background: #f8fafc; color: var(--c-text-muted); padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.85rem; font-weight: 600; transition: 0.2s; }
.job-tags .tag-more { background: #e2e8f0; color: var(--c-text-main); text-decoration: none; cursor: pointer; }
.job-tags .tag-more:hover { background: #cbd5e1; }

/* Footer kartice (Plata i Dugmad) */
.job-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; border-top: 1px dashed #e2e8f0; padding-top: 20px; }
.job-salary { font-weight: 800; font-size: 1.25rem; color: var(--c-text-main); }
.job-actions { display: flex; gap: 12px; }

/* Dugmad */
.btn-apply { background: var(--c-primary); color: #fff; padding: 12px 24px; border-radius: 14px; font-family: inherit; font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 12px rgba(48, 171, 175, 0.2); text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(48, 171, 175, 0.3); background: var(--c-primary-dark); color: #fff; }

.btn-filter { background: #fff; color: var(--c-text-main); border: 1px solid #e2e8f0; padding: 12px 20px; border-radius: 14px; font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: 0.3s; text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.btn-filter:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--c-text-main); }

.btn-disabled { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; cursor: not-allowed; }
.btn-disabled:hover { background: #f1f5f9; border-color: #e2e8f0; transform: none; }
.btn-full { width: 100%; }

/* Prazno Stanje (Nema rezultata) */
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius-lg); border: 1px dashed #cbd5e1; }
.empty-icon { font-size: 3rem; margin-bottom: 15px; opacity: 0.5; }
.empty-state h3 { font-size: 1.5rem; color: var(--c-text-main); margin: 0 0 10px; }
.empty-state p { color: var(--c-text-muted); margin-bottom: 25px; }

/* Mobilni Prikaz */
@media (max-width: 900px) {
  .page-header-ui { margin-top: 12vh; }
  .page-container { flex-direction: column; margin-top: 3vh; }
  .sidebar { width: 100%; position: static; }
}

@media (max-width: 600px) {
  .job-header { flex-direction: column; }
  .job-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .job-actions { flex-direction: column; width: 100%; }
  .btn-apply, .btn-filter { width: 100%; }
  .job-card { padding: 20px; }
}