/* -------------- T Ě L O   A   O B S A H O V Ý  C O N T A I N E R ---------- */
body {                                                                          
  margin: 0;                                                                    
  background-color: #17375d;                                                    
  font-family: Arial, sans-serif;                                               
  min-width: 1270px;
}

.container {                                                                    
  width: 100%;                                                                  
  max-width: 1440px;                                                            
  min-width: 1250px;
  margin: 20px auto 20px;                                                       
  background-color: #2e4600;                                                    
  border: 2px solid #17375d;                                                    
  border-radius: 15px;                                                          
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);                                       
  overflow: visible;                                                            
}

.container:hover {                                                              
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);                                       
  transition: box-shadow 0.3s ease;                                             
}

/* -------------- H L A V I Č K A ------------------------------------------- */
.header {                                                                       
  background-color: #375f90;                                                    
  color: #fff;                                                                  
  padding: 20px;                                                                
  position: relative;                                                           
  border-top-left-radius: 15px;                                                 
  border-top-right-radius: 15px;                                                
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);                                       
}

.header-content {                                                               
  display: flex;                                                                
  align-items: center;                                                          
  justify-content: flex-start;                                                  
  text-align: left;                                                             
  gap: 20px;                                                                    
  position: relative;                                                           
}

.logo img {                                                                     
  height: 65px;                                                                 
  width: auto;                                                                  
}

.logo {                                                                         
  cursor: pointer;                                                              
  transition: transform 0.2s ease-in-out;                                       
}

.logo:hover {                                                                   
  transform: scale(1.05);                                                       
}

.header-text {                                                                  
  font-size: 22px;                                                              
  line-height: 1.2;                                                             
  color: #f7d774;                                                               
  font-weight: 500;                                                             
  display: flex;                                                                
  flex-direction: column;                                                       
  white-space: nowrap;                                                          
  overflow: hidden;                                                             
  text-overflow: ellipsis;                                                      
  gap: 0;                                                                       
}

.header-text p {                                                                
  margin: 0;                                                                    
}

.header-date {                                                                  
  position: absolute;                                                           
  top: 10px;                                                                    
  right: 20px;                                                                  
  font-size: 14px;                                                              
  font-weight: bold;                                                            
}

.version-label {                                                                
  position: absolute;                                                           
  bottom: 0;                                                                    
  right: 15px;                                                                  
  color: yellow;                                                                
    font-style: italic;                                                         
  font-size: 14px;                                                              
  padding: 0.5rem;                                                              
}

/* -------------------- N A V I G A C E ------------------------------------- */
nav {                                                                           
  background: linear-gradient(90deg, #00cccc, #005f98);                         
  padding: 10px 0;                                                              
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);                                        
  height: 40px;                                                                 
}

.menu {                                                                         
  display: flex;                                                                
  justify-content: flex-start;                                                  
  gap: 1em;                                                                     
  list-style: none;                                                             
  margin: 0;                                                                    
  padding: 0;                                                                   
  position: relative;                                                           
  z-index: 1000;                                                                
}

.menu > li {                                                                    
  position: relative;                                                           
  transition: transform 0.3s ease;                                              
  will-change: transform;                                                       
}

.menu > li:hover {                                                              
  transform: translateY(-2px);                                                  
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);                                        
}

.menu > li > a {                                                                
  display: block;                                                               
  padding: 12px 20px;                                                           
  color: #ffffff;                                                               
  text-decoration: none;                                                        
  font-weight: bold;                                                            
  border-top-left-radius: 5px;                                                  
  border-top-right-radius: 5px;                                                 
  border-bottom-left-radius: 0;                                                 
  border-bottom-right-radius: 0;                                                
  transition: background-color 0.3s ease;                                       
  white-space: nowrap;                                                          
}

.menu > li:hover > a {                                                          
  color: #ffff00;                                                                  
  background-color: rgba(255, 255, 255, 0.2);                                   
  border: 1px solid #0077be;                                                    
}

.menu > li:first-child {                                                        
  padding-left: 20px;                                                           
}

.submenu {                                                                         
  max-height: 0;
  overflow: hidden;
  opacity: 0;                                                                   
  visibility: hidden;                                                           
  transform: translateY(-10px);                                                 
  transition: 
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 1.0s ease,
    visibility 0.3s ease;    
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;                 
  font-size: 0.9em;                                                             
  color: #fff;                                                                      
  border: 1px solid #0000c0;                                                    
  border-radius: 0 0 10px 10px;                                                 
  margin-top: 4px;                                                              
  position: absolute;                                                           
  top: 100%;                                                                    
  left: 0;                                                                      
  background: #0077be;                                                          
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);                                      
  list-style: none;                                                             
  margin: 0;                                                                    
  padding: 0;                                                                   
  min-width: 230px;                                                             
  will-change: opacity, transform;                                              
  z-index: 1001;                                                                
}

.menu li:hover .submenu {                                                       
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {                                                                 
  display: block;                                                               
  padding: 6px 10px;                                                            
  padding-left: 5px;
  color: #ffffff;                                                               
  text-decoration: none;                                                        
  transition: background-color 0.3s ease, border-radius 0.3s ease;              
}

.submenu li a:hover {                                                           
  background-color: #00cccc;                                                    
}

.submenu li:last-child a:hover,                                                 
.submenu li:last-child a.active {
  border-bottom-left-radius: 10px;                                              
  border-bottom-right-radius: 10px;                                             
}

.submenu a.active {                                                             
  font-weight: bold;                                                            
  background-color: #00cccc;                                                    
  border-left: 0px solid #0077cc;                                               
  padding-left: 12px;                                                           
  color: #0077cc;                                                               
}

/* -------------------- H L A V N Í   O B S A H ----------------------------- */
.main-content {                                                                 
  padding: 20px;                                                                
  box-sizing: border-box;                                                       
  width: 100%;                                                                  
}

.main-layout {                                                                  
  display: flex;                                                                
  flex-direction: row;                                                          
  gap: 20px;                                                                    
  padding: 20px;                                                                
  box-sizing: border-box;                                                       
  min-height: 100vh;                                                             
  width: 100%;                                                                  
  justify-content: space-between;                                               
}

.left-column {                                                                  
  flex: 10;                                                                                                                         
  padding-right: 20px;                                                          
  box-sizing: border-box;                                                       
  min-width: 900px;                                                             
}

.content {                                                                      
  display: flex;                                                                
  flex-direction: column;                                                       
  gap: 20px;                                                                    
  width: 100%;                                                                  
  box-sizing: border-box;                                                       
}

.post {                                                                         
  background-color: #2e4600;                                                    
  padding: 0px;                                                                 
  position: relative;                                                           
}

.main-left-wrapper {                                                            
  display: flex;                                                                
  flex-direction: column;                                                       
  width: 100%;                                                                  
  max-width: 990px;                                                             
}

.right-column {                                                                 
  flex: 3.5;                                                                    
  display: flex;                                                                
  flex-direction: column;                                                       
  align-items: stretch;                                                         
  box-sizing: border-box;                                                       
}

.top-box {                                                                      
  background-color: #f9f9f9;                                                    
  border: 1px solid #ddd;                                                       
  border-radius: 8px;                                                           
  padding: 20px;                                                                
  margin-bottom: 20px;                                                          
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);                                     
  font-family: 'Segoe UI', sans-serif;                                          
}

/* Dolní box v pravém sloupci */
.bottom-box {                                                                   
  width: 100%;                                                                  
  height: 300px;                                                                
  background-color: #b8cce4;                                                    
  padding: 10px;                                                                
  box-sizing: border-box;                                                       
  border-radius: 8px;                                                           
}

/* Skrytý nadpis */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------- zanořené části -------------------- */
.post_clanek {
  margin-bottom: 1.5rem;
  background-color: #92d050;
  padding: 10px 20px 16px 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* ------------------------ obalení obsahu článku pod post_clanek ----------- */
.clanek_obsah {
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
  margin-bottom: 10px;
  max-width: 875px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
/* -------------------------------------------------------------------------- */

.post_clanek2 {
  margin-bottom: 1.5rem;                                                        
  background-color: #6B8E23;
  padding: 10px 20px 16px 20px;                                                 
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
}

.clanek_nadpis {
  color: #FFDAB9;    
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 4px 0; /* těsně pod sebou */
}

.clanek_text {
  color: #F5FFF0;  
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* -------------------------------------- článek nenalezen ------------------ */
.article-not-found {
    background-color: #2e4600;
    color: #ffeb3b;                                                             
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

/* -------------------------------------- nejspíš nepoužívaná třída---------- */
.top-box h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

/* -------------------------------------- třída vykreslující schema---------- */
.schema {
  font-family: monospace; 
  background: #f9f9f9; 
  padding: 1em; 
  border: 1px solid #000000;
  border-radius: 6px; 
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ------------------ třída vykreslující popisek druhů v herbáři------------- */
.clanek_bot {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #eef2e0;
  color: #333;
  padding: 0.3em 1.5em 1.5em 1.5em;
  border: 1px solid #ccc;
  border-radius: 8px;
  border-color: #3a5f00;
  white-space: pre-wrap;                                                        
  word-wrap: break-word;                                                        
  overflow-wrap: break-word;                                                    
  max-width: 100%;                                                              
  overflow-x: auto;                                                             
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);                               
}

.clanek_bot p {
  text-indent: 2em;                                                             
  margin-bottom: 1.2em;
  text-align: justify;
}

/* --------------------------- pro zvýraznění položky v Herbáři-------------- */
table th {
  background-color: #375f90;                                                    
  color: #f7d774;                                                               
  font-weight: bold;
  text-align: left;
  padding: 8px;
  border-bottom: 2px solid #17375d;
}

.radek-s-obrazkem td:first-child {
  border-top-left-radius: 6px;
}
.radek-s-obrazkem td:last-child {
  border-top-right-radius: 6px;
}

.radek-s-obrazkem {
  background-color: #e6ffe6;                                                    
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);                                     
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.radek-s-obrazkem:hover {
  background-color: #d0f5d0;                                                    
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);                                    
}

/* ------------------- zarovnání obrázku v detail herbáři ------------------- */
.herbar_gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
}

/* ---------------------- nadpis druhu v herbáři ---------------------------- */
.taxon-nazev {
  font-size: 1.1em;                                                             
  color: #ed6000;                                                               
  font-weight: bold;                                                            
}

/* ----------------------------- pravý sloupec ------------------------------ */
#slug-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#slug-search-form label {
  font-weight: 600;
  color: #555;
}

#slug-search-form select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  transition: border-color 0.3s;
}

#slug-search-form select:focus {
  border-color: #0078d4;
  outline: none;
}

#slug-search-form button {
  padding: 10px 16px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#slug-search-form button:hover {
  background-color: #005ea2;
}

#submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}  

/* ------------------------- tlačítko další články -------------------------- */
.dalsi-clanky-wrapper {
  align-self: flex-end;
  margin-top: 5px;
}

.dalsi-clanky {
  display: inline-block;
  background-color: #5c9e1f;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
}

.dalsi-clanky:hover {
  background-color: #4a861a;
  transform: translateY(-1px);
}

.dalsi-clanky:active {
  background-color: #3c7115;
  transform: translateY(0);
}

/* ---------------------------- post_clanek --------------------------------- */
.post h2 {
  margin-top: 0;
  font-size: 22px;
  color: #17375d;
}

.post-header {
  margin-bottom: 20px;
}

.post-header h2 { 
  margin-bottom: 4px;                                                           
}

.post-header small {
  display: block;
  color: #666;
  font-size: 0.9em;
}

.post-header h2,
.post-header small {
  white-space: nowrap;                                                          
  overflow: hidden;                                                             
  text-overflow: ellipsis;                                                      
}

.post img {
  width: auto;                                                                  
  height: auto;                                                                 
  display: block;                                                               
  margin-left: 0px;                                                             
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 5px;   
}

.post_clanek p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  text-indent: 1em;
  display: block;
  min-width: 100%;
} 

.more-link {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 14px;
  color: #17375d;
  text-decoration: underline;
  font-weight: bold;
}

.zpet-na-clanek {
  font-size: 0.9rem;
  color: #0077cc;
  text-decoration: none;
}
.zpet-na-clanek:hover {
  text-decoration: underline;
}
/* === Výpis seznamu článků === */
.related-article {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}
/* Nadpis článku – menší než H2, ale zvýrazněný */
.related-title {
  font-size: 1.1rem;                                                            
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
/* Ukázka textu – drobné písmo, těsně pod nadpisem */
.related-article p.related-excerpt {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}
/* -----------------------------------------šipky---------------------------- */
.strankovani {
  margin-top: 20px;
  font-size: 0.9rem;
  position: relative;
}

.stranka {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 6px;
  background-color: #ffffff;                                                    
  color: #2e4600;
  font-weight: bold;
  border: 1px solid #6b8e23;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.stranka:hover {
  background-color: #e6f5c9;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.stranka.disabled {
  background-color: #dcdcdc;
  color: #999;
  border: 1px solid #ccc;
  pointer-events: none;
  font-weight: normal;
  box-shadow: none;
}
/* ----------číslování stran------------------- */
.cislo-strany {
  display: inline-block;
  font-weight: bold;
  color: #2e4600;
  background-color: #e6f5c9;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  right: 0;
  top: 0;
}
/* -----------------------------------tlačítka------------------------------- */
.tlacitka-strankovani {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.tlacitko {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background-color: #2e4600;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.tlacitko:hover {
  background-color: #4e6f00;
}

.tlacitko.disabled {
  background-color: #ccc;
  color: #666;
  pointer-events: none;
}
/* -------------------------------------Odkaz Zobraz celý článek------------- */
.zobraz-cely-clanek {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  background-color: #6b8e23;
  color: #B0C4DE;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.zobraz-cely-clanek:hover {
  background-color: #5a7c1c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-decoration: underline;
}

/* -------------------------------------- P A T I Č K A --------------------- */
footer {
  text-align: center;  
  width: 100%;
  padding: 20px;
  background-color: #2e5984;
  color: white;
  box-sizing: border-box;
}

footer p {
  line-height: 1.7;                                                             
}

.svon-link {
  color: #ffd700;                                                               
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.svon-link:hover {
  color: #32cd32;                                                               
}

/* -------------------------------------- Ladění ---------------------------- */
.debug {
  outline: 1px dashed red;
}

