:root {
  --primary: #0b2a5b;
  --primary-hover: #d4800a;
  --bg-light: #f4f5f7;
  --text: #333;
  --card-bg: #ffffff;
}
body {
  background-color: var(--bg-light);
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
}

/* ===== HEADER ===== */
header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  background-color: var(--primary);
  height: 110px;
  color: white;
  transition: background-color 0.3s;
}
main.container {
  min-height: 55vh; /* minimálna výška main obsahu */
}
.Logo img { 
  height: 90px;
  width: auto;
  margin-left: -30px;
  margin-top: 10px;
}

.searcher {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
}

.searcher input {
  width: 250px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 16px;
  color: #333;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}
.Log_in{
  margin-right: -15px;
  display: inline-block;
  padding: 8px 15px;
  background-color: #eaeae6;
  border-radius: 8px;
  text-decoration: none;
  color: #0b2a5b;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}
.Log_in:hover {
  background-color: #dcdcd7;
  color: var(--primary-hover);
}
.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;   /* uprav podľa potreby */
  height: 18px;
  opacity: 0.6;
  pointer-events: none; /* aby sa nedalo kliknúť */
}

/* Mini Header */
.mini-header {
  position: relative;              /* povinné pre ::after */
  width: 100%;
  background-color: #0b2a5b;        /* nová modrá */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* LED glow line */
.mini-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,transparent,#3b82f6,#60a5fa,#3b82f6,transparent);
  box-shadow:
    0 0 6px rgba(96, 165, 250, 0.8),
    0 0 12px rgba(59, 130, 246, 0.6);
  pointer-events: none;
  z-index: 1;
}
@keyframes ledGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.mini-header::after {
  animation: ledGlow 3s ease-in-out infinite;
}
.mini-header .mini_logo{
  margin-right: 5px;
}
.mini-header a {
  text-decoration: none;
  border-radius: 8px solid;
  color: rgb(255, 255, 255);
  font-weight: 900;
  padding: 5px 10px 0;
  transition: background-color 0.3s, color 0.3s;
}

.mini-header a:hover {
  background-color: #4f5057;
  color: #021945;
  border-radius: 4px;
}
.Log_in .mini_logo{
  margin-left: 5px;
}
.hot_buttons_hot{
  filter: brightness(0) saturate(100%) invert(20%) sepia(85%) saturate(7000%) hue-rotate(350deg);
}
.hot_buttons_rise{
  filter: brightness(0) invert(1);
}
.mini_logo_company{
  filter: brightness(0.85) saturate(120%) sepia(75%) hue-rotate(12deg);
}
/* ===== TRUST SIDE BAR ===== */
.trust-bar {
  position: fixed;
  top: 30%;
  left: -215px;
  width: 260px;
  display: flex;
  flex-direction: row-reverse; /* 👈 KĽÚČOVÁ VEC */
  transition: left 0.35s ease;
  z-index: 99999;
  background: transparent;
}

.trust-bar:hover {
  left: 0;
}

/* hover efekt */
.trust-bar:hover {
  left: 0;
}

/* úzka lišta (viditeľná stále) */
.trust-handle {
  width: 45px;
  height: 120px;
  background: #d4800a;
  color: #000;
  font-weight: 800;
  font-size: 16px;
  writing-mode: vertical-rl;
  text-align: center;
  padding: 12px 0px;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
}
/* obsah po vysunutí */
.trust-content {
  width: 220px;
  background-color: #021945;
  padding: 15px;
  font-size: 14px;
  border: #0b2a5b solid 1px;
  color: white;
}

.trust-content h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #d4800a;
  padding-left: 15px;
}

.trust-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.trust-content ul li {
  margin-bottom: 6px;
}

.trust-score {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}
/*koniec sidebaru*/

/*reklama*/
.ad-sidebar {
  position: absolute; /* bude relatívne k body */
  top: 170px; /* odsadenie od vrchu (pod header) */
  left: 0px; /* vzdialenosť od pravej strany */
  width: 260px; /* šírka reklamy */
  z-index: 10; /* aby bola nad ostatnými elementmi */
}

.ad-sidebar img {
  width: 100%; /* aby vyplnila celý div */
  display: block;
  height: 450px;
}
/*koniec reklamy*/
.job-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-block;
  background: #eef2ff;
  color: #0b2a5b;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 6px;
  font-weight: 600;
}
/* Salary badge */
.badge-salary {
  cursor: pointer;
  background-color: #e9f9f0;
  color: #198754; /* bootstrap green */
  border: 1px solid #198754;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.save-icon {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;        /* 👈 dôležité */
  position: relative;/* 👈 dôležité */
  pointer-events: auto;
}

.save-icon:hover {
  transform: scale(1.2);
  opacity: 1;
}

.save-icon.saved {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(212,128,10,0.6));
  animation: heartPop 0.5s ease;

}
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}



/* ===== FILTERS ===== */
.filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

}

.filters-wrapper .filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

select,input[type="text"],input[type="date"],textarea {
  min-width: 180px;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: var(--card-bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}
textarea {
  resize: vertical;
}
.filters select,
.filters input {
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,42,91,0.15);
}

/* ===== ACCOUNT OVERVIEW ===== */
.account-overview {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.overview-box {
  flex: 1;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.overview-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  background: #f8f9ff;
}

.overview-box.saved {
  border-color: rgb(195, 13, 13);
}

.overview-box.applied {
  border-color: #28a745;
}
.toast-container {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 1rem;
  z-index: 11000;

}
.toast {
  min-width: 280px;
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  animation: toastSlideIn 0.4s ease;
}
.toast-body {
  font-weight: 500;
}
.toast .btn-close {
  filter: invert(1);          
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}


@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/*buttony*/
.modal-switch {
  position: relative;
  display: flex;
  border: 1px solid #0b2a5b;
  border-radius: 50px;
  overflow: hidden;
  width: 220px; /* celková šírka */
  margin: 10px auto;
}
.modal-switch .switch-btn {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  background: transparent;
  border: none;
  z-index: 2;
  color: #0b2a5b;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.modal-switch .switch-btn.active {
  color: #fff;
}
.modal-switch .switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* polovica pre 2 tlačidlá */
  height: 100%;
  background-color: #0b2a5b;
  border-radius: 50px;
  transition: left 0.3s ease;
  z-index: 1;
}
.applybutton,.loginbutton,.registerbutton{
  color: white;
  background-color: #0b2a5b;
}
.modals .btn.active {
  background-color: #0b2a5b; 
  color: #fff;
}
.resetbutton{
  color: white;
  transition: background-color 0.3s, color 0.3s;
}
.resetbutton:hover{
  background-color: #4f5057;
  color: #0b2a5b;
}
.reset {
  background-color: #0b2a5b;
  width: fit-content;
  align-self: flex-end; 
}
.smart-empty {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  font-size: 1.05rem;
  color: #0b2a5b;
  animation: fadeIn 0.4s ease;
}

.smart-empty small {
  display: block;
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.9rem;
}
/*koniec buttonov*/

/* jemné farebné odlíšenie */
.saved-empty {
  border-color: #e11d48;
}

.applied-empty {
  border-color: #16a34a;
}

.generic-empty {
  border-color: #0b2a5b;
}


.container{
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
}

.jobs {
  display: grid;
  gap: 1rem;
}

.job:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--primary);
}

.job h3 {
  margin:0 0 0.3rem;
  color: var(--primary);
}
.job p {
  margin:0.2rem 0;
}

.job {
  display: flex;          
  gap: 1rem;               
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px #0b2a5b;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              border-color 0.2s ease, background 0.3s, color 0.3s;
  position: relative;
}

.job-image {
  width: 200px;       
  height: 100%;      
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0;  
}

.job-content {
  flex: 1;            /* text zaberie zvyšok miesta */
}

.apply-btn {
  margin-top:0.5rem;
  background-color: var(--primary);
  color:white;
  border:none;
  padding:8px 16px;
  border-radius:6px;
  cursor:pointer;
  transition: background-color 0.2s ease;
}

.apply-btn:hover {
  background-color: var(--primary-hover);
}

.applied-label {
  margin-top:0.5rem;
  color:#28a745;
  font-weight:600;
  text-align:right;
  opacity:0;
  animation: fadeIn 0.6s forwards;
}
#jobCount {
  font-weight: 500;
  text-align: right;
}

/* mapa */
.footer-map {
  margin: 2rem auto;
  padding: 0 20px;
  max-width: 800px;     /* alebo 50% ak chceš */
}

.footer-map h4 {
  margin-top: -20px;
  text-align: center;
  margin-bottom: 10px;
}

#jobMap {
  align-items: center;
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/*koniec mapy*/

.map-filter-btn {
  background-color: #0b2a5b;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.map-filter-btn:hover {
  background-color: #d4800a;
}

/*footer*/
.main-footer {
  background-color: var(--primary);
  color: white;
  padding: 10px 0 20px;
  margin-top: 3rem;
}

.footer-content {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0 20px;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 6px 0;
  font-size: 15px;
}

.footer-section a {
  color: #ffeaff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-section h5 {
  align-items: center; 
  gap: 0.5em; /* medzera medzi logom a textom */
  font-size: 18px; /* veľkosť písma WorkLink */
}

.mini_logo {
  height: 1.5em; 
  width: auto;
  margin-right: 5px;

}

.footer-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.8;
}
@keyframes fadeIn { to { opacity:1; } }

.no-results {
  text-align:center;
  font-style:italic;
  color:#777;
  padding:1rem;
}

@media (max-width:1480px){
  .ad-sidebar{
    display: none;
  }
}
@media (max-width: 1299px) {
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 30px;
  }
  .ad-sidebar{
    display: none;
  }
  .searcher {
    position: static;
    transform: none;
    width: 100%;
    margin: 10px 0;
    order: 3;
  }

  .searcher input {
    width: 100%;
    max-width: 400px;
    margin: auto;
    display: block;
  }
  .Log_in{
    margin-right: 15px;
  }
}


@media (min-width: 1200px) {
  .container {
    max-width: 1000px;
  }

  .footer-content {
    max-width: 1000px;
  }
}

@media (max-width: 1024px) {

  .container {
    padding: 0 15px;
  }

  .ad-sidebar {
    display: none;
  }

  .job-image {
    width: 160px;
  }

  .filters-wrapper .filters {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .footer-map {
    max-width: 100%;
  }

  #jobMap {
    height: 250px;
  }
  
}
@media (max-width: 820px){
  header{
    justify-content: center;
  }
}
  

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  .Logo{
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .Logo img {
    margin-left: 0;
    height: 80px;
  }

  .searcher {
    position: static;
    transform: none;
    width: 100%;
  }

  .searcher input {
    width: 100%;
  }

  .header-right {
    justify-content: center;
    flex-wrap: wrap;
  }
  .mini-header {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .ad-sidebar,
  .trust-bar {
    display: none;
  }
  .filters-wrapper .filters {
    grid-template-columns: 1fr;
  }

  .reset {
    width: 100%;
    align-self: stretch;
  }
  .account-overview {
    flex-direction: column;
  }
  .job {
    flex-direction: column;
  }

  .job-image {
    width: 100%;
    height: 180px;
  }

  .apply-btn {
    width: 100%;
  }

  #jobCount {
    text-align: center;
  }
  #jobMap {
    height: 220px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  button,.apply-btn {
  min-height: 44px;
  }
  .toast-container {
    top: 10px;
    bottom: auto;
    right: 50%;
    transform: translateX(50%);
  }

  .toast-container {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11000;
    padding: 0;
  }
  
  .toast {
    min-width: 280px;
    max-width: 90vw;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    font-size: 15px;
    animation: toastSlideIn 0.4s ease;
  }
  .Log_in{
    margin-right: 0;
  }
}
@media (max-width: 400px){
  header{
    width: auto;
    justify-content: center;
    text-align: center;
  }
  .Logo img{
    margin: 0;
    max-width: 100%;
  }
  
}

