/* ===== HEADER =====
 * GetAdvice v5.7 — Top bar with glow line, gradient title, icon hover glow.
 * File: css/header.css
 */

header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    padding-top: calc(var(--space-md) + var(--safe-top));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 2, 8, 0.85);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

/* ── v5.1: Glow line at bottom of header ── */
header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), var(--accent-hot), var(--accent-glow), transparent);
    opacity: 0.5;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: box-shadow var(--transition-normal);
}

.app-icon:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

.app-icon svg { width: 16px; height: 16px; fill: white; }

/* ── v5.1: Gradient text on title ── */
.app-title {
    font-size: var(--font-size-input);
    font-weight: 600;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.app-version {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-left: var(--space-xs);
}

.new-chat-btn {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: var(--space-sm) 14px;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    font-family: inherit;
}

/* ── v5.1: Shimmer sweep on new-chat button ── */
.new-chat-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.5s var(--ease-out);
}

.new-chat-btn:hover::before { left: 100%; }

.new-chat-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glow);
}

.new-chat-btn:focus-visible {
    outline: 2px solid var(--accent-light, #a78bfa);
    outline-offset: 2px;
}

.new-chat-btn:active {
    transform: scale(0.95);
    background: rgba(124, 92, 252, 0.15);
}
