/* header.css - Shared Header Component */

/* Header Loading Skeleton */
.header-loading-skeleton {
  background: #1e293b;
  border-bottom: 2px solid #4f46e5;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  animation: pulse 1.5s ease-in-out infinite;
}

.header-skeleton-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.header-skeleton-logo {
  width: 80px;
  height: 80px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  margin-bottom: 0.35rem;
}

.header-skeleton-title {
  width: 180px;
  height: 24px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.app-header {
  background: #1e293b;
  border-bottom: 2px solid #4f46e5;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.header-left {
  display: none;
}

.header-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.35rem;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #eaeaea;
  margin: 0;
}

.header-right {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-wallet-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.header-wallet-address {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.header-wallet-balance {
  font-size: 0.7rem;
  color: #64748b;
}

.header-connect-btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #6366f1;
  color: white;
  white-space: nowrap;
}

.header-connect-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.header-connect-btn.connected {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.header-connect-btn.connected:hover {
  background: rgba(99, 102, 241, 0.3);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .app-header {
    padding: 0.75rem 1rem;
  }
  
  .header-title {
    font-size: 1rem;
  }
  
  .header-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 0.25rem;
  }
  
  .header-right {
    right: 1rem;
  }
  
  .header-wallet-info {
    display: none;
  }
  
  .header-connect-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}