/**
 * gineus-2 — Üst bilgi çubuğu (≤991px)
 * pc_css/top-bar.css ile aynı ayırıcı / padding / renk devralma (modül inline stilleri geçerli)
 */

/* Site üst çubuğu (layout/header.php); sayfa içi .g2-archive-header ile karışmasın */
body > header {
	position: relative;
	z-index: 1035;
}

.g2-top-bar,
.g2-top-bar > .container,
.g2-top-bar > .container > .row {
	overflow: visible;
}

.g2-top-bar {
	/* ham-html/style.css — .top-bar + .top-bar-inner: 12px / 600 */
	display: flex !important;
	align-items: center;
	box-sizing: border-box;
	margin-bottom: 0;
	height: 40px;
	min-height: 40px;
	max-height: 40px;
	font-size: 12px;
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.g2-top-bar > .container {
	height: 100%;
	display: flex;
	align-items: center;
	padding-top: 0;
	padding-bottom: 0;
}

.g2-top-bar > .container > .row {
	width: 100%;
	min-height: 0;
	height: auto;
	margin-top: 0;
	margin-bottom: 0;
}

/* İki sütun: mobilde tek satır (sol + sağ yan yana); sol yalnızca mobilde görünür öğe varsa */
.g2-top-bar .row[data-g2-topbar-cols="lr"] {
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
}

.g2-top-bar .row[data-g2-topbar-cols="lr"] > .g2-top-bar__col--left {
	display: none !important;
	flex: 0 1 auto;
	width: auto !important;
	max-width: 48%;
	min-width: 0;
}

.g2-top-bar .row[data-g2-topbar-cols="lr"] > .g2-top-bar__col--left:has(.g2-topbar-admin-item:not(.g2-topbar-hide-mobile)) {
	display: flex !important;
}

.g2-top-bar .row[data-g2-topbar-cols="lr"] > .g2-top-bar__col--right {
	flex: 0 1 auto;
	width: auto !important;
	max-width: none;
	min-width: 0;
	margin-left: auto;
}

.g2-top-bar .row[data-g2-topbar-cols="lr"] .g2-top-bar__text {
	flex-wrap: nowrap;
	align-items: center;
	padding: 0;
	gap: 0.35rem;
	min-height: 0;
}

.g2-top-bar .container {
	max-width: 1192px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

.g2-top-bar .row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	margin-left: 0;
	margin-right: 0;
}

.g2-top-bar .row > [class*="col-"] {
	display: flex;
	align-items: center;
	min-height: 0;
}

/* Bootstrap .col-* yatay padding (genelde 15px) üst çubuğu içeride bırakıyor; mobilde sıfırla */
.g2-top-bar .row > .g2-top-bar__col--left,
.g2-top-bar .row > .g2-top-bar__col--right {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Sol bölüm — ham-html .top-bar-inner: yatay hizalama, dikey padding yok */
.g2-top-bar__text {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.65rem;
	min-width: 0;
	min-height: 0;
}

.g2-top-bar__text span {
	border-right: 0 solid #eeeeee;
	padding: 10px 9px;
}

/* Telefon + e-posta: mobilde yalnızca ikon; link tamamı tıklanır (aria-label metni okur) */
.g2-top-bar a.g2-topbar-phone-link,
.g2-top-bar .g2-topbar-phone-link,
.g2-top-bar a.g2-topbar-email-link,
.g2-top-bar .g2-topbar-email-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0;
	font-size: 0 !important;
	line-height: 0 !important;
}

.g2-top-bar .g2-topbar-phone__value,
.g2-top-bar .g2-topbar-email__value {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	max-width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.g2-top-bar a.g2-topbar-phone-link > i,
.g2-top-bar .g2-topbar-phone-link > i,
.g2-top-bar a.g2-topbar-email-link > i,
.g2-top-bar .g2-topbar-email-link > i {
	margin-right: 0 !important;
	font-size: 1rem !important;
	line-height: 1 !important;
}

.g2-top-bar__text > span,
.g2-top-bar__text > a,
.g2-top-bar__text > div {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.g2-top-bar .g2-top-bar__text .topbar-social {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

/* Sağ bölüm — taslağa yakın: ayırıcı çizgi yok, satır içi hizalama */
.g2-top-bar__actions {
	text-align: right;
	min-width: 0;
	flex: 1 1 auto;
}

.g2-top-bar__actions ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	column-gap: 4px;
}

.g2-top-bar__actions ul li {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	border-right: none;
	padding: 0 0 0 8px;
	flex: 0 0 auto;
	min-height: 0;
}

.g2-top-bar__actions ul li:first-child {
	padding-left: 0;
}

.g2-top-bar__actions ul li:last-child {
	border-right: none;
}

.g2-top-bar__actions ul li i {
	margin-right: 6px;
	font-size: 11px;
	opacity: 0.8;
}

.g2-top-bar__actions ul li a.topbar-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	min-height: 1.5rem;
}

.g2-top-bar .topbar-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	text-decoration: none;
	opacity: 0.9;
}

.g2-top-bar .topbar-social-link:hover {
	opacity: 1;
}

/* Modül metin/arka plan: üst bardan devral (pc_css ile aynı) */
.g2-top-bar a:not(.btn):not([class*="btn-"]):not(.g2-topbar-pill-btn) {
	color: inherit;
	text-decoration: none;
}

.g2-top-bar a:not(.btn):not([class*="btn-"]):not(.topbar-social-link):not(.g2-topbar-pill-btn):hover {
	opacity: 0.88;
}

/* Sağ/sol buton — ham-html .bank-btn (padding 4px 12px, radius 12px, 12px yazı) */
.g2-top-bar a.g2-topbar-pill-btn,
.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-height: 0;
	height: auto;
	padding: 4px 12px !important;
	border-radius: var(--g2-ham-btn-bank-radius, 12px) !important;
	border: none !important;
	background: #e0f2fe !important;
	color: #0071e3 !important;
	text-decoration: none !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	box-sizing: border-box;
	white-space: nowrap;
	max-width: 100%;
	vertical-align: middle;
}

.g2-top-bar a.g2-topbar-pill-btn i,
.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn i,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn i {
	font-size: 11px !important;
	margin-right: 6px !important;
	opacity: 0.8;
	line-height: 1;
	font-style: normal;
}

.g2-top-bar a.g2-topbar-pill-btn .g2-topbar-pill-btn__label {
	white-space: nowrap;
	color: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
}

.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn.g2-pill-primary,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn.g2-pill-primary,
.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn.g2-pill-danger,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn.g2-pill-danger,
.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn.g2-pill-success,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn.g2-pill-success,
.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn.g2-pill-secondary,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn.g2-pill-secondary {
	border-radius: var(--g2-ham-btn-cta-radius, 8px) !important;
}

.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn.g2-pill-primary,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn.g2-pill-primary {
	background: #0071e3 !important;
	color: #ffffff !important;
}

.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn.g2-pill-accent,
.g2-top-bar .g2-top-bar__actions a.g2-topbar-pill-btn.g2-pill-outline-primary,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn.g2-pill-accent,
.g2-top-bar .g2-top-bar__text a.g2-topbar-pill-btn.g2-pill-outline-primary {
	border-radius: var(--g2-ham-btn-bank-radius, 12px) !important;
	background: #e0f2fe !important;
	color: #0071e3 !important;
}

.g2-top-bar__actions--admin {
	display: flex;
	flex: 0 1 auto;
	min-width: 0;
	align-items: center;
	justify-content: flex-end;
}

/* ham-html .top-bar i — metin satırı ikonları (Takip Et # hariç grup kuralı aşağıda) */
.g2-top-bar .g2-top-bar__text i,
.g2-top-bar .g2-top-bar__actions ul li i,
.g2-top-bar .topbar-social-link i {
	color: currentColor;
	font-size: 11px;
	margin-right: 6px;
	opacity: 0.8;
	line-height: 1;
}

.g2-top-bar__actions ul li a.topbar-social-link i {
	margin-right: 0;
}

/* Masaüstü: tek tek sosyal li; mobilde gizli — yerine Paylaş menüsü */
.g2-topbar-social-desktop-only {
	display: none !important;
}

.g2-topbar-social-mobile-only {
	display: block;
}

.g2-top-bar__text .g2-topbar-social-mobile-only,
.g2-top-bar__text .g2-topbar-social-group.g2-topbar-social-dropdown--text {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	vertical-align: middle;
	margin-top: 0;
}

.g2-top-bar__actions ul li.g2-topbar-social-dropdown {
	position: relative;
	/* Son öğe olsa bile genel li kuralıyla çakışmasın; Paylaş sağında çizgi/boşluk olmasın */
	border-right: none !important;
	padding: 0 !important;
	flex: 0 0 auto;
}

.g2-topbar-social-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: auto;
	max-width: 100%;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.g2-topbar-social-toggle:focus,
.g2-topbar-social-toggle:active,
.g2-topbar-social-toggle:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

.g2-topbar-social-toggle__label {
	white-space: nowrap;
}

/* Paylaş: mobilde yalnızca ikon */
.g2-top-bar .g2-topbar-social-toggle__label {
	display: none !important;
}

.g2-top-bar .g2-topbar-social-toggle {
	gap: 0;
	min-height: 0;
	padding: 0;
	font-size: 0 !important;
}

/* Paylaş (grupsuz): yalnız büyük ikon */
.g2-top-bar .g2-topbar-social-mobile-only:not(.g2-topbar-social-group) .g2-topbar-social-toggle > i {
	font-size: 1rem !important;
	line-height: 1 !important;
	margin-right: 0;
	opacity: 1;
}

/* Gruplu sosyal — ham-html .social-dropdown span + .top-bar i / chevron inline 10px */
.g2-top-bar .g2-topbar-social-group .g2-topbar-social-toggle__label {
	display: inline !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2;
}

.g2-top-bar .g2-topbar-social-group .g2-topbar-social-toggle {
	gap: 0 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	min-height: 0;
	padding: 0;
	line-height: 1.2;
	color: inherit;
}

/* # / grup ikonu: yazı ile aynı punto (12px), ham’daki gibi hemen önce */
.g2-top-bar .g2-topbar-social-group .g2-topbar-social-toggle > i:first-of-type {
	font-size: 12px !important;
	line-height: 1.2 !important;
	margin-right: 6px !important;
	opacity: 1;
	width: auto;
	font-weight: 600;
}

.g2-top-bar .g2-topbar-social-group .g2-topbar-social-group__chev {
	font-size: 10px !important;
	opacity: 0.85;
	margin-left: 2px !important;
	margin-right: 0 !important;
}

.g2-topbar-social-panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: auto;
	min-width: min(220px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
	padding: 0.35rem 0;
	margin: 0;
	background: #fff;
	color: #333;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	z-index: 1200;
	box-sizing: border-box;
}

.g2-topbar-social-panel[hidden] {
	display: none !important;
}

.g2-topbar-social-panel__link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 1rem;
	color: #333 !important;
	text-decoration: none !important;
	font-size: 0.92rem;
	border: none;
	background: transparent;
	width: 100%;
	box-sizing: border-box;
}

.g2-topbar-social-panel__link:hover,
.g2-topbar-social-panel__link:focus-visible {
	background: rgba(0, 0, 0, 0.05);
}

.g2-topbar-social-panel__link i {
	width: 1.25rem;
	text-align: center;
	color: #444;
}

/* Sol sütun: panel sola hizalı */
.g2-topbar-social-dropdown--text .g2-topbar-social-panel {
	right: auto;
	left: 0;
}

.g2-topbar-social-dropdown--text .g2-topbar-social-toggle {
	padding-left: 0;
	padding-right: 0;
	min-height: 0;
}

/*
 * Yedek: admin’de “Metin” / “Bağlantı” türüyle tel:/mailto: eklenmiş veya sınıf yok —
 * doğrudan href ile gizle (özgüllük yüksek)
 */
.g2-top-bar .g2-top-bar__actions ul li > a[href^="tel:"],
.g2-top-bar .g2-top-bar__actions ul li > a[href^="Tel:"],
.g2-top-bar .g2-top-bar__actions ul li > a[href^="TEL:"] {
	font-size: 0 !important;
	line-height: 0 !important;
}

.g2-top-bar .g2-top-bar__actions ul li > a[href^="tel:"] > i,
.g2-top-bar .g2-top-bar__actions ul li > a[href^="Tel:"] > i,
.g2-top-bar .g2-top-bar__actions ul li > a[href^="TEL:"] > i {
	font-size: 1rem !important;
	line-height: 1 !important;
}

.g2-top-bar .g2-top-bar__actions ul li > a[href^="mailto:"],
.g2-top-bar .g2-top-bar__actions ul li > a[href^="MAILTO:"] {
	font-size: 0 !important;
	line-height: 0 !important;
}

.g2-top-bar .g2-top-bar__actions ul li > a[href^="mailto:"] > i,
.g2-top-bar .g2-top-bar__actions ul li > a[href^="MAILTO:"] > i {
	font-size: 1rem !important;
	line-height: 1 !important;
}

.g2-top-bar__text a[href^="tel:"],
.g2-top-bar__text a[href^="Tel:"],
.g2-top-bar__text a[href^="TEL:"],
.g2-top-bar__text a[href^="mailto:"],
.g2-top-bar__text a[href^="MAILTO:"] {
	font-size: 0 !important;
	line-height: 0 !important;
}

.g2-top-bar__text a[href^="tel:"] > i,
.g2-top-bar__text a[href^="Tel:"] > i,
.g2-top-bar__text a[href^="TEL:"] > i,
.g2-top-bar__text a[href^="mailto:"] > i,
.g2-top-bar__text a[href^="MAILTO:"] > i {
	font-size: 1rem !important;
	line-height: 1 !important;
}

/* Üst barda dil + arama: sağ sütunda en sonda; dar ekranda da sağa yaslı, tek satır */
.g2-top-bar__right-wrap {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	width: auto;
	max-width: 100%;
	justify-content: flex-end;
	gap: 0.35rem 0.5rem;
	min-width: 0;
}

.g2-top-bar .row[data-g2-topbar-cols="lr"] > .g2-top-bar__col--right .g2-top-bar__right-wrap {
	flex: 0 1 auto;
}

.g2-top-bar .g2-topbar-menu-utils {
	margin-left: auto;
}

/* Top bar admin öğeleri: Mobilde / PC'de gizle (yalnızca bayraklı öğe; üst kapsayıcıyı gizleme) */
@media (max-width: 991.98px) {
	.g2-top-bar .g2-topbar-admin-item.g2-topbar-hide-mobile,
	.g2-top-bar .g2-top-bar__actions li.g2-topbar-hide-mobile,
	.g2-top-bar .g2-top-bar__text .g2-topbar-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 992px) {
	.g2-top-bar .g2-topbar-admin-item.g2-topbar-hide-desktop,
	.g2-top-bar .g2-top-bar__actions li.g2-topbar-hide-desktop,
	.g2-top-bar .g2-top-bar__text .g2-topbar-hide-desktop {
		display: none !important;
	}
}
