/* ========== ZÁKLADNÍ PROMĚNNÉ A STYLY ========== */
:root {
  /* Základní barvy */
  --primary-dark: #0a2f62;
  --primary: #2170b0;
  --primary-light: #2989d8;
  --primary-lighter: #59b4f0;
  --secondary-bg: #f0f6fb;
  
  /* Funkční barvy */
  --gradient-primary: linear-gradient(to right, var(--primary), var(--primary-light));
  --gradient-header: linear-gradient(to right, var(--primary-dark), var(--primary));
  --background-color: #f4f4f4;
  --border-color: #e0e0e0;
  --text-color: #333;
  --active-bg-color: rgba(41, 137, 216, 0.15);
  
  /* Rozměry a vlastnosti */
  --radius-sm: 4px;
  --radius-md: 5px;
  --shadow-sm: 0 2px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition-normal: 0.2s;
}

/* ZÁKLADNÍ LAYOUT */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background: var(--gradient-header);
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

main {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
  height: calc(100vh - 60px - 48px);
}

/* HLAVIČKA */
.logo { font-weight: bold; }

.title { 
  font-size: 28px;
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.search input {
  padding: 5px;
  margin-left: 5px;
  border-radius: var(--radius-sm);
  border: none;
}

/* HORIZONTÁLNÍ MENU */
.horizontal-menu {
  background-color: var(--secondary-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.horizontal-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  height: 48px;
}

.horizontal-menu a {
  display: block;
  padding: 0 20px;
  height: 48px;
  line-height: 48px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-normal);
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.horizontal-menu a:hover {
  color: var(--primary);
  background-color: rgba(41, 137, 216, 0.05);
  border-bottom: 3px solid var(--primary-light);
}

.horizontal-menu a.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  background-color: rgba(41, 137, 216, 0.1);
}

/* VERTIKÁLNÍ MENU */
.vertical-menu {
  width: 15%;
  background-color: #fff;
  padding: 12px;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.menu-section-title {
  font-weight: 600;
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 8px;
  padding-left: 6px;
  color: var(--primary-light);
}

.menu-group-title {
  padding: 7px 6px 4px 6px;
  font-weight: bold;
  font-size: 13px;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border-color);
  margin-top: 12px;
  margin-bottom: 6px;
}

.vertical-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.vertical-menu li { margin-bottom: 1px; }

.vertical-menu a {
  text-decoration: none;
  color: var(--text-color);
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  font-size: 13px;
  line-height: 1.3;
}

.vertical-menu a:hover {
  background-color: #f0f6fb;
  color: var(--primary);
}

.vertical-menu a.active {
  background-color: var(--active-bg-color);
  color: var(--primary);
  font-weight: 500;
}

/* OBSAH */
.content {
  width: 55%;
  background-color: #fafafa;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

#position-title {
  margin-bottom: 16px;
  color: var(--text-color);
  opacity: 0;
  animation: fadeInUp 0.5s forwards;
}

#position-description {
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: #fff;
  min-height: 200px;
  opacity: 0;
  animation: fadeInUp 0.5s 0.2s forwards;
}

/* Styly pro seznamy v popisu pozice */
#position-description ul {
  margin-bottom: 20px;
}

#position-description li {
  margin-bottom: 8px;
}

/* ========== NOVÁ DOMOVSKÁ STRÁNKA ========== */
.home-page {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-search-section {
  background-color: var(--secondary-bg);
  padding: 50px 30px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.home-search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.2) 100%);
  pointer-events: none;
}

.home-search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-search-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.home-search-box {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 50%;
  min-width: 300px;
  transform: translateY(0);
}

.home-search-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.home-search-box:focus-within {
  border-color: var(--primary-lighter);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2), 0 0 0 4px rgba(89, 180, 240, 0.3);
  transform: translateY(-2px);
}

.home-search-box input {
  flex: 1;
  padding: 18px 25px;
  border: none;
  outline: none;
  font-size: 16px;
  background-color: transparent;
  color: var(--text-color);
  font-weight: 500;
}

.home-search-box input::placeholder {
  color: #999;
  font-weight: 400;
}

.home-search-box button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.home-search-box button:hover {
  background: linear-gradient(to right, var(--primary-light), var(--primary-lighter));
  transform: scale(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 8px rgba(0,0,0,0.1);
}

.home-intro {
  padding: 40px;
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,1) 100%);
}

.home-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: justify;
}

.home-intro p:first-child {
  margin-top: 0;
  font-size: 17px;
}

.home-intro p:last-child {
  margin-bottom: 0;
}

.home-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.home-link:hover {
  color: var(--primary-light);
  border-bottom: 1px solid var(--primary-light);
}

/* MULTIMÉDIA A DASHBOARD */
.media-panel {
  width: 30%;
  background-color: #fff;
  padding: 20px;
  overflow-y: auto;
}

.media-title {
  font-size: 22px;
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeInUp 0.5s forwards;
}

.media-container {
  opacity: 0;
  animation: fadeInUp 0.5s 0.2s forwards;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  min-height: 300px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.dashboard-card {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 15px;
  transition: all var(--transition-normal);
}

.dashboard-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dashboard-card h3 {
  margin-top: 0;
  color: var(--primary-dark);
  font-size: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.events-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.events-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.events-list li:last-child {
  border-bottom: none;
}

.event-date {
  font-weight: bold;
  color: var(--primary);
  margin-right: 8px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-link {
  background: linear-gradient(to right, #f0f6fb, #e4eef8);
  color: var(--primary-dark);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  border: 1px solid #d0e0f0;
}

.quick-link:hover {
  background: linear-gradient(to right, #e4eef8, #d5e5f5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tip-box {
  background-color: #f9f9ff;
  border-left: 3px solid var(--primary);
  padding: 12px;
  font-style: italic;
  color: #555;
}

.media-placeholder {
  text-align: center;
  color: #999;
  font-style: italic;
}

.media-image, .media-video {
  max-width: 100%;
  max-height: 450px;
  margin-bottom: 15px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.media-video { width: 100%; }

.media-caption {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  text-align: center;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.gallery-item-title {
  font-size: 13px;
  padding: 8px;
  text-align: center;
  background-color: #f5f5f5;
  border-top: 1px solid var(--border-color);
}

/* TLAČÍTKA */
.btn-show-guides {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-show-guides:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  filter: brightness(105%);
}

.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  background: linear-gradient(to right, #f0f6fb, #e4eef8);
  color: var(--primary-dark);
  border: 1px solid #d0e0f0;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.back-button:hover {
  background: linear-gradient(to right, #e4eef8, #d5e5f5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.back-button::before {
  content: "←";
  margin-right: 8px;
  font-weight: bold;
}

/* KONTAKTY */
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.contact-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-name {
  font-weight: bold;
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.contact-position {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-style: italic;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
}

.contact-detail i {
  margin-right: 8px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

/* ANIMACE */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONZIVITA */
@media (max-width: 992px) {
  main {
    flex-direction: column;
  }
  .vertical-menu, .content, .media-panel {
    width: 100%;
    height: auto;
  }
  
  /* Obnovení původních font-size a padding pro mobily */
  .menu-section-title {
    font-size: 20px;
    padding-left: 8px;
  }
  
  .menu-group-title {
    font-size: 14px;
    padding: 8px 8px 4px 8px;
  }
  
  .vertical-menu {
    padding: 15px;
  }
  
  .vertical-menu a {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  /* Responzivita pro domovskou stránku */
  .home-search-section {
    padding: 40px 20px;
  }
  
  .home-search-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .home-search-box {
    width: 100%;
    min-width: auto;
    border-radius: 12px;
  }
  
  .home-search-box input {
    padding: 16px 20px;
    font-size: 15px;
  }
  
  .home-search-box button {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .home-search-label {
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.5px;
  }
  
  .home-intro {
    padding: 25px 20px;
  }
  
  .home-intro p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  
  .home-intro p:first-child {
    font-size: 16px;
  }
}

/* ========== ACCORDION PRO POPISY POZIC ========== */
.accordion-job-duties {
  margin: 15px 0;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background-color: white;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  cursor: pointer;
  background-color: var(--secondary-bg);
  transition: background-color var(--transition-normal);
  padding: 0;
}

.accordion-header:hover {
  background-color: #e4eef8;
}

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 12px;
  font-weight: bold;
  color: var(--primary);
  transition: transform var(--transition-normal);
}

.accordion-title {
  flex: 1;
  padding: 12px 15px 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 15px 20px;
  max-height: 1200px; /* Dostatečně velká hodnota pro jakýkoli obsah */
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content p {
  margin-top: 0;
  margin-bottom: 15px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ul {
  margin-top: 10px;
  margin-bottom: 10px;
}

.position-footer {
  margin-top: 30px;
  font-style: italic;
  color: #666;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}