/*
ispiracious css 2020 https://teamsesh.bigcartel.com
dohladatelne skrz waybackmachine
obrovskou pomocou bolo https://www.youtube.com/watch?v=HGTJBPNC-Gw - HTML & CSS Full Course 

TODO: 
teoreticky prerobit theme do hnedej

*/

* {
  margin: 0; /*priestor vonku okolo elementu*/
  padding: 0; /*prietor vnutri elementu medzi obsahom a okrajom*/
  box-sizing: border-box; /*ak chapem spravne urcuje ako sa pocita vyska a sirka elementov cize sirka = obsah + padding + border*/
  font-family: 'Consolas', monospace; /*typ pisma*/
}

/*"pozadie stranky*/
body {
  color: #e4e3e3;
  background-color: #0b1d12; /*farba pozadia*/
  overflow-x: hidden; /*urcuje co sa stane s obsahom ak pretecie*/
}

/* topbar - taka ta sranda s listami - navbar */
.topbar {
  width: 100%;
  position: fixed; /*fixna pozicia, pri scrollovani sa nehybe*/
  top: 0;
  background: rgba(10, 25, 15, 0.9); /*farba pozadia elementu*/
  display: flex; /*typ zobrazenia flexbox*/
  justify-content: space-between; /*zarovnanie vo flexboxe horizontalne*/
  align-items: center; /*zarovnanie vo flexboxe vertikalne*/
  padding: 15px 50px;
  z-index: 100; /*urcuje poradie prekryvania elementov*/
  backdrop-filter: blur(6px);
}

/*logo text*/
.logo {
  font-weight: bold; /*hrubka pisma*/
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.15em;
  gap: 0.3em;
}

/*moje oko*/
.logo-eye {
  height: 1.4em;
  width: auto;
  margin-left: 0.1em;
  flex-shrink: 0; /*ci sa flex polozka moze zmensit alebo nie */
  transform: translateY(0.05em); /*transformacia, ci sa moze otocit, scalovat etc*/
}

/*Zmena farby textu a obrazka pri hoveri*/
.logo:hover {
  color: #9fe870;
}

/*na to aby ten hover vyzeral dobre som bol donuteny vyhrat sa s filtrami*/
.logo:hover .logo-eye {
  filter: brightness(0) saturate(100%) invert(85%) sepia(17%) saturate(728%) hue-rotate(47deg) brightness(106%) contrast(92%);
  transition: filter 0.3s ease;
}

/*anchor elementy pre navbar*/
.topbar a {
  color: #e4e3e3;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease; /*plynula animacia*/
}

/*opat hover*/
.topbar a:hover {
  color: #9fe870;
}

/* background - pozadie */
.core {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*video co bezi na pozadi - index.html*/
#main-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; /*ako sa obrazok prisposobi*/
  z-index: -2;
}

/*video na vsetkych ostatnych web strankach*/
#subsite-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(60%);
}

/*filter čo je nad videom, resp. prekrytie*/
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 20, 5, 0.4);
  z-index: -1;
}

/*text jadra stranky*/
.core-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/*"najdolezitejsi nadpis" textu*/
.core-text h1 {
  font-size: 3em; /*velkost pisma*/
  color: #9fe870;
}

/*text paragrafu*/
.core-text p {
  font-size: 1.2em;
  color: #e4e3e3;
  margin-top: 10px;
}

/*text box*/
.text-box {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1700px;
  padding: 3rem 4rem;
  background: #0a190f;
  border: 2px solid rgb(255, 255, 255);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
  text-align: center;
  color: #e4e3e3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*nadpis textboxu*/
.text-box h1 {
  font-size: 2.8rem;
  color: #9fe870;
  margin-bottom: 1rem;
}

/*paragraf textboxu*/
.text-box p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #d9d9d9;
}

/*jednotny "box"*/
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap; /*ci sa mozu flex polozky zalomovat*/
}

/*lava cast paragraf*/
.contact-left p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

/*image - respektíve ikona lenže nepoužívam svg i keď neviem ci by to nieco zmenilo, asi hej*/
.contact-left img {
  width: 30px;
  height: 30px;
  opacity: 0.85;
}

/*Odkazy na socialne siete v pravej časti*/
.contact-right a {
  margin-left: 1rem;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/*ikonky socialnych sieti*/
.contact-right img {
  width: 42px;
  height: 42px;
  opacity: 0.85;
}

/*hover efekt*/
.contact-right a:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* nech to je responsivne aj pre mensie obrazovky, avsak som to netestoval*/
@media (max-width: 700px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /*obsadenie pravej casti pod lavú*/
  .contact-right {
    margin-top: 1.5rem;
  }

  /* zmensenie medzier medzi ikonkami soc. sieti*/
  .contact-right a {
    margin: 0 0.5rem;
  }

  /*fotografie v artikloch*/
  .article-image {
    float: none !important; /*"plavanie" obrazku alebo elementu, text ho bude obtekat*/
    display: block;
    margin: 1.5rem auto;
    width: 90%;
  }
}

/*jadro galerie */
.gallery-core {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  flex-direction: column;
  padding-top: 120px;
}

/*grid galerie*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /*zadefinovanie stlpcov gridu*/
  gap: 25px;
  width: 90%;
  max-width: 1600px;
  margin: 5rem auto;
  padding: 2rem;
  background: #0a190f;
  border: 2px solid #9fe870;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8); /*tien okolo boxu*/
  border-radius: 10px; /*zaobelene rohy*/
}

/*jeden item v galerii*/
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  cursor: pointer; /*aky mame cursor*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(80%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(100%) drop-shadow(0 0 10px #9fe870);
}

/*cela overlay vrstva*/
#lightbox {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 15, 0.95);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

/*samotne foto v lightboxe*/
#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border: 2px solid #9fe870;
  border-radius: 10px;
  box-shadow: 0 0 25px #000;
}

/*Xko na pravo*/
#lightbox .close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #9fe870;
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

#lightbox .close:hover {
  color: #e4e3e3;
  transform: scale(1.1);
}

/*jadro pre clanky - mam rad slovo core*/
.article-core {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  flex-direction: column;
  padding: 140px 0 60px 0;
}

/*box na text*/
.article-content {
  text-align: left;
  line-height: 1.7;
}

/*hlavny nadpis*/
.article-content h1 {
  font-size: 2.8rem;
  color: #9fe870;
  border-left: 3px solid #9fe870;
  padding-left: 0.8rem;
  border-bottom: 3px solid #9fe870;
  margin-bottom: 1.5rem;
}

/*podnadpisy clankov*/
.article-content h2 {
  font-size: 2rem;
  color: #b6f78e;
  padding-left: 0.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/*najmensi nadpis*/
.article-content h3 {
  font-size: 1.7rem;
  color: #d9d9d9;
  text-transform: uppercase; /*zmena textu na dany typ*/
  letter-spacing: 0.05em;
  margin-top: 2rem;
}

/*moje "meta" info pre clanky*/
.article-meta {
  font-size: 1.1rem;
  color: #b3b3b3;
  margin-bottom: 2rem;
  font-style: italic;
}

/*style pre obrazky v clankoch*/
.article-image {
  width: 40%;
  max-width: 500px;
  border: 2px solid #9fe870;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  margin: 1.5rem;
  transition: transform 0.3s ease;
}

.article-image.left {
  float: left;
  margin-right: 2rem;
}

.article-image.right {
  float: right;
  margin-left: 2rem;
}

.article-image:hover {
  transform: scale(1.02);
}

/*clearfix pseudoelement aby floatované foto nerobilo bordel*/
.article-section::after {
  content: "";
  display: block;
  clear: both;
}

/*malo by sa to pouzivat pri quotes ale napadlo mi že hlasky partakov z danych miest by tiez mohli byt*/
blockquote {
  font-style: italic;
  color: #9fe870;
  border-left: 3px solid #9fe870;
  padding-left: 1rem;
  margin: 2rem 0;
  font-size: 1.3rem;
}
/*"box" pre obrazkovu mapu*/
.image-map-container {
  text-align: center;
  margin: 2rem 0;
}
/*obrazkova mapa*/
.image-map {
  width: 90%;
  max-width: 800px;
  border: 2px solid #9fe870;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(159, 232, 112, 0.3);
  transition: transform 0.3s ease;
}
/*cely ten article list*/
.article-list-core {
  min-height: 100vh;
  padding: 140px 0 60px 0;
}
/*nadpis zoznamu*/
.article-list h1 {
  font-size: 2.8rem;
  color: #9fe870;
  margin-bottom: 2rem;
  text-align: center;
}

/*grid - neviem ako sa to povie po Slovensky kariet*/
.article-list-container {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 0;
  margin: 0;
}

/*karta clanku*/
.article-item a {
  display: block;
  background: #0a190f;
  border: 2px solid #9fe870;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  color: #e4e3e3;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item a:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(159, 232, 112, 0.4);
}

/*foto v karte*/
.article-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(80%);
  transition: filter 0.3s ease;
}

.article-item a:hover img {
  filter: brightness(100%);
}

/*nazov clanku*/
.article-item h2 {
  font-size: 1.5rem;
  color: #9fe870;
  margin: 1rem;
}

/*popis*/
.article-item p {
  font-size: 1.1rem;
  color: #cfcfcf;
  margin: 0 1rem 1.5rem;
}

/*usporiadany zoznam*/
.faq-list {
  line-height: 1.6;
  font-size: 1.1rem;
  margin: 1rem 0 3rem 2rem;
}

.faq-list li {
  margin-bottom: 1.2rem;
}

/*definičny zoznam*/
.urbex-slang dl {
  margin: 2rem 0;
}

.urbex-slang dt {
  font-weight: bold;
  color: #9fe870;
  margin-top: 1rem;
}

.urbex-slang dd {
  margin-left: 1rem;
  color: #ccc;
  line-height: 1.5;
}

/*footer na koneic*/
.site-footer {
  text-align: center;
  padding: 1.5rem;
  /*margin-top: 3rem;*/
  font-size: 0.9rem;
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

.site-footer:hover {
  opacity: 1;
}