/* =============================================================================
   cultures.css
   ----------------------------------------------------------------------------
   Styles for “My cultures” in prvem zavihku in za “Find users” filtre:
     • Ovitek .select-block (My cultures) in .filter-block (Find users)
     • Culture‐row entries (vrstice za posamezno kulturo)
     • Animated pill‐toggle (Neutral / I am looking for / I want to share)
     • Modal overlay (Select cultures)
     • Save preferences button spacing
   Vključene so tudi responsive prilagoditve za mobilnike.
============================================================================= */
/* =============================================================================
   stil za prazno sporočilo znotraj kartice
============================================================================= */
.empty-message {
  margin: 0;                 /* brez dodatnih zunanjih robov */
  padding: 0.75rem 1rem;     /* malo notranjega odmika, da ni prav ob robu */
  color: #333;               /* barva besedila */      
  background-color: rgba(249, 249, 249, 0.55); /* zelo rahlo sivo prosojno ozadje znotraj kartice */
  border-radius: 8px;        /* da sporočilo ni “ostro” pokonci */
}
/* ────────────────────────────────────────────────────────────────────────── */
/* OVITEK ZA “My cultures” (select-block)                                      */
/* ────────────────────────────────────────────────────────────────────────── */
/* (vklopi se v prvem zavihku: My cultures)                                    */
.select-block {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding:0;
  margin:0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.select-block .culture-row:first-child {
  margin-top: 0;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* OVITEK ZA “Find users” filtre (filter-block)                                */
/* ────────────────────────────────────────────────────────────────────────── */
/* (vklopi se v drugem zavihku: Find users)                                   */
.filter-block {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-block .culture-row:first-child {
  margin-top: 0;
}

/* Naredi da locked‐message dobi enak styling kot empty‐message */
.locked-message {
  display: flex;               /* omogoči flex layout */
  align-items: center;         /* vertikalno centriranje */
  justify-content: center;     /* horizontalno centriranje */
  padding: 0.75rem 1rem !important;
  margin: 1rem auto !important;
  max-width: 600px;
  min-height: 3rem;            /* da je višina dovolj za centriranje */
  background-color: rgba(249,249,249,0.55);
  border-radius: 8px;
  font-style: italic;
  color: #333;
  text-align: center;          /* fallback, če flex ne deluje */
}

/* ────────────────────────────────────────────────────────────────────────── */
/* 1) “Culture‐row” (vrstica za posamezno kulturo)                              */
/*    – uporablja se v My cultures in v Find users subkontenerju                */
/* ────────────────────────────────────────────────────────────────────────── */
#selected-cultures-container .culture-row,
#filter-selected-container .culture-row,
#display-cultures-profile-edit .culture-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

#selected-cultures-container .culture-row:first-child,
#filter-selected-container .culture-row:first-child,
#display-cultures-profile-edit .culture-row:first-child{
  margin-top: 0;
}

/* Levi del vrstice: ime kulture + opis */
#selected-cultures-container .culture-row .culture-info,
#filter-selected-container .culture-row .culture-info,
#display-cultures-profile-edit .culture-row .culture-info{
  flex: 2;
}

#selected-cultures-container .culture-row .culture-info strong,
#filter-selected-container .culture-row .culture-info strong,
#display-cultures-profile-edit .culture-row .culture-info strong{
  display: block;
  font-size: 1rem;
}

#selected-cultures-container .culture-row .culture-info .desc,
#filter-selected-container .culture-row .culture-info .desc,
#display-cultures-profile-edit .culture-row .culture-info .desc{
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Desni del vrstice: toggle + gumb za odstranjevanje */
#selected-cultures-container .culture-row .culture-controls,
#filter-selected-container .culture-row .culture-controls,
#display-cultures-profile-edit .culture-row .culture-controls{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}


/* ────────────────────────────────────────────────────────────────────────── */
/* 2) Animated pill‐toggle (Neutral / I am looking for / I want to share)       */
/* ────────────────────────────────────────────────────────────────────────── */
.culture-toggle {
  position: relative;
  display: flex;
  width: 400px;       /* dovolj široko, da se tekst ne prelomi */
  height: 36px;

  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
}

.culture-toggle .slider-indicator {
  position: absolute;
  top: 0;
  left: 0%;
  width: calc(100% / 3);
  height: 100%;
  background: #F57C00;
  border-radius: 0px;
  transition: left 0.3s ease;
  z-index: 1;
}

.culture-toggle .toggle-option {
  position: relative;
  flex: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: #333333;
  background: transparent;
  transition: color 0.3s ease;
  padding: 0 0.5rem;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
    border-color: #EAEBF0 ; border-radius: 8px;
}

.culture-toggle .toggle-option.selected {
}

/* ────────────────────────────────────────────────────────────────────────── */
/* 3) Modal overlay (“Select cultures”)                                        */
/* ────────────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: center;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;     /* nobeno ozadje */
    border: none;                /* brez obrobe */
    font-size: 1.5rem;           /* velikost “×” */
    line-height: 1;              /* centriraj znak */
    color: #c00;                 /* rdeča barva znaka */
    cursor: pointer;
    transition: color 0.2s ease; /* prehod barve ob hoverju */
    padding: 0;                  /* brez dodanega notranjega robu */
}

.modal-close:hover {
  color: #800;   /* temnejša rdeča */
}

.modal-actions {
  margin-top: 1rem;
  text-align: right;
	display: flex;
}

.modal-actions .btn {
  margin-left: 0.5rem;
	
}

#all-cultures-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

/* WebKit‐scrollbar */
#all-cultures-list::-webkit-scrollbar {
  width: 8px;
}

#all-cultures-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
}

#all-cultures-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

#all-cultures-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}

.all-culture-row {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid #e0e0e0;
}

.all-culture-row:last-child {
  border-bottom: none;
}

.all-culture-row .cell {
  position: relative;
  flex: 1;
  cursor: pointer;
}

.all-culture-row .cell input[type="checkbox"] {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1rem;
  height: 1rem;
  margin: 0;
  opacity: 1;
}

.all-culture-row .cell label {
  margin-left: 1.8rem;
  display: block;
}

.all-culture-row .cell .desc {
  margin: 0.25rem 0 0 0;
  color: #666;
  font-size: 0.875rem;
  line-height: 1.3;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* 4) “Save preferences” button (align right)                                 */
/* ────────────────────────────────────────────────────────────────────────── */
#save-preferences {
  margin-top: 1.5rem;
  float: right;
„
}

.culture-actions {
  display: block;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Toast container */
.toast-container {
  position: fixed;
  top: 4rem;              /* višina ostane kot prej */
  left: 50%;
  transform: translateX(-50%);
  /* odstrani width:100% in max-width:900px */
  width: auto;            /* samo toliko, kot je potrebno za toast */
  /* po želji lahko omejiš največjo širino toast-a, ne kontejnerja:
     max-width: 90vw;  */
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 10000;
  padding-left: 300px; /* da se pozicionira na sredino */
}


/* Posamezen toast */
.toast {
  display: inline-flex;   /* da se velikost prilagodi vsebini */
  align-items: center;
  background: #fff;       
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
  min-width: 300px;       /* ali karkoli želiš */
  max-width: 100%;        /* ne preseže containerja */
  opacity: 0;
  animation: slideDown 0.3s forwards;
}

/* Ikona – lahko Unicode ✓ ali FontAwesome, če ga imaš */
.toast .icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: #28a745;    
}

/* Animacija */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20%) translateX(-50%); }
  to   { opacity: 1; transform: translateY(0)    translateX(-50%); }
}

/* ────────────────────────────────────────────────────────────────────────── */
/* 5) Responsive prilagoditve za mobile (≤600px)                                */
/*      • Culture‐row prilagodimo na mobilnih                                        */
/*      • .results-block zloži karto in seznam navpično                            */
/*      • Prilagodimo višino seznama                                                 */
/*      • Prilagodimo user‐kartice                                                */
/* ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Culture‐row postane stolpec */
  #selected-cultures-container .culture-row,
  #filter-selected-container .culture-row,
  #display-cultures-profile-edit .culture-row{
    position: relative;    /* občutek absolutnega položaja za gumb “×” */
    padding-top: 1.5rem;   /* prostor za gumb “×” na vrhu */
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;       /* manj paddinga v ozkem prostoru */
  }

  /* Culture‐info (ime + opis) full width */
  #selected-cultures-container .culture-row .culture-info,
  #filter-selected-container .culture-row .culture-info,
  #display-cultures-profile-edit .culture-row .culture-info{
    
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Culture‐controls (toggle + remove) full width, pod info */
  #selected-cultures-container .culture-row .culture-controls,
  #filter-selected-container .culture-row .culture-controls,
  #display-cultures-profile-edit .culture-row .culture-controls{
    flex: none;
    width: 100%;
    justify-content: flex-start;
  }

  /* Pill‐toggle postane fluiden (100% širine minus malo robov) */
  .culture-toggle {
     width: 100%;              /* zasede celotno širino nadrejenega kontejnerja */
          /* pustimo prostor, da gumb “X” ne prekrije teksta */
    box-sizing: border-box;   /* padding se vključi v skupno širino */
    /* višina naj se prilagodi, če se besedilo prelomi */
    height: auto;
  }

   /* Dovolimo, da se besedilo v .toggle-option zavije, namesto 
     da se stiska in ostane v eni vrstici (white-space: normal) */
  .culture-toggle .toggle-option {
    white-space: normal;     /* prelom besedila, če je prekratek prostor */
    font-size: 0.8rem;       /* nekoliko manjša pisava, da se bolje prilega */
    padding: 0.2rem;        /* manjši padding, da se besedilo lažje vidi */
    text-align: center;      /* centralno poravnano (če se prelom narejen) */
    line-height: 1.2;
  }

  /* Slider-indikator naj še vedno prekrije tretjino širine */
  .culture-toggle .slider-indicator {
    width: calc(100% / 3);
    height: 100%;
  }


  /* Znotraj .results-block postavimo map and list navpično */
  .results-block .map-and-list {
    display: block;
  }
  .results-block .map-panel,
  .results-block .list-panel {
    width: 100%;
  }
  .results-block .list-panel {
    max-height: calc(100vh - 380px);
    padding: 0.5rem;
  }

  /* Mobilni user-card: kompakten izgled */
  .user-card {
    flex-direction: row;  
    gap: 0.75rem;
    padding: 0.5rem;
  }

  .user-card-avatar {
    width: 40px;
    height: 40px;
  }

  .user-card-body {
    gap: 0.2rem;
  }

  .user-card-contact {
    margin-top: 0.25rem;
  }

  .culture-actions {
  /* PREKLICEMO morebitne prejšnje flex-direction:column; */
  flex-direction: row;
  }
  .culture-actions .btn {
    /* gumba sta že flex:1 in se raztegneta */
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  /* Dodatni razmik, da se ne lepita skupaj ob robovih */
  .culture-actions .btn:first-child {
    margin-right: 0;
  }
  .culture-actions .btn:last-child {
    margin-left: 0;
  }
}
.culture-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.culture-content {
  flex: 1;
}

.culture-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.culture-image img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px!important;
  display: block;
  min-width: 60px!important;
}

.culture-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.culture-info .desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b7280;
}

.culture-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
}

.culture-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.culture-toggle {
  display: flex;
  gap: 10px;
}

.culture-toggle .slider-indicator {
  display: none;
}

.toggle-option {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 13px;
  background: #fff;
  color: #374151;
}

.toggle-option.selected {
  border-color: #fdba74;
  background: #fff7ed;
  color: #ea580c;
}

.remove-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}