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

:root {
  --text-color: #282828;
  --light-color: #888;
  --background-color: #fffdf7;
  --primary-color: #f97316;
  --secondary-color: #0f172a;
}

* {
  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;
}

h1 {
  font-weight: 700;
  margin-bottom: 1rem;
}
h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Main container layout */
.main-container {
  display: flex;
  gap: 1.2rem;
  width: 100%;
  padding: 0 1rem;
}
/* Content area styles */
.content {
  flex: 1;
  min-width: 0;
  max-width: 980px;
  margin: 0 auto;
}
/* Hero section styles */
.hero-section {
  margin-bottom: 2rem;
}
.hero-section p {
  color: var(--text-color);
  line-height: 1.5;
}

.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background: var(--primary-color);
  color: var(--background-color);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: all .3s ease;
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif, 'Helvetica Neue', 'Helvetica';
}
.btn:hover {
  filter: brightness(78%);
}
.btn.copied {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: white !important;
  transform: scale(0.98);
  transition: all 0.2s ease;
}

.link {
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 600;
}
.link:hover {
  text-decoration: none;
}

.cta-btn {
  display: flex;
  align-items: normal;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 2rem;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(60deg, #1e40af, #2563eb, #3b82f6);
  transition: transform 0.2s ease;
  max-width: max-content;
  width: auto;
  margin: 1rem auto;
  align-items: normal;
  text-align: center;
  font-family: 'Open Sans', Arial, sans-serif, 'Helvetica Neue', 'Helvetica';
}
.cta-btn:hover {
  transform: scale(1.05);
}

.secondary-btn {
  background: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--light-color);
  padding: 11px 18px;
}
.secondary-btn:hover {
  background: var(--background-color);
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.1);
}

/* HEADER */
#header {
  padding: .6rem 1rem;
  border-bottom: 1px solid #ddd;
  position: fixed;
  width: 100%;
  z-index: 1;
  background: var(--background-color);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.2rem;
  color: var(--text-color);
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 3px;
}
/* Main menu */
.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;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.menu-items li {
  margin-left: 1rem;
}
.menu-item {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 0;
}
.menu-item:hover {
  color: var(--primary-color);
}

/* Dropdown styles */
.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0 !important;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--background-color);
  color: var(--primary-color);
}

/* 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;
}

/* Profile navigation */
.profile-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}
.profile-btn svg {
  background: #ddd;
  padding: 0.4rem;
  border-radius: 9999px;
  width: 38px;
  height: 38px;
}
.profile-dropdown {
  display: none;
  position: absolute;
  top: 56px;
  right: 1rem;
  background-color: #f4f7fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.8rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}
.profile-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-dropdown li {
  padding: 0.5rem;
  border-radius: 6px;
}
.profile-dropdown li:hover {
  background: #ddd;
}
.profile-dropdown a {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.profile-dropdown li:hover a {
  color: var(--secondary-color);
}
.profile-dropdown a svg,
.profile-dropdown button svg {
  width: 18px;
  height: 18px;
}
.profile-dropdown button {
  color: red;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

/* MAIN */
main {
  max-width: 100% !important;
  width: 100%;
  margin: 0;
  padding: 4.6rem 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;
}
.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;
}

/* FEEDBACK BUTTON */
.feedback-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 2rem;
  border: 2px solid #fff;
  text-decoration: none;
  transition: all .3s ease;
}
.feedback-btn:hover {filter: brightness(72%);}

@media (max-width: 768px) {
  h2 {
    font-size: 30px;
  }
  /* Mobile Menu */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    padding: .6rem;
    z-index: 1000;
    display: none;
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mobile-menu-items li:not(:last-child) { margin: .5rem 0; }
  .mobile-menu-items .primary-btn,
  .mobile-menu-items .secondary-btn {
    width: 100%;
  }
  
  /* Mobile dropdown */
  .mobile-dropdown {
    position: relative;
  }
  .mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .5rem;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
  }
  .mobile-dropdown-trigger:hover {
    background: var(--background-color);
  }
  .mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0.5rem;
    margin: 0.5rem 0 0;
    background: var(--background-color);
    border-radius: 4px;
  }
  .mobile-dropdown-menu.is-open {
    display: block;
  }
  .mobile-dropdown-menu a {
    display: block;
    padding: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
  }
  .mobile-dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .menu-toggle { display: block; }
  .main-navigation .menu-items { display: none; }
  .menu-items li {
    margin-left: 0;
    width: 100%;
    margin-bottom: 0.5rem !important;
  }
  .primary-btn, .secondary-btn {
    width: 100%;
  }
  .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;
  }
}