* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sidebar {
  width: 60px;
  height: 100vh;
  background-color: white;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}

.logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.logo:hover {
  background-color: #f0f0f0;
}

.ikona {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  opacity: 0.4;
}

.ikona:hover {
  background-color: #f0f0f0;
  opacity: 1;
}

.ikona.aktivna {
  background-color: black;
  opacity: 1;
}

.ikona.aktivna img {
  filter: invert(1);
}

.ciara {
  width: 30px;
  height: 1px;
  background-color: #e0e0e0;
  margin: 8px 0;
}

.spacer {
  flex: 1;
}

.obsah {
  margin-left: 60px;
}

.skryte {
  display: none;
}

/* ===== Navbar ===== */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  background: white;
  z-index: 50;
}

.navbar-left {
  flex: 1;
  max-width: 500px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Search box ===== */

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: text;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.search-box:focus-within {
  background-color: #efefef;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.search-ikona {
  opacity: 0.4;
  flex-shrink: 0;
}

.search-input {
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: #111;
  width: 100%;
  font-family: inherit;
}

.search-input::placeholder {
  color: #999;
}

.search-text {
  font-size: 14px;
  color: #999;
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  flex-shrink: 0;
}

.search-clear:hover {
  opacity: 0.8;
}

.search-clear.viditelne {
  display: flex;
}

/* ===== Buttons ===== */

.btn-plus {
  background-color: black;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.btn-login {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  padding: 8px 4px;
}

.btn-login:hover {
  color: black;
}

.btn-submit {
  font-size: 14px;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-submit:hover {
  border-color: #888;
}

/* ===== Kategórie ===== */

.kategorie {
  display: flex;
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid #e8e8e8;
  overflow-x: auto;
}

.kat {
  padding: 14px 14px;
  font-size: 14px;
  color: #767676;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.kat:hover {
  color: #111;
}

.kat.aktivna-kat {
  color: #111;
  font-weight: 500;
  border-bottom: 2px solid #111;
}

.new-badge {
  font-size: 10px;
  background-color: #111;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ===== Hero ===== */

.hero {
  display: flex;
  gap: 20px;
  padding: 40px 20px 30px 20px;
  align-items: flex-start;
}

.hero-left {
  flex: 1;
}

.hero-nadpis {
  font-size: 42px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.hero-text {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: text;
  max-width: 480px;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.hero-search:focus-within {
  background-color: #efefef;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.hero-right {
  width: 380px;
  flex-shrink: 0;
}

.hero-karta {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.karta-logo {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.karta-nadpis {
  font-size: 15px;
  color: #111;
  line-height: 1.5;
  margin-bottom: 6px;
}

.karta-podnadpis {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  margin-bottom: 16px;
}

.karta-btn {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.karta-foto {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== Filter info bar ===== */

.filter-info {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  color: #767676;
  background-color: #fafafa;
  border-bottom: 1px solid #efefef;
}

.filter-info.viditelny {
  display: flex;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #111;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.filter-tag button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.7;
  font-size: 14px;
  line-height: 1;
}

.filter-tag button:hover {
  opacity: 1;
}

/* ===== Mriežka fotiek ===== */

.mriezka {
  columns: 3;
  gap: 12px;
  padding: 20px 20px 40px 20px;
}

.foto-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.foto-item img {
  width: 100%;
  display: block;
  transition: opacity 0.2s;
}

.foto-item:hover img {
  opacity: 0.85;
}

.foto-item.skryte-foto {
  display: none;
}

/* ===== Prázdny stav mriežky ===== */

.prazdna-mriezka {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 60px 20px;
  gap: 12px;
}

.prazdna-mriezka.viditelna {
  display: flex;
}

.prazdna-nadpis {
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

.prazdna-popis {
  font-size: 14px;
  color: #999;
}

.prazdna-btn {
  margin-top: 8px;
  background-color: #111;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.prazdna-btn:hover {
  background-color: #333;
}

/* ===== Bookmark ikonka na fotke ===== */

.foto-bookmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background-color 0.15s;
  cursor: pointer;
}

.foto-bookmark img {
  filter: invert(1);
  width: 16px;
}

.foto-item:hover .foto-bookmark {
  opacity: 1;
}

.foto-bookmark:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.foto-bookmark.ulozene {
  opacity: 1;
  background-color: white;
}

.foto-bookmark.ulozene img {
  filter: invert(0);
}

/* ===== Bookmarks stránka ===== */

.zalozky-obal {
  padding: 50px 30px 60px 30px;
  min-height: 60vh;
}

.zalozky-nadpis {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 60px;
}

.zalozky-ikona-nadpis {
  flex-shrink: 0;
}

.zalozky-prazdne {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 20px;
}

.zalozky-ilustracia {
  margin-bottom: 24px;
}

.zalozky-titulok {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.zalozky-popis {
  font-size: 14px;
  color: #767676;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zalozky-mini-ikona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
}

/* ===== Footer ===== */

.footer {
  padding: 30px 30px 24px 30px;
  border-top: 1px solid #efefef;
}

.footer-hlavny {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

.footer-mriezka {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.footer-stlpec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: #767676;
  cursor: pointer;
}

.footer-link:hover {
  color: #111;
}

.footer-socialy {
  display: flex;
  gap: 14px;
  margin-left: auto;
  opacity: 0.6;
}

.footer-socialy img {
  cursor: pointer;
}

.footer-spodok {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #efefef;
}

.footer-pozdrav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #767676;
}

.footer-pravne {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #767676;
}

/* ===== Modal - zväčšený obrázok ===== */

.modal-prekrytie {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.modal-prekrytie.zobrazene {
  display: flex;
  animation: modalFadeIn 0.18s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-obal {
  background-color: white;
  border-radius: 10px;
  max-width: 1000px;
  max-height: 88vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-horna-lista {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #ececec;
  flex-shrink: 0;
}

.modal-autor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #ececec;
  flex-shrink: 0;
}

.modal-autor-text {
  display: flex;
  flex-direction: column;
}

.modal-autor-meno {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.modal-autor-popis {
  font-size: 12px;
  color: #999;
}

.modal-akcie {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-btn-bookmark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.modal-btn-bookmark:hover {
  border-color: #999;
}

.modal-btn-bookmark.ulozene {
  background-color: black;
  color: white;
  border-color: black;
}

.modal-btn-bookmark.ulozene img {
  filter: invert(1);
}

.modal-btn-download {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  background-color: black;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.modal-btn-download:hover {
  background-color: #2a2a2a;
}

.modal-download-ikona {
  filter: invert(1);
}

.modal-btn-zavriet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
  opacity: 0.6;
  transition: opacity 0.15s, background-color 0.15s;
}

.modal-btn-zavriet:hover {
  background-color: #f0f0f0;
  opacity: 1;
}

.modal-obrazok-obal {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
  min-height: 0;
}

.modal-obrazok-obal img {
  max-width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .modal-prekrytie {
    padding: 0;
  }
  .modal-obal {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }
  .modal-btn-bookmark span,
  .modal-btn-download span {
    display: none;
  }
  .mriezka {
    columns: 2;
  }
}
#menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
}

#side-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 60px;
  right: 650px;
  background: white;
  border-top: 1px solid #e0e0e0;
  padding: 40px;
  z-index: 201;
}

#menu-overlay.active { display: block; }
#side-menu.active    { display: block; }

#menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.menu-columns {
  display: flex;
  gap: 80px;
}

.menu-col {
  display: flex;
  flex-direction: column;
}

.menu-col h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
  margin-bottom: 14px;
}

.menu-col a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  margin-bottom: 10px;
}

.menu-col a:hover {
  color: #111;
}