/*
 * Arnavutluk Para Birimi - Sidebar Kur Hesaplayıcısı
 * Post ID: 105
 *
 * Floating/fixed konumlandırma YOK.
 * Sticky doğrudan Kadence'in gerçek sidebar wrapper'ında.
 */

.arn-kur-anchor,
.arn-kur-anchor * {
	box-sizing: border-box;
}

.arn-kur-anchor {
	width: 100%;
	margin: 0;
	padding: 0;
}

.arn-kur-box {
	width: 100%;
	margin: 0;
	padding: 18px;
	background: #ffffff;
	border: 1px solid #e2e7ec;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	color: #1f2937;
	font-family: inherit;
}

.arn-kur-title {
	margin: 0 0 5px !important;
	padding: 0 !important;
	font-size: 18px !important;
	line-height: 1.25 !important;
	font-weight: 750 !important;
	letter-spacing: -0.02em;
	color: #111827;
}

.arn-kur-summary {
	margin: 0 0 13px !important;
	padding: 0 !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
	color: #6b7280;
}

.arn-kur-current {
	padding: 12px 0 14px;
	margin-bottom: 14px;
	border-top: 3px solid #d62828;
	border-bottom: 1px solid #e5e7eb;
}

.arn-kur-current-label {
	display: block;
	margin-bottom: 3px;
	font-size: 11px;
	line-height: 1.4;
	color: #6b7280;
}

.arn-kur-current-value {
	display: block;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 750;
	letter-spacing: -0.035em;
	color: #111827;
}

.arn-kur-current-symbol {
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0;
}

.arn-kur-field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 84px;
	align-items: stretch;
	min-height: 43px;
	border: 1px solid #d7dce2;
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.arn-kur-field:focus-within {
	border-color: #9ca3af;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

.arn-kur-input,
.arn-kur-output {
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 9px !important;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 13px !important;
	line-height: 1.35 !important;
	color: #111827 !important;
}

.arn-kur-output {
	display: flex;
	align-items: center;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.arn-kur-select {
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 8px 18px 8px 6px !important;
	border: 0 !important;
	border-left: 1px solid #e1e5e9 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background-color: #fafafa !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 10px !important;
	line-height: 1.2 !important;
	color: #374151 !important;
	cursor: pointer;
}

.arn-kur-swap-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	height: 13px;
}

.arn-kur-swap {
	position: absolute;
	top: -7px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 1px solid #d7dce2;
	border-radius: 50%;
	background: #ffffff;
	color: #4b5563;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.arn-kur-swap:hover,
.arn-kur-swap:focus {
	background: #f7f7f8;
	color: #111827;
}

.arn-kur-quick {
	margin-top: 17px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
}

.arn-kur-section-title {
	margin: 0 0 4px;
	font-size: 10.5px;
	line-height: 1.35;
	font-weight: 700;
	color: #6b7280;
}

.arn-kur-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 5px 0;
	font-size: 11px;
	line-height: 1.35;
}

.arn-kur-row + .arn-kur-row {
	border-top: 1px solid #f1f3f5;
}

.arn-kur-row strong {
	font-weight: 650;
	color: #374151;
}

.arn-kur-row span {
	color: #111827;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.arn-kur-other {
	margin-top: 9px;
	padding-top: 10px;
	border-top: 1px solid #e5e7eb;
}

.arn-kur-note {
	margin: 10px 0 0 !important;
	padding: 10px 0 0 !important;
	border-top: 1px solid #e5e7eb;
	font-size: 9px !important;
	line-height: 1.5 !important;
	color: #6b7280;
}

.arn-kur-note strong {
	color: #4b5563;
	font-weight: 650;
}

.arn-kur-note a {
	color: #4b5563;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.arn-kur-error {
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafafa;
	color: #374151;
	font-size: 13px;
}

/*
 * Gerçek Kadence sidebar yapısı:
 * #secondary.primary-sidebar
 *   > .sidebar-inner-wrap
 *
 * Uzun yazı boyunca takip etmesi gereken wrapper budur.
 */
@media (min-width: 1025px) {

	body.single-post.postid-105 #secondary {
		align-self: stretch;
	}

	body.single-post.postid-105 #secondary > .sidebar-inner-wrap {
		position: sticky;
		top: 100px;
		height: fit-content;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		scrollbar-width: thin;
	}

	/*
	 * WordPress admin bar açıkken kart header'ın arkasına girmesin.
	 */
	body.admin-bar.single-post.postid-105 #secondary > .sidebar-inner-wrap {
		top: 132px;
		max-height: calc(100vh - 152px);
	}

	/*
	 * Sidebar'ın varsayılan widget alt boşluğunu bu tek widget için kaldır.
	 */
	body.single-post.postid-105 #secondary .widget {
		margin-bottom: 0;
	}
}

@media (max-width: 1024px) {

	body.single-post.postid-105 #secondary > .sidebar-inner-wrap {
		position: static;
		max-height: none;
		overflow: visible;
	}

	/*
	 * JS hesaplayıcıyı .arn-money-intro sonrasına taşıdığında
	 * mobilde doğal içerik kartı gibi görünür.
	 */
	body.single-post.postid-105 .arn-money > .arn-kur-anchor {
		width: 100%;
		margin: 0 0 30px;
	}

	body.single-post.postid-105 .arn-money > .arn-kur-anchor .arn-kur-box {
		margin: 0;
	}

	/*
	 * Hesaplayıcı içerik alanına taşındıktan sonra boş kalan
	 * Kadence sidebar'ını kaldır.
	 * JS çalışmazsa hesaplayıcı sidebar'da kalacağı için gizlenmez.
	 */
	body.single-post.postid-105 #secondary:not(:has(.arn-kur-anchor)) {
		display: none;
	}
}

@media (max-width: 680px) {

	body.single-post.postid-105 .arn-money > .arn-kur-anchor {
		margin-bottom: 26px;
	}

	body.single-post.postid-105 .arn-money > .arn-kur-anchor .arn-kur-box {
		padding: 17px;
		border-radius: 13px;
	}

	body.single-post.postid-105 .arn-money > .arn-kur-anchor .arn-kur-title {
		font-size: 18px !important;
	}

	body.single-post.postid-105 .arn-money > .arn-kur-anchor .arn-kur-current-value {
		font-size: 27px;
	}
}
