/* ==========================================================================
   Emotek - Sertifika ve Yerli Mali Belgeleri galerisi
   [emotek_belgeler] kisa kodu ile kullanilir.
   Tum secicilere .emtk- oneki verilmistir, baska bolumleri etkilemez.
   ========================================================================== */

.emtk-belgeler {
	--emtk-ana: var(--porto-primary-color, #036d7e);
	--emtk-baslik: var(--porto-heading-color, #222529);
	--emtk-metin: var(--porto-body-color, #777777);
	--emtk-cizgi: rgba(0, 0, 0, .09);

	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 576px) {
	.emtk-belgeler {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.emtk-belgeler {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px;
	}
}

/* --- Kart --- */

.emtk-belge {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--emtk-cizgi);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
	transition: box-shadow .25s ease, transform .25s ease;
}

.emtk-belge:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
	transform: translateY(-3px);
}

/* --- Gorsel (buyutme dugmesi) --- */

.emtk-belge-gorsel {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--emtk-cizgi);
	background: #f4f6f7;
	cursor: zoom-in;
	line-height: 0;
	appearance: none;
	-webkit-appearance: none;
}

.emtk-belge-gorsel img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	transition: transform .35s ease;
}

.emtk-belge:hover .emtk-belge-gorsel img {
	transform: scale(1.02);
}

.emtk-belge-buyut {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 5px 11px;
	border-radius: 4px;
	background: rgba(3, 109, 126, .92);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .02em;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .25s ease, transform .25s ease;
}

.emtk-belge:hover .emtk-belge-buyut,
.emtk-belge-gorsel:focus-visible .emtk-belge-buyut {
	opacity: 1;
	transform: translateY(0);
}

/* --- Kart govdesi --- */

.emtk-belge-govde {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 22px;
}

.emtk-belge-baslik {
	margin: 0 0 3px;
	color: var(--emtk-baslik);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
}

.emtk-belge-alt {
	margin: 0 0 16px;
	color: var(--emtk-ana);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.45;
}

/* --- Belge bilgileri --- */

.emtk-belge-meta {
	margin: 0 0 20px;
	padding: 14px 0 0;
	border-top: 1px solid var(--emtk-cizgi);
	font-size: .8125rem;
	line-height: 1.5;
}

.emtk-belge-satir {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 0 7px;
}

.emtk-belge-satir:last-child {
	margin-bottom: 0;
}

.emtk-belge-meta dt {
	flex: 0 0 82px;
	margin: 0;
	color: var(--emtk-metin);
	font-weight: 500;
}

.emtk-belge-meta dd {
	flex: 1 1 auto;
	margin: 0;
	color: var(--emtk-baslik);
	font-weight: 600;
	word-break: break-word;
}

/* --- Indirme butonu --- */

.emtk-belge-indir {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: auto;
	padding: 12px 16px;
	border: 1px solid var(--emtk-ana);
	border-radius: 5px;
	background: var(--emtk-ana);
	color: #fff;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.emtk-belge-indir:hover,
.emtk-belge-indir:focus {
	background: #fff;
	color: var(--emtk-ana);
	text-decoration: none;
}

.emtk-belge-indir-ikon {
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 13.5h12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 13.5h12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Ekran okuyucuya ozel metin */
.emtk-gizli {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --- Klavye odagi --- */

.emtk-belge-gorsel:focus-visible,
.emtk-belge-indir:focus-visible,
.emtk-buyutec-kapat:focus-visible {
	outline: 2px solid var(--emtk-ana, #036d7e);
	outline-offset: 2px;
}

/* --- Buyutec (onizleme penceresi) --- */

.emtk-buyutec {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 20, 24, .88);
}

.emtk-buyutec.emtk-acik {
	display: flex;
}

.emtk-buyutec-gorsel {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
	object-fit: contain;
}

.emtk-buyutec-kapat {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 30px;
	line-height: 42px;
	cursor: pointer;
	transition: background-color .2s ease;
}

.emtk-buyutec-kapat:hover {
	background: rgba(255, 255, 255, .28);
}

/* Onizleme acikken sayfanin kaymasini engelle */
body.emtk-kilit {
	overflow: hidden;
}

/* --- Hareket azaltma tercihi --- */

@media (prefers-reduced-motion: reduce) {

	.emtk-belge,
	.emtk-belge-gorsel img,
	.emtk-belge-buyut,
	.emtk-belge-indir,
	.emtk-buyutec-kapat {
		transition: none;
	}

	.emtk-belge:hover {
		transform: none;
	}

	.emtk-belge:hover .emtk-belge-gorsel img {
		transform: none;
	}
}
