/*
 * Flourisha Shared Header Component
 * Source of truth: /root/flourisha/00_AI_Brain/frontend/web/src/app/globals.css
 * Extracted for use across Flourisha-branded apps (FloTRADER, etc.)
 *
 * Usage: <link rel="stylesheet" href="/static/flourisha-header.css">
 *
 * Requires:
 *   - Plus Jakarta Sans font
 *   - flourisha-icon.svg in same static dir
 *
 * Structure:
 *   <div class="top-header">
 *     <div class="top-header-left">...</div>
 *     <div class="top-header-tabs">
 *       <button class="top-header-tab active">...</button>
 *     </div>
 *     <div class="top-header-right">...</div>
 *   </div>
 */

/* --- Variables (match globals.css) --- */
:root {
  --header-height: 48px;
  --dark-cyan: #459693;
  --dark-cyan-hover: #3a7d7a;
  --dark-cyan-10: rgba(69, 150, 147, 0.1);
  --dark-cyan-15: rgba(69, 150, 147, 0.15);
  --coffee-bean: #1c0800;
  --carrot-orange: #f09029;
  --molten-lava: #6d1c07;
  --olive: #888d31;
  --text-primary: #1c0800;
  --text-secondary: #4a3f3a;
  --text-muted: #636e72;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(28, 8, 0, 0.08);
  --radius-sm: 8px;
}

/* --- Top Header Bar --- */
.top-header {
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.top-header-spacer { flex: 1; }

.top-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.top-header-sep {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 8px;
}

.top-header-logo {
  height: 30px;
  width: auto;
  margin-right: 4px;
}

.top-header-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.top-header-title span { color: var(--dark-cyan); }

/* --- Tabs (matches right-tab from globals.css) --- */
.top-header-tabs {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.top-header-tab {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: -1px;
  white-space: nowrap;
  padding: 0 14px;
}

.top-header-tab:hover { color: var(--text-primary); }
.top-header-tab.active { color: var(--dark-cyan); border-bottom-color: var(--dark-cyan); }
.top-header-tab svg { width: 15px; height: 15px; }

/* --- Badge (status pills) --- */
.top-header-badge {
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* --- Status dot --- */
.top-header-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.top-header-status {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
