﻿/* Header */
.common-header__header {
  background-color: var(--ink);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.common-header__header-logo {
  cursor: pointer;
}

.common-header__header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.common-header__header-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.common-header__header-link-item {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.common-header__header-link-item.active {
  color: white;
  border-bottom: 2px solid var(--primary);
}

.common-header__header-link-item:hover {
  color: white;
}

.common-header__header-button-get-started {
  background-color: white;
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.common-header__header-button-get-started:hover {
  background-color: #f0f0f0;
}



/* Drawer Checkbox Hack */
.common-header__mobile-drawer-toggle {
  display: none;
}

.common-header__hamburger {
  display: none;
}

.common-header__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
}

/* Mobile Drawer Background */
.common-header__mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  max-width: 80vw;
  height: 100vh;
  background-color: white;
  z-index: 1000;
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.2);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.common-header__mobile-drawer-toggle:checked~.common-header__mobile-drawer {
  left: 0;
}

.common-header__mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.common-header__mobile-drawer-toggle:checked~.common-header__mobile-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Internal UI */
.common-header__drawer-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}



.common-header__drawer-close {
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

.common-header__drawer-scroll-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.common-header__drawer-section {
  margin-bottom: 32px;
}

.common-header__drawer-section-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

.common-header__drawer-button-get-started {
  width: 100%;
  margin-bottom: 32px;
  padding: 14px 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.common-header__drawer-button-get-started:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.common-header__drawer-link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.common-header__drawer-link:hover {
  color: var(--primary);
  padding-left: 8px;
}

.common-header__drawer-link.active {
  color: var(--primary);
}

.common-header__drawer-socials {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.common-header__drawer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.common-header__drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.common-header__drawer-copyright {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .common-header__header-content {
    padding: 16px 20px;
  }

  .common-header__header-links {
    gap: 16px;
  }

  .common-header__header-link-item {
    display: none;
  }

  .common-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-right: 20px;
  }

  .common-header__header-logo {
    margin-right: auto;
  }
}