/* Araç Kamerası Karşılaştırma - Ön Yüz Stilleri */

/* Tema, elemanlara border-box kutu modelini uygulamıyor olabilir; padding'li
   öğelerimizin (paylaşım kutusu, seçim kutuları vb.) beklenmedik şekilde
   kapsayıcısından taşmasını önlemek için kendi öğelerimize kapsamlı bir
   sıfırlama uyguluyoruz. */
.akk-compare-widget,
.akk-compare-widget *,
.akk-compare-widget *::before,
.akk-compare-widget *::after,
.akk-spec-box,
.akk-spec-box *,
.akk-related-box,
.akk-related-box *,
.akk-popular-models,
.akk-popular-models *,
.akk-extra-features-box,
.akk-extra-features-box *,
.akk-share-box,
.akk-share-box * {
	box-sizing: border-box;
}

.akk-compare-widget {
	max-width: 900px;
	width: 100%;
	margin: 24px auto;
	font-family: inherit;
	/* Widget içindeki geniş bir tablo/eleman, temanın kendi flex/grid
	   düzeni içinde bu kapsayıcının küçülmesini engelleyip sayfada
	   hafif bir yatay taşmaya yol açabilir; min-width:0 bunu keser. */
	min-width: 0;
}

.akk-compare-result {
	margin-top: 24px;
	min-width: 0;
}

.akk-compare-selectors {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	background: #f7f7f8;
	border: 1px solid #e2e2e5;
	border-radius: 10px;
	padding: 20px;
}

.akk-select-group {
	flex: 1 1 260px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.akk-select-group label {
	font-weight: 600;
	font-size: 13px;
	color: #444;
}

.akk-model-select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #ccc;
	font-size: 14px;
	background: #fff;
}

.akk-vs {
	font-weight: 700;
	color: #888;
	padding-bottom: 10px;
	flex: 0 0 auto;
}

.akk-compare-btn {
	flex: 0 0 auto;
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 11px 22px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}

.akk-compare-btn:hover {
	background: #135e96;
}

.akk-compare-btn:disabled {
	background: #a7c6e0;
	cursor: not-allowed;
}

.akk-compare-message {
	padding: 14px 16px;
	border-radius: 6px;
	background: #fdecea;
	color: #7a1f16;
	border: 1px solid #f5c2c0;
	font-size: 14px;
}

.akk-compare-message.akk-loading {
	background: #eef4fb;
	color: #1b4a6b;
	border-color: #cfe0f0;
}

/* Karşılaştırma Tablosu */
.akk-table-scroll {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.akk-comparison-table,
.akk-spec-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e2e2e5;
	border-radius: 8px;
	overflow: hidden;
}

.akk-comparison-table th,
.akk-comparison-table td,
.akk-spec-table th,
.akk-spec-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #eee;
	text-align: left;
	font-size: 14px;
}

.akk-comparison-table thead th {
	background: #fafafa;
	text-align: center;
	vertical-align: bottom;
	/* Uzun tabloda sayfa aşağı kaydırılırken model isimlerini üstte sabit tutar.
	   Temanızda sabit (fixed) bir üst menü varsa, aşağıdaki --akk-sticky-offset
	   değişkenini o menünün yüksekliğine göre override edebilirsiniz. */
	position: sticky;
	top: var( --akk-sticky-offset, 0px );
	z-index: 3;
	box-shadow: 0 1px 0 #e2e2e5;
}

.akk-thumb {
	cursor: pointer;
}

.akk-thumb img {
	max-width: 110px;
	height: auto;
	border-radius: 6px;
	margin: 0 auto 8px;
	display: block;
	transition: opacity .15s ease;
}

.akk-thumb:hover img {
	opacity: .85;
}

.akk-comparison-table thead th a {
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	color: #1d2327;
}

.akk-group-row th {
	background: #f0f4f8;
	color: #2271b1;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 8px 14px;
}

.akk-col-label {
	color: #555;
	font-weight: 500;
	width: 34%;
}

.akk-comparison-table .akk-col-value {
	text-align: center;
}

.akk-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.akk-badge-yes {
	background: #e6f6ea;
	color: #1a7a34;
}

.akk-badge-no {
	background: #fbeaea;
	color: #b3261e;
}

.akk-empty {
	color: #bbb;
}

.akk-empty-notice {
	padding: 14px;
	background: #f7f7f8;
	border: 1px dashed #ccc;
	border-radius: 6px;
	color: #666;
}

/* Paylaşım Bileşeni (WhatsApp + Native Paylaşım + Kopyala) */
.akk-share-box {
	margin-top: 16px;
	padding: 14px 16px;
	background: #f7f7f8;
	border: 1px solid #e2e2e5;
	border-radius: 8px;
}

.akk-share-box label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #444;
	margin-bottom: 10px;
}

.akk-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.akk-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	justify-content: center;
	background: #fff;
	border: 1px solid #ccc;
	color: #333;
	padding: 9px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease;
}

.akk-share-btn:hover {
	background: #f0f0f0;
}

.akk-share-whatsapp {
	border-color: #075e54;
	color: #075e54;
}

.akk-share-whatsapp:hover {
	background: #e9fbf0;
}

.akk-share-native-btn,
.akk-share-copy-btn {
	border-color: #2271b1;
	color: #2271b1;
}

.akk-share-native-btn:hover,
.akk-share-copy-btn:hover {
	background: #eef4fb;
}

@media (max-width: 640px) {
	.akk-share-buttons {
		flex-wrap: nowrap;
	}
	.akk-share-btn {
		flex: 1 1 0;
		min-width: 0;
		padding: 8px 4px;
		font-size: 11px;
		gap: 4px;
	}
	.akk-share-btn svg {
		flex-shrink: 0;
	}
}

/* Benzer Modeller */
.akk-related-box {
	margin-top: 32px;
}

.akk-related-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
	gap: 16px;
	margin-top: 12px;
}

.akk-related-card {
	border: 1px solid #e2e2e5;
	border-radius: 10px;
	padding: 14px;
	text-align: center;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.akk-related-thumb {
	display: block;
	margin-bottom: 4px;
}

.akk-related-thumb img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.akk-related-noimg {
	display: block;
	padding: 30px 0;
	background: #f5f5f5;
	border-radius: 6px;
	color: #aaa;
	font-size: 12px;
}

.akk-related-title {
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	text-decoration: none;
}

.akk-related-title:hover {
	text-decoration: underline;
}

.akk-related-compare-btn {
	margin-top: 4px;
	display: inline-block;
	font-size: 12.5px;
	color: #2271b1;
	border: 1px solid #2271b1;
	border-radius: 6px;
	padding: 6px 10px;
	text-decoration: none;
}

.akk-related-compare-btn:hover {
	background: #eef4fb;
}

/* Popüler Karşılaştırmalar */
.akk-popular-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.akk-popular-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px 14px;
	background: #f7f7f8;
	border: 1px solid #e2e2e5;
	border-radius: 8px;
}

.akk-popular-link {
	text-decoration: none;
	color: #1d2327;
}

.akk-popular-names {
	font-weight: 600;
	font-size: 14px;
}

.akk-popular-vs {
	color: #999;
	font-weight: 400;
	margin: 0 4px;
}

.akk-popular-count {
	font-size: 12px;
	color: #777;
	background: #fff;
	border: 1px solid #e2e2e5;
	border-radius: 20px;
	padding: 3px 10px;
}

/* Editör Puanı - Yıldızlar (yüzde bazlı kaplama tekniği) */
.akk-stars {
	position: relative;
	display: inline-block;
	font-size: 18px;
	line-height: 1;
	white-space: nowrap;
	letter-spacing: 2px;
	margin-right: 2px;
}

.akk-stars-empty {
	color: #ddd;
}

.akk-stars-filled {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f5a623;
}

.akk-rating-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
}

.akk-rating-value {
	font-size: 13px;
	font-weight: 700;
	color: #555;
	margin-left: 4px;
}

/* Karşılaştırma tablosu / özellik tablosunda Editör Puanı satırı */
.akk-rating-row td {
	background: #fffaf0;
}

.akk-rating-review-cell {
	font-style: italic;
	color: #5b4a24;
	text-align: left !important;
}

/* Popüler Modeller [populer_modeller] */
.akk-popular-models-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) );
	gap: 16px;
}

.akk-popular-model-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e2e2e5;
	border-radius: 10px;
	padding: 14px;
	background: #fff;
	transition: box-shadow .15s ease, transform .15s ease;
}

.akk-popular-model-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.07);
	transform: translateY(-1px);
}

.akk-popular-model-thumb img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.akk-popular-model-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.akk-popular-model-brand {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #999;
	font-weight: 600;
}

.akk-popular-model-title {
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
}

/* Liste düzeni - kenar çubuğu (sidebar) widget'ları için ideal */
.akk-popular-models-liste {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.akk-popular-models-liste .akk-popular-model-card {
	flex-direction: row;
	align-items: center;
	text-align: left;
	gap: 12px;
	padding: 8px;
}

.akk-popular-models-liste .akk-popular-model-thumb {
	flex: 0 0 56px;
	width: 56px;
}

.akk-popular-models-liste .akk-popular-model-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
}

.akk-popular-models-liste .akk-popular-model-thumb .akk-related-noimg {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 10px;
}

/* Tekil sayfa - Diğer Özellikler */
.akk-extra-features-box {
	margin-top: 32px;
}

.akk-extra-feature-item {
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.akk-extra-feature-item:last-child {
	border-bottom: none;
}

.akk-extra-feature-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1d2327;
}

.akk-extra-feature-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #444;
	margin: 0;
}

/* Tekil sayfa özellik kutusu */
.akk-spec-box {
	margin-top: 32px;
}

.akk-spec-title {
	font-size: 20px;
	margin-bottom: 12px;
}

/* Mobil ve tablet uyumu (dikey telefonlar dahil, dar tabletler/yatay
   telefonlar da bu kapsamda - "1. Model" ile "2. Model" arasında
   flex-wrap kaynaklı garip boşluklar oluşmaması için breakpoint
   kasıtlı olarak geniş tutuldu). */
@media (max-width: 768px) {
	.akk-compare-selectors {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.akk-select-group {
		flex-basis: auto;
	}
	.akk-vs {
		align-self: center;
		padding-bottom: 0;
		margin: 0;
	}
	.akk-compare-btn {
		width: 100%;
	}
	/* Tabloyu sabit (fixed) genişliğe zorluyoruz: sütun genişlikleri
	   içeriğe göre değil, aşağıdaki yüzdelere göre belirlenir. İçerik bu
	   genişliğe sığmıyorsa satır içinde kırılır (word-wrap) — tablo asla
	   kapsayıcısından daha geniş olamaz, dolayısıyla yatay kayma/taşma
	   ihtimali ortadan kalkar. */
	.akk-comparison-table {
		table-layout: fixed;
	}
	.akk-comparison-table th,
	.akk-comparison-table td {
		padding: 8px 6px;
		font-size: 12px;
		word-break: break-word;
		overflow-wrap: anywhere;
	}
	.akk-thumb img {
		max-width: 50px;
	}
	.akk-col-label {
		width: 28%;
	}
	.akk-comparison-table .akk-col-model,
	.akk-comparison-table .akk-col-value {
		width: 36%;
	}
	.akk-badge {
		padding: 2px 6px;
		font-size: 10.5px;
		white-space: normal;
	}
	/* Yıldız puanlama alanı, dar sütuna sığmayan en geniş içeriklerden
	   biriydi — mobilde küçültüp gerekirse satır+değer alt alta dizilsin
	   diye kırılabilir hale getiriyoruz. */
	.akk-stars {
		font-size: 13px;
		letter-spacing: 0;
	}
	.akk-rating-inline {
		flex-wrap: wrap;
		gap: 2px 6px;
	}
	.akk-rating-value {
		font-size: 11px;
		margin-left: 0;
	}
}
