/* Main Styles for upsvarpp.sk
 * Updated with accordion functionality for FAQ */
:root {
  --primary-color: #0056a6; /* Modrá farba z loga */
  --secondary-color: #2c3e50; /* Tmavá sivá farba z loga */
  --accent-color: #27ae60; /* Zelená farba pre zvýraznenie */
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --text-color: #333;
  --light-text: #f8f9fa;
  --border-color: #dee2e6;
  --hover-color: #004080;
  --font-main: 'Open Sans', Arial, sans-serif;
  --font-headings: 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

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

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

/* Header Styles */
.site-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  max-height: 60px;
  margin-right: 1rem;
}

.logo-container h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* Navigation */
.navbar {
  background-color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--light-text);
  font-weight: 600;
  padding: 0.8rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
  background-color: var(--hover-color);
}

.navbar-dark .navbar-toggler {
  border-color: var(--light-text);
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.page-title {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar h3 {
  font-size: 1.3rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style-type: none;
  padding-left: 0;
}

.sidebar ul li {
  margin-bottom: 0.5rem;
}

.sidebar ul li a {
  display: block;
  padding: 0.5rem;
  border-left: 3px solid transparent;
}

.sidebar ul li a:hover {
  background-color: var(--light-bg);
  border-left: 3px solid var(--primary-color);
  text-decoration: none;
}

/* TOC */
.toc {
  margin-bottom: 2rem;
}

/* FAQ TOC */
.faq-toc {
  margin-top: 1rem;
}

.faq-toc li {
  font-size: 0.9rem;
  padding-left: 1rem;
}

/* Partners */
.partners {
  margin-top: 2rem;
}

.partners img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  background-color: white;
}

/* FAQ Section */
.faq-section {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.faq-question {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.faq-question:after {
  content: '+';
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active:after {
  content: '-';
}

.faq-answer {
  padding-left: 1rem;
  border-left: 3px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.show {
  max-height: 500px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Featured Image */
.featured-image {
  margin: 1.5rem 0;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
}

.featured-image img {
  width: 700px;
  height: 350px;
  object-fit: cover;
  display: inline-block;
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 2rem 0;
  margin-top: 3rem;
}

.site-footer h4 {
  color: var(--light-text);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style-type: none;
  padding-left: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--light-text);
}

.site-footer a:hover {
  color: var(--border-color);
}

.footer-logo {
  max-height: 40px;
  margin-bottom: 1rem;
}

.copyright {
  background-color: rgba(0,0,0,0.2);
  padding: 1rem 0;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary-color);
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .sidebar {
    margin-top: 2rem;
  }
  
  .logo-container h1 {
    font-size: 1.5rem;
  }
  
  .featured-image img {
    width: 100%;
    height: auto;
  }
}

/* Print Styles */
@media print {
  .site-header, .navbar, .sidebar, .site-footer {
    display: none;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background-color: #fff;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .main-content {
    width: 100%;
  }
}
