/* Layout Components - Header, Footer, Navigation */

/* Flexbox */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.space-x-2>*+* {
  margin-left: 0.5rem;
}

.space-x-4>*+* {
  margin-left: 1rem;
}

.space-x-6>*+* {
  margin-left: 1.5rem;
}

.space-y-2>*+* {
  margin-top: 0.5rem;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Sizing */
.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

.h-80 {
  height: 20rem;
}

.h-40 {
  height: 10rem;
}

.h-10 {
  height: 2.5rem;
}

.h-6 {
  height: 1.5rem;
}

.h-1 {
  height: 0.25rem;
}

.w-10 {
  width: 2.5rem;
}

.w-6 {
  width: 1.5rem;
}

.w-24 {
  width: 6rem;
}

.w-full {
  width: 100%;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-full {
  max-width: 100%;
}

/* Header Styles */
.header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-bottom: 1px solid #f3f4f6;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

/* Header Scroll States */
.header-hidden {
  transform: translateY(-100%);
}

.header-visible {
  transform: translateY(0);
}

/* Body padding to compensate for fixed header */
body {
  /* Adjust based on header height */
}

/* Utility class for hiding elements */
.hidden {
  display: none !important;
}

.header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  color: #3182ce;
  font-weight: bold;
  font-size: 24px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.nav-link:hover {
  color: #3182ce;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-button {
  display: flex;
  align-items: center;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.dropdown-button:hover {
  color: #3182ce;
}

.dropdown-icon {
  margin-left: 4px;
  width: 16px;
  height: 16px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 224px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 50;
}

.dropdown-menu.visible {
  opacity: 1;
  visibility: visible;
}

.dropdown-content {
  padding: 8px 0;
}

.dropdown-link {
  display: block;
  padding: 8px 16px;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.dropdown-link:hover {
  background-color: #f9fafb;
  color: #3182ce;
}

/* Language Switch */
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-active {
  font-weight: 600;
  color: #3182ce;
}

.language-divider {
  color: #9ca3af;
}

.language-inactive {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.language-inactive:hover {
  color: #3182ce;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  padding: 8px;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
  background-color: #f3f4f6;
}

.mobile-menu-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation */
.mobile-menu {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  color: #374151;
  text-decoration: none;
  padding: 8px 16px;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-align: left;
}

.mobile-nav-link:hover {
  color: #3182ce;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-section p,
.footer-section li {
  color: #e2e8f0;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #63b3ed;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 2rem;
  text-align: center;
  color: #a0aec0;
}