Spaces:
Sleeping

emotion-ui / src /styles /Header.css
Aya
clean deploy emotion ui frontend
20d0e47
Raw History Blame Contribute Delete
2.09 kB
/* ============================================
HEADER COMPONENT
============================================ */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 48px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border);
}
.logo {
display: flex;
align-items: baseline;
gap: 12px;
}
.logo-icon {
width: 50px;
height: auto;
border-radius: 12px;
object-fit: cover;
}
.logo h1 {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-h);
}
.logo h1 span {
color: var(--cardinal);
}
.header-status {
display: flex;
align-items: center;
gap: 8px;
color: var(--burgundy);
font-size: 14px;
background: var(--accent-bg);
padding: 8px 16px;
border-radius: 20px;
}
.status-dot {
width: 8px;
height: 8px;
background: var(--cardinal);
border-radius: 50%;
animation: pulse 2s infinite;
}
.lang-switcher {
display: flex;
gap: 4px;
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: 40px;
padding: 4px;
margin-right: 16px;
}
.lang-btn {
min-width: 36px;
height: 36px;
border-radius: 30px;
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease;
border: none;
background: transparent;
color: var(--text);
font-family: var(--sans);
letter-spacing: 0.5px;
}
.lang-btn.active {
background: var(--cardinal);
color: white;
box-shadow: 0 2px 8px rgba(172, 22, 52, 0.3);
}
.lang-btn:hover:not(.active) {
background: var(--accent-bg);
color: var(--cardinal);
}
[dir="rtl"] .header {
flex-direction: row-reverse;
}
[dir="rtl"] .logo {
flex-direction: row-reverse;
}
[dir="rtl"] .lang-switcher {
margin-right: 0;
margin-left: 16px;
}
@media (max-width: 768px) {
.header {
flex-direction: column;
gap: 16px;
margin-bottom: 32px;
}
.logo h1 {
font-size: 28px;
}
}
@media (max-width: 480px) {
.logo h1 {
font-size: 1.2rem;
}
.logo-icon {
width: 40px;
}
.lang-btn {
min-width: 30px;
height: 30px;
font-size: 11px;
}
}