﻿/* ==========================================================================
   XPEnology.cz - ÄŚistĂ˝ statickĂ˝ web (OptimalizovĂˇno pro rychlost a nĂ­zkĂ© nĂˇroky)
   ========================================================================== */

:root {
  --primary-color: #0073AA;
  --primary-dark: #005a87;
  --primary-light: #e6f4fa;
  --nav-bg: #222222;
  --nav-text: #eaeaea;
  --nav-hover: #0073AA;
  --text-color: #333333;
  --text-muted: #666666;
  --bg-color: #f5f5f7;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Open Sans", sans-serif;
  --border-radius: 6px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --transition: all 0.25s ease-in-out;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- HornĂ­ liĹˇta --- */
.top-bar {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.top-bar .social-links a {
  color: #ffffff;
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.top-bar .social-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.top-bar .site-tagline {
  font-size: 13px;
  opacity: 0.85;
}

/* --- HlaviÄŤka / Logo --- */
.site-header {
  background-color: var(--primary-color);
  padding: 24px 20px;
  text-align: center;
  border-bottom: 2px solid var(--primary-dark);
}

.site-header .site-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.site-header .site-title a {
  color: #ffffff;
  text-decoration: none;
}

.site-header .site-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-top: 4px;
  font-weight: 400;
}

/* --- HlavnĂ­ navigace --- */
.main-nav {
  background-color: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 14px 18px;
  color: var(--nav-text);
  font-weight: 600;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: #1a1a1a;
  color: var(--nav-hover);
  text-decoration: none;
  border-bottom-color: var(--nav-hover);
}

.nav-link.active {
  color: #ffffff;
  background-color: #151515;
  border-bottom-color: var(--primary-color);
}

/* MobilnĂ­ tlaÄŤĂ­tko hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 15px;
}

/* --- HlavnĂ­ obsah --- */
.site-wrapper {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 30px auto;
  padding: 0 20px;
}

.content-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  padding: 35px 40px;
  margin-bottom: 30px;
}

.page-header {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.page-title {
  color: #222222;
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 28px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-body {
  font-size: 16.5px;
  color: #333333;
}

.page-body p {
  margin-bottom: 18px;
}

.page-body p:last-child {
  margin-bottom: 0;
}

.page-body strong {
  color: #111111;
}

.page-body ul {
  margin: 15px 0 20px 25px;
}

.page-body li {
  margin-bottom: 8px;
}

/* Info rĂˇmeÄŤky / upozornÄ›nĂ­ */
.info-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box p {
  margin: 0 !important;
}

.notice-box {
  background-color: #fff9e6;
  border-left: 4px solid #f39c12;
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.notice-box p {
  margin: 0 !important;
}

/* --- Galerie --- */
.gallery-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.gallery-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background-color: #e9ecef;
  transition: opacity 0.2s ease;
}

.gallery-thumb:hover {
  opacity: 0.92;
}

.gallery-caption {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #444444;
  background-color: #fafafa;
  border-top: 1px solid var(--border-color);
  flex: 1;
  display: flex;
  align-items: center;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 38px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(0,0,0,0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ff5555;
  background: rgba(0,0,0,0.7);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  padding: 12px 18px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  user-select: none;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background-color: rgba(0, 115, 170, 0.8);
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

/* --- Download karty --- */
.download-card {
  border: 1px solid #d0e3ec;
  background-color: #f8fbfe;
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.download-icon {
  font-size: 36px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.download-info h3 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.download-info p {
  margin-bottom: 10px;
  color: #444444;
}

/* --- PatiÄŤka --- */
.site-footer {
  background-color: #1a1a1a;
  color: #999999;
  padding: 24px 20px;
  margin-top: auto;
  border-top: 3px solid var(--primary-color);
  font-size: 14px;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-credits a {
  color: #cccccc;
}

.footer-credits a:hover {
  color: #ffffff;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
  z-index: 99;
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.scroll-to-top.visible {
  display: flex;
}

/* --- Responzivita --- */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: var(--nav-bg);
    border-top: 1px solid #333333;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid #2a2a2a;
  }

  .nav-link.active {
    border-left: 4px solid var(--primary-color);
    border-bottom: 1px solid #2a2a2a;
  }

  .content-card {
    padding: 24px 20px;
  }

  .site-header .site-title {
    font-size: 1.8rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}