/* =====================================================================
 *  BRANDAFT — KULLANDIĞIMIZ ARAÇLAR  [brandaft_teknoloji]
 * =====================================================================
 *  Ortak belirteçler, bölüm boşluğu ve başlık/giriş tipografisi
 *  ba-ortak.css'te. Burada araç kutusuna özel kısımlar var: logo
 *  ızgarası, gri tondan renge geçen logo, hover açıklaması.
 *  PHP tarafı: inc/teknoloji.php
 * ===================================================================== */

/* Logolar vaka/referans kartlarından küçük olduğu için ızgara da
   daha sık: paylaşılan ızgara kuralı burada geçerli değil. */
.ba-tek__izgara {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) );
}

.ba-tek__oge {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var( --ba-yuzey );
	border: 1px solid var( --ba-cizgi );
	border-radius: var( --ba-yaricap-kucuk );
	padding: 16px 12px;
	min-height: 104px;
	overflow: hidden;
	transition: box-shadow var( --ba-gecis ), border-color var( --ba-gecis ), transform var( --ba-gecis );
}

.ba-tek__oge:hover,
.ba-tek__oge:focus-within {
	box-shadow: var( --ba-golge-hafif );
	border-color: var( --ba-cizgi-koyu );
	transform: translateY( -2px );
}

.ba-tek__cerceve {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

/* Logo normalde gri; üzerine gelince markanın kendi rengine döner. */
.ba-tek__svg,
.ba-tek__gorsel {
	width: 34px;
	height: 34px;
	display: block;
	object-fit: contain;
	filter: grayscale( 1 );
	opacity: .72;
	transition: filter var( --ba-gecis ), opacity var( --ba-gecis );
}

.ba-tek__gorsel {
	max-width: 100px;
	width: auto;
}

.ba-tek__oge:hover .ba-tek__svg,
.ba-tek__oge:hover .ba-tek__gorsel,
.ba-tek__oge:focus-within .ba-tek__svg,
.ba-tek__oge:focus-within .ba-tek__gorsel {
	filter: none;
	opacity: 1;
}

/* Logosu olmayan araçlar: logolarla aynı ağırlıkta dursun diye aynı
   gri ton ve aynı hover davranışı uygulanır. */
.ba-tek__kelime {
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -.01em;
	color: var( --ba-metin-ikincil );
	text-align: center;
	line-height: 1.3;
	padding: 0 2px;
	opacity: .72;
	transition: color var( --ba-gecis ), opacity var( --ba-gecis );
}

.ba-tek__oge:hover .ba-tek__kelime,
.ba-tek__oge:focus-within .ba-tek__kelime {
	color: #1f2937;
	opacity: 1;
}

.ba-tek__ad {
	font-size: 12px;
	font-weight: 600;
	color: var( --ba-metin-ikincil );
	text-align: center;
	line-height: 1.3;
}

.ba-tek__ne {
	font-size: 12.5px;
	line-height: 1.5;
	color: var( --ba-metin );
	text-align: center;
	margin: 0;
}

/* Fare olan cihazlarda açıklama üzerine gelince çıkar. */
@media ( hover: hover ) {
	.ba-tek__ne {
		position: absolute;
		inset: 0;
		background: var( --ba-yuzey );
		padding: 14px 13px;
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		visibility: hidden;
		transition: opacity .16s ease, visibility .16s ease;
	}

	.ba-tek__oge:hover .ba-tek__ne,
	.ba-tek__oge:focus-within .ba-tek__ne {
		opacity: 1;
		visibility: visible;
	}
}

/* Dokunmatikte hover yok; açıklama her zaman görünür. */
@media ( hover: none ) {
	.ba-tek__oge {
		min-height: 0;
		padding: 16px 14px;
		justify-content: flex-start;
	}

	.ba-tek__ne {
		margin-top: 2px;
	}
}

@media ( max-width: 782px ) {
	.ba-tek__izgara {
		grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) );
		gap: 12px;
	}
}
