/* ===== ARCHUB - Header & Navigation Styles ===== */

/* ===== Header ===== */
.header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  width: 100%;
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo-link {
  display: block;
  transition: transform 0.3s ease;
}
.logo-link:hover { transform: scale(1.05); }

.logo-svg { width: 200px; height: auto; }

/* Navigation */
.nav {
  width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list {
  width: 100%;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link {
  color: var(--color-black);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-purple);
  background: rgba(66, 0, 146, 0.08);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-purple);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.burger-menu:hover {
  background: rgba(66, 0, 146, 0.1);
}

.burger-icon {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  width: 100%;
  height: 3px;
  background: var(--color-black);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.burger-icon span:nth-child(2) {
  width: 70%;
}

.burger-icon:hover span:nth-child(2) {
  width: 100%;
}

.burger-icon.active span:nth-child(1) { 
  transform: rotate(45deg) translate(6px, 6px); 
}
.burger-icon.active span:nth-child(2) { 
  opacity: 0;
  transform: translateX(-10px);
}
.burger-icon.active span:nth-child(3) { 
  transform: rotate(-45deg) translate(6px, -6px); 
}

/* Header Bottom Line */
.header-bottom-line {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -50px;
  left: 0;
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-bottom-line-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85%;
}

.header-bottom-line h1 {
  color: var(--color-white);
  font-size: 22px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* User Status */
.user-status {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  margin-right: 15px;
  white-space: nowrap;
}

/* Auth Buttons */
.auth-buttons-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-btn, .my-page-btn {
  width: 140px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  border-color: var(--color-white);
}

.my-page-btn {
  width: 150px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow);
  border: 2px solid var(--color-black);
  color: var(--color-black);
}

.my-page-btn:hover {
  background: #e6b000;
  color: var(--color-black);
  border-color: var(--color-black);
}

/* ===== Mobile Navigation ===== */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #f0f0f0 100%);
  z-index: 9999;
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}
.mobile-nav-panel.active { left: 0; }

.mobile-nav-content {
  padding: 100px 30px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mobile-nav-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.mobile-nav-close:hover { 
  background: var(--color-purple);
  transform: rotate(90deg);
  box-shadow: 0 6px 20px rgba(66, 0, 146, 0.3);
}

.mobile-nav-close span {
  width: 20px;
  height: 3px;
  background: var(--color-black);
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;
}
.mobile-nav-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-nav-close span:nth-child(2) { transform: rotate(-45deg); }
.mobile-nav-close:hover span { background: white; }

.mobile-nav-list {
  list-style: none;
  margin-bottom: 40px;
}

.mobile-nav-list li { 
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInNav 0.5s ease forwards;
}

.mobile-nav-panel.active .mobile-nav-list li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-panel.active .mobile-nav-list li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-panel.active .mobile-nav-list li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-panel.active .mobile-nav-list li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInNav {
  to { opacity: 1; transform: translateX(0); }
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: var(--color-black);
  font-size: 18px;
  font-weight: 500;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid transparent;
}

.mobile-nav-link:hover { 
  color: var(--color-purple);
  background: linear-gradient(90deg, rgba(66, 0, 146, 0.08) 0%, white 100%);
  border-left-color: var(--color-purple);
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(66, 0, 146, 0.15);
}

/* Mobile User Status */
.mobile-user-status {
  display: block;
  text-align: center;
  color: var(--color-black);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile Auth Buttons */
.mobile-auth-btn, .mobile-my-page-btn {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 12px;
}

.mobile-auth-btn {
  background: var(--color-white);
  color: var(--color-black);
  border: 2px solid var(--color-black);
  box-shadow: none;
}

.mobile-auth-btn:hover {
  transform: translateY(-3px);
  background: #f0f0f0;
}

.mobile-my-page-btn {
  background: var(--color-yellow);
  color: var(--color-black);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  border-radius: 15px;
}

.mobile-my-page-btn:hover { 
  background: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-auth-btn:active, .mobile-my-page-btn:active { transform: translateY(0); }
.mobile-auth-btn:focus, .mobile-my-page-btn:focus { outline: none; }

/* ===== Header Responsive Design ===== */

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
  .nav, .auth-btn { display: none; }
  .burger-menu { display: flex; }
  
  /* Hide header auth buttons and user status when burger appears */
  .auth-buttons-container { display: none; }
  .user-status { display: none; }
  .my-page-btn { display: none; }
  .header-bottom-line-container { justify-content: center; }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .logo-svg { width: 150px; }
  .header-bottom-line h1 { font-size: 18px; }
}
