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

:root {
  --heading-color: #1a1a1a;
  --text-color: #666;
  --light-color: #fef3c7;
  --bg-color: #fefdf3;
  --bg-white: #fff;
  --primary-color: #fbbf24;
  --secondary-color: #eab308;
  --link-color: #0f172a;
  --border-color: #ddd;
}

* {
  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);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}
a {
  color: var(--secondary-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  color: #000;
  font-size: 14px;
  text-decoration: none;
  background: var(--primary-color);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--secondary-color);
  text-decoration: none;
}
.btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.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);
  text-decoration: none;
}

.primary-btn, .secondary-btn {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all .3s ease;
  font-weight: 600;
  width: 100%;
  min-width: 100px;
  font-family: 'Open Sans', Arial, sans-serif, 'Helvetica Neue', 'Helvetica';
}

.primary-btn {
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
  background: linear-gradient(60deg, 
  #3b82f6,
  #2563eb,
  #1e40af,
  #1d4ed8,
  #3b82f6,
  #60a5fa,
  #3b82f6);
  background-size: 300% 300%;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.primary-btn:hover {
  transform: scale(0.95);
}

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

/* HEADER */
#header {
  padding: .6rem 1rem;
  width: 100%;
  z-index: 1;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1024px;
  margin: 0 auto;
  padding-bottom: 1rem;
}
.logo-area {
  display: flex;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--heading-color);
}
.logo-link:hover {
  text-decoration: none;
}
.logo-icon {
  margin-right: 0.5rem;
}
.logo-text {
  font-weight: 700;
  letter-spacing: -0.5px;
}
/* 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(--bg-white);
  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;
  position: relative;
  min-height: calc(100vh - 100px);
}

/* 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(--bg-white);
  color: var(--primary-color);
}
.component-count {
  font-size: 12px;
  color: var(--light-color);
}

/* FOOTER */
footer {
  color: var(--text-color);
  font-size: 14px;
}
footer a {
  color: var(--text-color);
}
footer .container {
  max-width: 1024px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}
.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;
}

@media (max-width: 1024px) {
  #header {
    margin-top: 5rem;
  }
  footer {
    margin-bottom: 5rem;
  }
}

@media (max-width: 768px) {
  /* 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(--bg-white);
  }
  .mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0.5rem;
    margin: 0.5rem 0 0;
    background: var(--bg-white);
    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) {
  .breadcrumbs {
    font-size: 0.8rem;
  }
}