/* MAIN STYLE CSS:
  - colors
  - body
  - header
  - main
  - sidebar
  - footer
*/

:root {
  --text-color: #282828;
  --light-color: #888;
  --background-color: #e9eff5;
  --primary-color: #1e40af;
  --secondary-color: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif, 'Helvetica Neue', 'Helvetica';
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  max-width: 100%;
  width: 100%;
  text-decoration: none;
  text-align: center;
  background: var(--primary-color);
  color: var(--background-color);
  padding: .8rem .5rem;
  border-radius: 6px;
  font-size: 16px;
  border: 1px solid var(--primary-color);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all .3s ease;
  font-weight: 600;
}
.btn:hover {
  filter: brightness(72%);
}
.btn.copied {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: white !important;
  transform: scale(0.98);
  transition: all 0.2s ease;
}

/* HEADER */
header {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}
.logo-icon {
  margin-right: 0.5rem;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
/* Main menu */
.main-navigation {
  position: relative;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-items {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.menu-items li {
  margin-left: 2rem;
}
.menu-items li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 600;
}
.menu-items li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}
.menu-items li a:hover,
.menu-items li a:focus {
  color: var(--secondary-color);
}
.menu-items li a:hover::after,
.menu-items li a:focus::after {
  width: 100%;
}
/* Sr-only class for visually hidden elements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* MAIN */
main {
  max-width: 100% !important;
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  position: relative;
  flex: 1;
  display: flex;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  max-height: max-content;
  height: max-content;
}
.sidebar-section {
  margin-bottom: 1rem;
}
.sidebar-section strong {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}
.sidebar-section ul {
  list-style: none;
  padding: 0;
}
.sidebar-section a {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  align-content: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.sidebar-section a:hover {
  background: var(--background-color);
  color: var(--primary-color);
}
.component-count {
  font-size: 12px;
  color: var(--light-color);
}

/* FOOTER */
footer {
  background-color: var(--text-color);
  color: white;
  padding: 1.5rem 1rem;
  margin-top: 4rem;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}
.footer-column h4 {
  font-size: 18px;
  margin-bottom: 1rem;
}
.footer-column ul {
  padding-left: 0;
  list-style: none;
}
.footer-column li {
  margin-bottom: 0.5rem;
}
.footer-column a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-column a:hover {
  text-decoration: underline;
}
.footer-column p {
  line-height: 1.5;
}
.legal-disclaimer {
  background-color: var(--link-color);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  text-align: center;
}
.legal-disclaimer p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.copyright {
  font-size: 14px;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* BREADCRUMBS */
.breadcrumbs {
  padding: 1rem 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.875rem;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: #ccc;
}
.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  color: #666;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-navigation .menu-items {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: .6rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
  }
  .main-navigation.is-open .menu-items {
    display: flex;
  }
  .menu-items li {
    margin-left: 0;
    width: 100%;
    margin-bottom: 0.5rem !important;
  }
  .menu-items li a {
    display: block;
    padding: .6rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  .menu-items li:last-child a {
    border-bottom: none;
    margin-bottom: 0 !important;
  }
  .menu-items li a::after {
    display: none;
  }
  nav ul {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    order: 2;
  }
  .footer-links {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  .breadcrumbs {
    font-size: 0.8rem;
  }
}