/* Moderní, responzivní styl pro SKI-KLUB HK */

/* Import Google Fontu pro lepší čitelnost */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400&display=swap');

/* Základní nastavení a proměnné */
:root {
  --primary-color: #ff8c00; /* Oranžová */
  --secondary-color: #4169e1; /* Modrá */
  --light-blue: #add8e6;
  --text-color: #333;
  --background-color: #f1f1f1;
  /* --page-width: 960px;  Původní proměnná, nyní nahrazena novými pravidly níže */
}

/* Globální reset a nastavení */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #fff url('etc/vlocka3.gif') fixed;
  text-align: center;
}

/* ==========================================================================
   1) ÚPRAVA: Responzivní šířka stránky pro širší monitory
   ========================================================================== */
.container {
  width: 96%; /* Stránka bude zabírat 96 % šířky okna */
  max-width: 1400px; /* Maximální šířka omezena na 1400px */
  margin: 1rem auto;
  padding: 0 1rem;
  background-color: var(--background-color);
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Hlavička webu */
.site-header {
  background-color: #fff;
  padding: 1rem;
  margin: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.site-header .logo-img {
  flex-shrink: 0;
  width: 197px;
  height: 112px;
  opacity: 0.8;
}

.site-header .title-group {
  flex-grow: 1;
  text-align: left;
}

.site-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  font-style: italic;
  color: var(--primary-color);
}

.site-header h2 {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary-color);
}

/* Navigace */
.main-nav {
  background-color: var(--light-blue);
  padding: 0.5rem 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

.main-nav a:hover, .main-nav .active a {
  background-color: #fff;
  color: var(--primary-color);
  text-decoration: none;
}

/* Hlavní obsah */
main {
  background-color: #fff;
  padding: 2rem 2rem 6rem 2rem;
  margin: 0.5rem;
  text-align: left;
  position: relative; 
  overflow: hidden; 
  z-index: 1;
}

main::before, main::after {
    content: '';
    position: absolute;
    z-index: -1;
    background-repeat: no-repeat;
    opacity: 0.5;
    background-position: bottom;
}

main::before {
    background-image: url('etc/ilustr2_2.jpg');
    width: 280px; 
    height: 600px; 
    bottom: 0;
    left: 0;
}

main::after {
    background-image: url('etc/ilustr1_2.jpg');
    width: 280px; 
    height: 600px; 
    bottom: 0;
    right: 0;
}


main h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

main h4 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 0.5rem;
}

main p, main ul {
  margin-bottom: 1rem;
}

main ul {
  padding-left: 4rem;
}

.center-text {
  text-align: center;
}

.bold-text {
    font-weight: bold;
}

/* Odsazení pro seznam termínů */
.termin-odsazeni {
  padding-left: 5rem;
}

/* Patička webu */
.site-footer {
  background-color: var(--light-blue);
  padding: 1rem;
  margin: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   2) ÚPRAVA: Facebook ikony pomocí SVG bez externích souborů
   ========================================================================== */
.site-footer .social-links a {
    display: inline-block;
    width: 30px; /* Zvětšeno pro lepší viditelnost */
    height: 30px; /* Zvětšeno pro lepší viditelnost */
    margin-right: 10px;
    border-radius: 5px; /* Lehké zaoblení rohů */
    transition: transform 0.2s ease-in-out, opacity 0.2s;
    
    /* Ikona je vložena jako pozadí odkazu pomocí URL-enkódovaného SVG.
       Není tak potřeba žádný externí obrázek. Barva ikony je modrá (--secondary-color). */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234169e1'%3E%3Cpath d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z'/%3E%3C/svg%3E");
    background-size: 80%; /* Velikost ikony uvnitř odkazu */
    background-repeat: no-repeat;
    background-position: center;
}

.site-footer .social-links a:hover {
    transform: scale(1.1); /* Efekt lehkého zvětšení při najetí myší */
    opacity: 0.8;
}

.site-footer .social-links a img {
    /* Původní obrázek v HTML skryjeme, aby se zobrazil ten z CSS pozadí */
    display: none;
}

.site-footer .partner-text {
  font-weight: bold;
  font-style: italic;
  color: #1276B8;
  text-align: center;
  flex-grow: 1;
}

/* Specifické styly pro fotoalbum */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.album-year {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
}

.album-year h5 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.album-year ul {
    list-style: none;
    padding: 0;
}

.album-year li a {
    display: block;
    padding: 0.2rem;
}

.zonerama-embed {
    width: 100%;
    max-width: 720px;
    height: 330px;
    margin: 1rem auto;
    display: block;
}


/* Responzivita */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .site-header .title-group {
    text-align: center;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  main {
    padding: 1.5rem 1rem 4rem 1rem;
  }
  
  /* Skrytí dekorativních obrázků na malých obrazovkách */
  main::before, main::after {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
