/* 헤더 반응형 - 개선된 디자인 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  position: relative;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.97) 0%, 
    rgba(30, 41, 59, 0.95) 50%, 
    rgba(51, 65, 85, 0.92) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 
    0 4px 32px rgba(0, 0, 0, 0.12),
    0 2px 16px rgba(59, 130, 246, 0.08);
  z-index: 50;
  margin: 0;
  top: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, 
      rgba(15, 23, 42, 0.98) 0%, 
      rgba(30, 41, 59, 0.96) 50%, 
      rgba(51, 65, 85, 0.94) 100%);
  }
  
  .logo {
    gap: 10px;
    padding: 6px 10px;
    border-radius: 12px;
  }
  
  .logo-whale {
    font-size: clamp(22px, 6vw, 28px);
  }
  
  .logo-text {
    font-size: clamp(18px, 4vw, 22px);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .header-right {
    width: 100%;
    justify-content: center;
    order: 3;
    margin-top: 12px;
    gap: 12px;
  }
}

/* 로고 반응형 - 개선된 디자인 */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(22px, 4vw, 26px);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.logo:hover {
  transform: scale(1.05) translateY(-1px);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(16, 185, 129, 0.12) 100%);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.2),
    0 4px 16px rgba(16, 185, 129, 0.1);
}

.logo-whale {
  font-size: clamp(26px, 5vw, 32px);
  animation: whale-float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
  transition: all 0.3s ease;
}

.logo-text {
  display: flex;
  align-items: baseline;
}

.logo-gorae {
  color: #10b981;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 
    0 0 20px rgba(16, 185, 129, 0.4),
    0 2px 4px rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.logo-hub {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.85em;
  letter-spacing: 2px;
  margin-left: 4px;
  opacity: 0.9;
  background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

@keyframes whale-float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  25% { 
    transform: translateY(-3px) rotate(1deg); 
  }
  50% { 
    transform: translateY(-2px) rotate(0deg); 
  }
  75% { 
    transform: translateY(-1px) rotate(-1deg); 
  }
}

/* 호버 효과 강화 */
.logo:hover .logo-whale {
  transform: scale(1.15);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
  animation-duration: 2s;
}

.logo:hover .logo-gorae {
  text-shadow: 
    0 0 30px rgba(16, 185, 129, 0.6),
    0 4px 8px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo:hover .logo-hub {
  opacity: 1;
  background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 3px;
}

/* 로그인 버튼 반응형 */
.login-btn {
  background: #333;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: clamp(12px, 2.5vw, 14px);
}

.login-btn:hover {
  background: #555;
}

@media (max-width: 480px) {
  .login-btn {
    padding: 6px 12px;
  }
}

/* 개인물건 등록 버튼 반응형 */
.personal-register-btn {
  background: linear-gradient(135deg, #00c471, #00a85e);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 196, 113, 0.3);
  margin-right: 15px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .personal-register-btn {
    padding: 8px 16px;
    margin-right: 0;
    flex: 1;
    justify-content: center;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .personal-register-btn {
    padding: 6px 12px;
    gap: 6px;
  }
  .personal-register-btn .btn-text {
    font-size: 12px;
  }
  .personal-register-btn .btn-icon {
    font-size: 14px;
  }
}

.personal-register-btn:hover {
  background: linear-gradient(135deg, #00a85e, #008f4c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 196, 113, 0.4);
}

.personal-register-btn .btn-icon {
  font-size: 16px;
}

.personal-register-btn .btn-text {
  font-size: 14px;
  font-weight: 600;
}

/* 다운로드 버튼 반응형 */
.download-btn {
  background: #00c471;
  color: black;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: clamp(12px, 2.5vw, 14px);
}

@media (max-width: 768px) {
  .download-btn {
    flex: 1;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .download-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* 사용자 섹션 */
.user-section {
  position: relative;
  border: none !important;
  outline: none !important;
}

.user-section::before,
.user-section::after {
  display: none !important;
}

.user-info {
  background: #333;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.user-info::before,
.user-info::after {
  display: none !important;
}

.user-info:hover {
  background: #555;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  min-width: 180px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.user-dropdown div {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #444;
  transition: background 0.2s ease;
  font-size: 14px;
}

.user-dropdown div:last-child {
  border-bottom: none;
}

.user-dropdown div:hover {
  background: #333;
}

.user-dropdown div:first-child:hover {
  background: #00c471;
  color: #000;
}
