/**
 * Header / Navigation
 * ===================
 */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    padding: 0 var(--space-6);
}

.header-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.header-logo img {
    width: 32px;
    height: 32px;
}

/* Nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header-nav a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--color-text-primary);
}

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Launch App button */
.btn-launch {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-5);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-launch:hover {
    background: var(--color-primary-muted);
    color: var(--color-primary);
}

/* Wallet button — animated Solana gradient */
.btn-wallet {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(90deg, #9945FF, #DC1FFF, #14F195, #9945FF);
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-wallet:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.btn-wallet.connected {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-default);
}

.btn-wallet .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

/* Mobile hamburger */
.header-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    cursor: pointer;
}

.header-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 1px;
    transition: all var(--transition-base);
}

/* Mobile menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-primary);
    padding: var(--space-6);
    z-index: var(--z-dropdown);
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-hamburger { display: flex; }
    .header-logo-text { display: none; }
    .btn-launch-text { display: none; }
    .btn-launch { padding: var(--space-2); min-width: 36px; justify-content: center; }
    .btn-wallet { font-size: var(--font-size-xs); padding: var(--space-1) var(--space-3); }
}

.btn-launch-icon {
    font-size: var(--font-size-xs);
}

@media (min-width: 769px) {
    .btn-launch-icon { display: none; }
}
