/* ==========================================================================
   Donna Alxia News - Header מקצועי (דסקטופ / טאבלט / מובייל)
   ========================================================================== */

:root {
	--dan-red: #b3131f;
	--dan-red-dark: #7a0d15;
	--dan-text: #1a1a1a;
	--dan-header-h: 76px;
}

* { box-sizing: border-box; }

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- פס עליון ---------- */
.dan-top-bar {
	background: #111;
	color: #ccc;
	font-size: 13px;
}

.dan-top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 34px;
}

.dan-ad-email {
	color: #ccc;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color .15s;
}

.dan-ad-email:hover { color: #fff; }

.dan-top-bar-social {
	display: flex;
	gap: 14px;
}

.dan-top-bar-social a {
	color: #ccc;
	text-decoration: none;
	display: inline-flex;
}

.dan-top-bar-social a:hover { color: var(--dan-red); }

/* ---------- כותרת ראשית ---------- */
.site-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 500;
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
	transition: box-shadow .2s ease;
}

.site-header.dan-scrolled {
	box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.site-header-inner {
	display: flex;
	align-items: center;
	height: var(--dan-header-h);
	gap: 24px;
}

.site-branding {
	flex-shrink: 0;
}

.site-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--dan-red);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.site-title img {
	max-height: 44px;
	width: auto;
	display: block;
}

/* ---------- ניווט דסקטופ ---------- */
.main-navigation {
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
}
.main-navigation::-webkit-scrollbar { display: none; }

.main-navigation .menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
	white-space: nowrap;
}

.main-navigation .menu li a {
	display: inline-block;
	padding: 10px 14px;
	color: var(--dan-text);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	transition: background .15s, color .15s;
}

.main-navigation .menu li a:hover,
.main-navigation .menu li.current-menu-item a {
	background: rgba(179,19,31,.08);
	color: var(--dan-red);
}

/* ---------- פעולות בצד ---------- */
.dan-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.dan-search-toggle,
.dan-menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	transition: background .15s;
}

.dan-search-toggle:hover { background: #f2f2f2; }

.dan-icon-search {
	width: 19px;
	height: 19px;
	display: inline-block;
	border: 2px solid var(--dan-text);
	border-radius: 50%;
	position: relative;
}
.dan-icon-search::after {
	content: '';
	position: absolute;
	width: 2px;
	height: 8px;
	background: var(--dan-text);
	bottom: -7px;
	left: 50%;
	transform: rotate(45deg) translateX(-1px);
	transform-origin: top;
}

.dan-icon-facebook, .dan-icon-instagram, .dan-icon-twitter {
	width: 16px; height: 16px;
	display: inline-block;
}

/* ---------- פאנל חיפוש ---------- */
.dan-search-panel {
	max-height: 0;
	overflow: hidden;
	background: #fafafa;
	border-top: 1px solid #eee;
	transition: max-height .25s ease;
}

.dan-search-panel.open {
	max-height: 90px;
}

.dan-search-form {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	gap: 10px;
}

.dan-search-input {
	flex: 1;
	height: 44px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 0 16px;
	font-size: 15px;
	background: #fff;
}

.dan-search-input:focus {
	outline: none;
	border-color: var(--dan-red);
}

.dan-search-submit {
	height: 44px;
	padding: 0 20px;
	background: var(--dan-red);
	border: none;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dan-search-submit .dan-icon-search {
	border-color: #fff;
}
.dan-search-submit .dan-icon-search::after {
	background: #fff;
}

/* ---------- כפתור המבורגר (מוסתר בדסקטופ) ---------- */
.dan-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 0;
}

.dan-menu-toggle-bar {
	width: 22px;
	height: 2px;
	background: var(--dan-text);
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}

.dan-menu-toggle.open .dan-menu-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.dan-menu-toggle.open .dan-menu-toggle-bar:nth-child(2) {
	opacity: 0;
}
.dan-menu-toggle.open .dan-menu-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- תפריט מובייל (Off-canvas) ---------- */
.dan-mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
	z-index: 600;
}

.dan-mobile-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

.dan-mobile-menu {
	position: fixed;
	top: 0;
	right: -320px;
	width: 300px;
	max-width: 85vw;
	height: 100%;
	background: #fff;
	z-index: 601;
	transition: right .3s ease;
	display: flex;
	flex-direction: column;
	box-shadow: -6px 0 20px rgba(0,0,0,.15);
}

.dan-mobile-menu.open {
	right: 0;
}

.dan-mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: var(--dan-red);
	color: #fff;
}

.dan-mobile-menu-title {
	font-weight: 800;
	font-size: 18px;
}

.dan-mobile-menu-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.dan-mobile-search {
	display: flex;
	gap: 8px;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}

.dan-mobile-search input {
	flex: 1;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 14px;
}

.dan-mobile-search button {
	width: 40px;
	height: 40px;
	border: none;
	background: var(--dan-red);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dan-mobile-search .dan-icon-search { border-color: #fff; }
.dan-mobile-search .dan-icon-search::after { background: #fff; }

.dan-mobile-menu-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	overflow-y: auto;
}

.dan-mobile-menu-list li a {
	display: block;
	padding: 14px 20px;
	color: var(--dan-text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	border-bottom: 1px solid #f2f2f2;
}

.dan-mobile-menu-list li a:hover,
.dan-mobile-menu-list li.current-menu-item a {
	color: var(--dan-red);
	background: rgba(179,19,31,.06);
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* טאבלט */
@media (max-width: 960px) {
	.main-navigation { display: none; }
	.dan-menu-toggle { display: flex; }
	.site-header-inner { justify-content: space-between; }
	.dan-top-bar-social { display: none; }
}

/* מובייל */
@media (max-width: 600px) {
	:root { --dan-header-h: 62px; }
	.site-title { font-size: 19px; }
	.dan-top-bar { font-size: 11px; }
	.dan-ad-text { display: none; } /* מציג רק אייקון במסך צר מאוד */
	.container { padding: 0 16px; }
}

@media (min-width: 601px) {
	.dan-top-bar { }
}
