File size: 2,818 Bytes
25f22bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/* Header Responsive Styles */
.header {
  background: white;
  border-bottom: 1px solid var(--color-secondary-200);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem; /* 64px - consistent with h-16 */
  z-index: var(--z-50);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* Mobile header behavior */
@media (max-width: 1023px) {
  .header {
    z-index: var(--z-50);
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .header-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.header-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-600);
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--spacing-2);
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-secondary-700);
  margin: 2px 0;
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile styles - using Tailwind's lg breakpoint (1024px) */
@media (max-width: 1023px) {
  .hamburger {
    display: flex;
  }
  
  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-8);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: var(--z-30);
  }
  
  .header-nav.active {
    transform: translateX(0);
  }
  
  .header-actions {
    display: none;
  }
}

/* Ensure proper z-index relationship with sidebar */
@media (max-width: 1023px) {
  .header {
    z-index: var(--z-40);
  }
  
  /* Sidebar should be above header on mobile */
  .sidebar {
    z-index: var(--z-50);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .header {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .header {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  .hamburger span {
    transition-duration: 0.01ms !important;
  }
}