@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2'),
       url('../fonts/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2'),
       url('../fonts/Inter-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
a {
  color: rgb(215, 138, 246);
}
a:visited {
  color: gray;
}
a:hover {
  color: purple;
}

:root {  /* proměnné */
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --text-coltwo: #959595;
  --card-bg: #1f1f1f;
  --accent-color: #b400ff; /* hover, můžeš změnit */
  --border-color: rgba(255, 255, 255, 0.2);
  --border-colb: #373737;
  --icon-bg: #8e44ad;        /* barva pozadí ikon */
  --icon-hover: #da7dff;     /* barva ikon po najetí myší */
  --icon-padding: 8px;  
  --modal-bg: rgba(0, 0, 0, 0.85); /* pro tmavý skin */
}

.light {  /* proměnné */
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-coltwo: #616161;
  --card-bg: #ebeae8;
  --accent-color: #b400ff; /* hover pro světlý skin */
  --border-colb: #d7d7d7;
  --border-color: rgba(0, 0, 0, 0.1); 
  --modal-bg: rgba(255, 255, 255, 0.9); /* pro světlý skin */ 
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  /*
  background-image: url('../img/bckgrnd.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: difference;  */
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../img/bckgrnd.jpg') center center / cover no-repeat;
  opacity: 0.6; /* Aplikuje se pouze na pozadí */
  mix-blend-mode: difference;
  z-index: -1;
  pointer-events: none;
}
.biggest{
  font-size: 350%!important;
  line-height: 100%!important;
}
h1, h2, h3, strong {
  font-weight: 700;
}
.header{
  position: relative;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
} 
.footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--card-bg);
} 
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  text-transform: uppercase;  
}
.main-nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.1s ease;
}

.main-nav ul li a:hover {
  color: var(--accent-color); /* barva po najetí */
}
.menu-toggle {
  display: none; 
  font-family: 'Inter', sans-serif;
  font-weight: 700; /* nebo 400 podle potřeby */
  text-transform: uppercase;
  font-size: 1em; 
  cursor: pointer;
}
.theme-toggle {
  fill: var(--text-color);
  background-color: #87676700;
  transition: fill 0.1s ease;
  border: 0; 
  cursor: pointer;
}
.theme-toggle:hover {
  fill: var(--icon-bg);
}
.intro {
  text-align: center;
  padding: 0rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.text-content {
  max-width: 800px;         /* omezí šířku */
  margin: 0 auto;           /* zarovná blok na střed */
  text-align: center;       /* zarovná text uvnitř bloku na střed */
  padding: 2rem 1rem;
}
.text-cursiv {
  text-align: center;
  padding: 1rem 1rem;
  font-style: italic;
}
.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0rem 1rem; /* volitelné */
}

.responsive-image {
  max-width: 100%;
  height: auto;
}
.grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.media-card {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: left;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
  margin: 1em;
  position: relative; /* důležité, aby absolutní pozice uvnitř fungovala */
  padding-top: 1.3em; /* mírný odsazení shora, aby se datum nepřekrývalo s titulkem */
}
.media-date {
  position: absolute;
  top: 0.3em;
  font-size: 0.8em;
  color: var(--text-coltwo);
  font-style: italic;
  user-select: none;
  z-index: 10; /* aby bylo datum nad ostatním obsahem */
}
.media-embed {  
  position: relative;
  width: 100%; 
  overflow: hidden;
  border-radius: 8px;
}
/* Pouze pro iframe kontejnery */
.media-embed.youtube,
.media-embed.soundcloud,
.media-embed.mixcloud {
  padding-top: 56.25%; /* 16:9 */
}

.media-embed.youtube iframe,
.media-embed.soundcloud iframe,
.media-embed.mixcloud iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Pro obrázky žádný padding */
.media-embed.image {
  padding-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Volitelně omezení výšky obrázku */
.media-embed.image img.thumbnail {
  max-height: 200px;
  width: auto;
}

/* Pro text vůbec žádné embed médium není potřeba výškově řešit */
.media-embed.text {
  padding-top: 0;
  display: none; /* pokud nechceš zobrazovat nic, skryj */
}
.media-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;  
}
.media-embed.text,
.media-embed.image {
  padding-top: 0;
  margin-top: 0.7rem;
}

.media-embed.image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
}
.media-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.media-card p {
  color: var(--text-coltwo);
  font-size: 1rem;
  margin-top: 0px;
}

.footer {
  margin-top: auto;
  text-align: center;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-colb);
}
  .logo img {
    height: 50px;
  } 
@media (max-width: 768px) {  
 .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: var(--card-bg);
    padding: 1em 3em;
    border-radius: 0px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* světlý rámeček pro tmavý skin */
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    z-index: 9999;
  }
.light .main-nav ul {
  border: 1px solid rgba(0, 0, 0, 0.1); /* tmavší rámeček pro světlé pozadí */
}
  .main-nav.open ul {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .menu-toggle {
    display: block;  
    border: 1px solid var(--border-color);
    padding: 0.44em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; 
  }
  .menu-toggle:hover  {
    color: var(--icon-bg); 
  }
  .logo img {
    height: 30px;
  } 
}
.copyright {
  font-size: 0.8rem; /* nebo např. 12px, případně 75% */
  line-height: 1.4;  /* volitelně upravíš mezery mezi řádky */
  color: var(--text-coltwo);  /*použije stejnou barvu jako zbytek textu */
  text-align: center;
} 
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1em; /* mezery mezi ikonami */
  justify-content: center; /* centrování ikon horizontálně */
}
/* Styly pro každou sociální ikonu */
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background-color: var(--icon-bg, #333); /* výchozí barva pozadí */
  border-radius: 50%;
  transition: background-color 0.1s ease;
  padding: var(--icon-padding, 1.5em); /* padding kolem SVG */
}

/* Změna barvy po najetí */
.socials a:hover {
  background-color: var(--icon-hover, #555);
}

/* SVG nebo obrázek uvnitř */
.socials img.icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* změní obrázek na bílý */
  transition: filter 0.3s ease;
}
/* Obrázky v mřížce */
.thumbnail {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  cursor: pointer; 
  transition: transform 0.2s ease;
}
.thumbnail:hover {
  transform: scale(1.05);
}
/* GALERIE */
.gallery {
  visibility: hidden;
  max-width: 1200px; /* Nebo jiná vhodná šířka */
  margin: 0 auto;     /* Centrování vodorovně */
  position: relative; /* Macy používá absolute pozice uvnitř */
  z-index: 1;
}
.gallery-wrapper {
  padding: 0em 2em; /* tady se nastaví okraje galerie vlevo a vpravo */
  margin: 0 auto;
}
.gallery-item {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.3s ease, top 0.3s ease, left 0.3s ease;
  height: auto;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  opacity: 0.9;
}
/* Modal na plné zobrazení obrázku */
#modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: var(--modal-bg); /* místo napevno zadané barvy */
  justify-content: center;
  align-items: center;
}
#modal-img {
  box-shadow: none !important;
  border: 1px solid var(--border-color);
  max-width: 90%;
  max-height: 90vh;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#modal.show {
  animation: modalFadeIn 0.3s ease-out;
}
/* Animace */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/*------MUSIC----------- */
.music-links {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.music-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin: 0.6em;
}
.music-row > div {
  justify-self: start; /* Zarovnání všech buněk vlevo */
}
.music-row img {
    height: auto;
    width: 10em;
    display: block;
    max-height: 1.7em;
}

/* ?? Responzivní zobrazení pro menší obrazovky */
@media (max-width: 768px) {
  .music-row {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1em 0em;
  }

  .music-row a {
    display: inline-block;
  }
    .music-row > div {
    justify-self: center;
  }
  .music-row {
  gap: 0.3em;
}
.media-date {
  position: absolute;
  top: 0.3em;
  font-size: 0.8em;
  color: var(--text-coltwo);
  font-style: italic;
  user-select: none;
  z-index: 10; /* aby bylo datum nad ostatním obsahem */
}
}
