/* Social icons styling */
.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-link {
  color: #222;
  transition: color 0.2s;
}
.social-link:hover {
  color: #1877F3; /* Facebook blue for both, or adjust for Instagram */
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

:root {  
  --top-nav-height: 60px; /* výška horního navigačního panelu */
}

/* === RESET & GLOBAL STYLY === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Pro hladké scrollování na iOS */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  background:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('../img/pozadi.webp') center/cover fixed no-repeat;
}

html {
  scroll-padding-top: var(--top-nav-height);    /* Scroll-to-anchor: odsazení obsahu pod pevné menu */
}

/* === NAVIGACE === */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0,0,0,0.85);
  padding: 0 20px;
  height: var(--top-nav-height);
  z-index: 1000;
}

.logo {
  font-family: 'Special Elite', monospace;
  font-size: 1.5em;
  color: #fff;
  text-decoration: none;
}

.logo:hover {
  color: #fff;
  opacity: 0.8;
}

#main-menu {
  display: flex;
  align-items: center;
}

#main-menu a {
  color: #eee;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

/* Hamburger menu tlačítko */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1100;
}
#hamburger span {
  width: 100%;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === MENU - MOBILNÍ (HAMBURGER) === */
@media screen and (max-width: 1100px) {
  #main-menu {
    display: none;
  }
  #hamburger {
    display: flex !important;
  }
  section {
    padding: 0 15px 40px;
  }
}

/* === MENU - DESKTOP (KLASICKÉ) === */
@media screen and (min-width: 1100px) {
  #hamburger {
    display: none !important;
  }
}

/* Mobilní menu (skryté) */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--top-nav-height);
  right: 0;
  background-color: rgba(0,0,0,0.9);
  width: 220px;
  flex-direction: column;
  z-index: 1001;
}
#mobile-menu a {
  color: #eee;
  text-decoration: none;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#mobile-menu.open {
  display: flex;
}

/* === HLAVNÍ OBSAH === */
main {
  padding-top: var(--top-nav-height);
}

section {
  padding: 0px 20px 0px;
  max-width: 900px;
  margin: auto;
  scroll-margin-top: var(--top-nav-height);
  -webkit-scroll-margin-top: var(--top-nav-height); /* Safari/iOS podpora */
}

section p {
    margin-bottom: 1em;
}

section h1 {
    margin-bottom: 1em;
    font-family: 'Special Elite', cursive;
}



/* === ÚVODNÍ SEKCE === */
#intro {
  text-align: center;
}
#intro > h1 {
  font-family: 'Special Elite', monospace;
  font-size: 3rem;
  margin-bottom: 0.5em;
}
#intro > p {
  font-family: 'Special Elite', monospace;
  font-size: 1.25rem;
}

/* === SEKCE PRAVIDEL (#rules) === */
#rules > p:nth-child(odd) {
  font-weight: bold;
}
#rules > p:nth-child(even) {
  font-style: italic;
}

/* === FILTRY PRO IFRAME A WIDGET === */
iframe {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}
.sccz-widget,
.sccz-widget iframe {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

/* === SEPARÁTOR OBRÁZKEM NAD SEKCE === */
.section-separator {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}
main .section-separator img {
  width: 80%;
  height: auto;
  display: inline-block;
}



/* === OPRAVY ZOBRAZENÍ === */
#top-nav, #mobile-menu {
  z-index: 10000 !important;
}
#mobile-menu .lang-switcher {
  display: none !important;
}
#top-nav .lang-switcher {
  display: none !important;
}



/* Grid ikon – 4 sloupce na desktopu, průhledné pozadí */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Buňka s jednou ikonou + popiskem */
.download-cell {
  text-align: center;
}

/* Odkaz obalí ikonu i název */
.download-cell a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Ikona stahování */
.download-icon {
  width: 3rem;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Název souboru */
.download-filename {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Mobilní zobrazení: 2 sloupce */
@media screen and (max-width: 768px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === FOOTER === */
#footer {
  background-color: #000;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

#footer p {
  margin: 0;
  color: #eee;
  font-size: 0.9rem;
}
