/*
Theme Name: Tıkla Git V2
Theme URI: https://example.com/tiklagit-v2
Author: Tıkla Git
Author URI: https://example.com
Description: Site tanıtım / dizin teması V2. Başka sitelerin tanıtımını listeler; ziyaretçi karttaki butona basar ve o siteye gider. Eklenti gerektirmez, tamamen admin panelinden yönetilir.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiklagit
Tags: dark, custom-menu, custom-logo, translation-ready
*/

/* -------------------------------------------------------------------------
   1. Değişkenler ve sıfırlama (mobile-first)
   ------------------------------------------------------------------------- */

:root {
	--bg:       #0E1013;
	--panel:    #171A1F;
	--panel-2:  #1E2228;
	--line:     #2A2F37;
	--text:       #E8EAED;
	--muted:      #98A0AC;
	--accent:     #6E7BFF;
	--accent-2:   #A8AEFF;
	--accent-3:   #A78BFA; /* degrade eşi (menekşe) */
	--glow:       rgba(110, 123, 255, 0.35);
	--accent-ink: #0E1013; /* vurgu zemin üstündeki metin — koyu mürekkep 5.4:1 kontrast verir */
	--line-strong: #3A4150; /* hover kenarlığı */

	--font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--radius-card: 12px;
	--radius-btn:  8px;
	--radius-img:  10px;
	--speed:       150ms;
	--container:   1120px;
	--gutter:      16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	/* Sayfa içi çapa hedefleri sticky üst barın altında kalmasın */
	scroll-padding-top: 76px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
	/* Kısa sayfalarda footer viewport tabanına yaslansın */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1 0 auto;
	width: 100%;
}

::selection {
	background: rgba(110, 123, 255, 0.35);
	color: var(--text);
}

/* Aurora zemin ışıltısı — sabit, düşük yoğunluklu; içeriği yormaz */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(640px 420px at 12% -8%, rgba(110, 123, 255, 0.18), transparent 62%),
		radial-gradient(760px 520px at 88% -4%, rgba(167, 139, 250, 0.14), transparent 62%),
		radial-gradient(900px 640px at 50% 112%, rgba(94, 234, 212, 0.07), transparent 60%);
	animation: tg-aurora 16s ease-in-out infinite alternate;
}

@keyframes tg-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}

@keyframes tg-pulse {
	0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
	50%      { box-shadow: 0 0 0 5px rgba(110, 123, 255, 0); }
}

/* Ambient animasyonlar — kullanıcı hiçbir şey yapmadan da sayfa canlı */
@keyframes tg-aurora {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to   { transform: translate3d(0, 28px, 0) scale(1.06); }
}

@keyframes tg-sheen {
	0%, 58%   { left: -80%; }
	78%, 100% { left: 125%; }
}

@keyframes tg-breathe {
	0%, 100% { box-shadow: 0 4px 18px -6px var(--glow); }
	50%      { box-shadow: 0 6px 30px -4px rgba(110, 123, 255, 0.55); }
}

@keyframes tg-nudge {
	0%, 68%, 100% { transform: translate(0, -1px); }
	78%           { transform: translate(3px, -4px); }
	88%           { transform: translate(0, -1px); }
}

@keyframes tg-ring {
	0%, 100% { opacity: 0.25; }
	50%      { opacity: 0.7; }
}

@keyframes tg-border-pulse {
	0%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(110, 123, 255, 0); }
	50%      { border-color: rgba(110, 123, 255, 0.55); box-shadow: 0 0 16px -4px var(--glow); }
}

@keyframes tg-gradient-slide {
	from { background-position: 0% 0; }
	to   { background-position: 200% 0; }
}

@keyframes tg-float {
	from { transform: translateY(-12px); }
	to   { transform: translateY(16px); }
}

@keyframes tg-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-5px); }
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.25;
	margin: 0 0 0.5em;
	overflow-wrap: anywhere;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--accent-2);
	text-decoration: none;
	transition: color var(--speed) ease;
}

a:hover {
	color: var(--text);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 12px 20px;
	border-radius: 0 0 var(--radius-btn) 0;
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
	color: var(--accent-ink);
}

.tg-container {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* -------------------------------------------------------------------------
   2. Üst bar
   ------------------------------------------------------------------------- */

.tg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* backdrop-filter desteklenmiyorsa opak zemin; altta kayan içerik gölgelenmez */
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.tg-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent 5%, rgba(110, 123, 255, 0.45), rgba(167, 139, 250, 0.35), transparent 95%);
	pointer-events: none;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
	.tg-header {
		background: rgba(14, 16, 19, 0.82);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
}

.tg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.tg-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.01em;
}

.tg-brand:hover {
	color: var(--accent-2);
}

.tg-brand img {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

/* Customizer'dan yüklenen özel logo (the_custom_logo çıktısı) */
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	flex-shrink: 0;
}

.custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 36px;
	max-width: 200px;
	object-fit: contain;
	border-radius: 8px;
}

.tg-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-btn);
	color: var(--text);
	cursor: pointer;
	transition: border-color var(--speed) ease, background var(--speed) ease;
}

.tg-nav-toggle:hover {
	background: var(--panel-2);
	border-color: var(--muted);
}

.tg-nav-toggle .tg-burger {
	position: relative;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.tg-nav-toggle .tg-burger::before,
.tg-nav-toggle .tg-burger::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--speed) ease, top var(--speed) ease;
}

.tg-nav-toggle .tg-burger::before { top: -6px; }
.tg-nav-toggle .tg-burger::after  { top: 6px; }

.tg-nav-toggle[aria-expanded="true"] .tg-burger { background: transparent; }
.tg-nav-toggle[aria-expanded="true"] .tg-burger::before { top: 0; transform: rotate(45deg); }
.tg-nav-toggle[aria-expanded="true"] .tg-burger::after  { top: 0; transform: rotate(-45deg); }

.tg-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--panel);
	border-bottom: 1px solid var(--line);
	padding: 8px var(--gutter) 16px;
}

.tg-nav.is-open {
	display: block;
	/* Çok maddeli menü kısa/yatay ekranda viewport'u aşmasın */
	max-height: calc(100vh - 60px);
	max-height: calc(100dvh - 60px);
	overflow-y: auto;
}

.tg-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tg-nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: var(--radius-btn);
	color: var(--text);
	font-weight: 500;
}

.tg-nav a:hover {
	background: var(--panel-2);
	color: var(--accent-2);
}

.tg-nav .current-menu-item > a,
.tg-nav .current_page_item > a,
.tg-nav a[aria-current="page"] {
	color: var(--accent-2);
}

/* -------------------------------------------------------------------------
   3. Hero
   ------------------------------------------------------------------------- */

/* Sayfa başlığı bloğu — arşiv, arama ve 404 sayfalarında kullanılır.
   (Ana sayfada yerini üst banner şeridi aldı.) */
.tg-hero {
	position: relative;
	padding: 48px 0 8px;
}

/* Süzülen ışık küreleri */
.tg-hero::before,
.tg-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
	z-index: -1;
}

.tg-hero::before {
	width: 260px;
	height: 260px;
	right: 4%;
	top: -30px;
	background: rgba(110, 123, 255, 0.25);
	animation: tg-float 11s ease-in-out infinite alternate;
}

.tg-hero::after {
	width: 180px;
	height: 180px;
	right: 24%;
	top: 90px;
	background: rgba(167, 139, 250, 0.18);
	animation: tg-float 13s ease-in-out infinite alternate-reverse;
}

.tg-hero__title {
	font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 0.35em;
	background: linear-gradient(94deg, var(--text), #C7CCFF, var(--accent-2), #C7CCFF, var(--text));
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: tg-fade-up 0.55s ease 0.06s backwards, tg-gradient-slide 8s linear 0.7s infinite;
}

.tg-hero__sub {
	color: var(--muted);
	font-size: 1.08rem;
	max-width: 560px;
	margin: 0;
	animation: tg-fade-up 0.55s ease 0.14s backwards;
}

/* Üst banner şeridi — ana sayfada hero metninin yerini alır.
   Masaüstünde üç yuva yan yana, mobilde alt alta. */
.tg-banners {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 28px 0 8px;
}

.tg-banners__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-card);
	border: 1px solid var(--line);
	background: var(--panel);
	line-height: 0;
	animation: tg-fade-up 0.5s ease backwards;
	transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.tg-banners__item:nth-child(1) { animation-delay: 0.05s; }
.tg-banners__item:nth-child(2) { animation-delay: 0.12s; }
.tg-banners__item:nth-child(3) { animation-delay: 0.19s; }

/* Yalnız bağlantılı yuvalar tıklanabilir görünsün. */
a.tg-banners__item:hover,
a.tg-banners__item:focus-visible {
	border-color: rgba(110, 123, 255, 0.55);
	transform: translateY(-3px);
	box-shadow: 0 14px 34px -16px var(--glow), 0 6px 18px rgba(0, 0, 0, 0.45);
}

a.tg-banners__item::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 55%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
	animation: tg-sheen 5.4s ease-in-out infinite;
}

a.tg-banners__item:nth-child(2)::after { animation-delay: 1.1s; }
a.tg-banners__item:nth-child(3)::after { animation-delay: 2.2s; }

.tg-banners__img {
	display: block;
	width: 100%;
	height: auto;
}

.tg-section {
	padding: 32px 0;
}

.tg-section__title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 20px;
}

.tg-section__title::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 12px var(--accent);
	flex-shrink: 0;
	animation: tg-pulse 2.4s ease-in-out infinite;
}

.tg-section__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--line), transparent);
}

/* -------------------------------------------------------------------------
   5. Ortak kart parçaları
   ------------------------------------------------------------------------- */

.tg-logo {
	display: block;
	border-radius: var(--radius-img);
	object-fit: cover;
	background: var(--panel-2);
	border: 1px solid var(--line);
	flex-shrink: 0;
}

.tg-logo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, var(--accent), var(--accent-3));
	text-transform: uppercase;
}

/* Butonlar */

.tg-btn {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: var(--radius-btn);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	background: linear-gradient(135deg, var(--accent), var(--accent-3));
	color: var(--accent-ink);
	border: 1px solid transparent;
	cursor: pointer;
	box-shadow: 0 4px 18px -6px var(--glow);
	transition: filter 200ms ease, transform 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
	animation: tg-breathe 3.6s ease-in-out infinite;
}

.tg-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 55%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
	animation: tg-sheen 3.6s ease-in-out infinite;
}

/* Parlamalar senkron yanmasın diye kademeli gecikme */
.tg-grid > .tg-card:nth-child(2) .tg-btn,
.tg-grid > .tg-card:nth-child(2) .tg-btn::after,
.tg-rows > .tg-listrow:nth-child(2) .tg-btn,
.tg-rows > .tg-listrow:nth-child(2) .tg-btn::after { animation-delay: 0.6s; }

.tg-grid > .tg-card:nth-child(3) .tg-btn,
.tg-grid > .tg-card:nth-child(3) .tg-btn::after,
.tg-rows > .tg-listrow:nth-child(3) .tg-btn,
.tg-rows > .tg-listrow:nth-child(3) .tg-btn::after { animation-delay: 1.2s; }

.tg-rows > .tg-listrow:nth-child(4) .tg-btn,
.tg-rows > .tg-listrow:nth-child(4) .tg-btn::after { animation-delay: 1.8s; }

.tg-btn__arrow {
	animation: tg-nudge 3.6s ease-in-out infinite;
}

.tg-btn:hover,
.tg-btn:focus-visible {
	filter: brightness(1.15);
	transform: translateY(-1px);
	color: var(--accent-ink);
}

.tg-btn__arrow {
	font-size: 0.85em;
	line-height: 1;
}

.tg-btn--outline {
	background: transparent;
	color: var(--text);
	border-color: var(--line);
	box-shadow: none;
	animation: tg-border-pulse 4.2s ease-in-out infinite;
}

.tg-btn--outline:hover,
.tg-btn--outline:focus-visible {
	background: rgba(110, 123, 255, 0.1);
	color: var(--accent-2);
	border-color: rgba(110, 123, 255, 0.55);
	filter: none;
	box-shadow: 0 6px 20px -8px var(--glow);
}

.tg-btn--block {
	width: 100%;
}

.tg-btn--lg {
	min-height: 52px;
	padding: 14px 28px;
	font-size: 1.05rem;
}

/* -------------------------------------------------------------------------
   6. Öne çıkan kart ızgarası
   ------------------------------------------------------------------------- */

.tg-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.tg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	padding: 20px;
	transition: background 250ms ease, border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
	animation: tg-fade-up 0.55s ease backwards;
}

.tg-card::before,
.tg-listrow::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--radius-card);
	pointer-events: none;
	opacity: 0;
	transition: opacity 300ms ease;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 123, 255, 0.14), transparent 65%);
}

.tg-card:hover::before,
.tg-listrow:hover::before {
	opacity: 1;
}

.tg-card::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: var(--radius-card);
	pointer-events: none;
	border: 1px solid transparent;
	background: linear-gradient(135deg, rgba(110, 123, 255, 0.55), transparent 38%, transparent 62%, rgba(167, 139, 250, 0.4)) border-box;
	-webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	opacity: 0.35;
	animation: tg-ring 4.5s ease-in-out infinite;
}

.tg-grid > .tg-card:nth-child(2)::after { animation-delay: 0.8s; }
.tg-grid > .tg-card:nth-child(3)::after { animation-delay: 1.6s; }

.tg-card:hover {
	background: var(--panel-2);
	border-color: var(--line-strong);
	transform: translateY(-4px);
	box-shadow: 0 14px 36px -14px var(--glow), 0 6px 20px rgba(0, 0, 0, 0.45);
}

.tg-card:hover::after {
	animation: none;
	opacity: 1;
}

.tg-card:hover .tg-card__logo {
	box-shadow: 0 0 22px var(--glow);
	border-color: rgba(110, 123, 255, 0.5);
}

.tg-grid > .tg-card:nth-child(1) { animation-delay: 0.05s; }
.tg-grid > .tg-card:nth-child(2) { animation-delay: 0.12s; }
.tg-grid > .tg-card:nth-child(3) { animation-delay: 0.19s; }
.tg-grid > .tg-card:nth-child(4) { animation-delay: 0.26s; }
.tg-grid > .tg-card:nth-child(5) { animation-delay: 0.33s; }
.tg-grid > .tg-card:nth-child(n+6) { animation-delay: 0.4s; }

.tg-card__banner {
	display: block;
	width: calc(100% + 40px);
	margin: -20px -20px 16px -20px;
	border-radius: var(--radius-card) var(--radius-card) 0 0;
	overflow: hidden;
	position: relative;
	max-height: 200px;
}

.tg-card__banner img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.tg-card__logo {
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	font-size: 1.6rem;
	transition: box-shadow 250ms ease, border-color 250ms ease;
	animation: tg-bob 5s ease-in-out infinite;
}

.tg-grid > .tg-card:nth-child(2) .tg-card__logo { animation-delay: 0.7s; }
.tg-grid > .tg-card:nth-child(3) .tg-card__logo { animation-delay: 1.4s; }

.tg-card__title {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.tg-card__title a {
	color: var(--text);
}

.tg-card__title a:hover {
	color: var(--accent-2);
}

.tg-card__desc {
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}

/* -------------------------------------------------------------------------
   7. Satır listesi
   ------------------------------------------------------------------------- */

.tg-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tg-listrow {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	padding: 16px;
	transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
	animation: tg-fade-up 0.5s ease backwards;
}

.tg-rows > .tg-listrow:nth-child(1) { animation-delay: 0.05s; }
.tg-rows > .tg-listrow:nth-child(2) { animation-delay: 0.1s; }
.tg-rows > .tg-listrow:nth-child(3) { animation-delay: 0.15s; }
.tg-rows > .tg-listrow:nth-child(4) { animation-delay: 0.2s; }
.tg-rows > .tg-listrow:nth-child(n+5) { animation-delay: 0.25s; }

.tg-listrow:hover {
	background: var(--panel-2);
	border-color: rgba(110, 123, 255, 0.45);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px -14px var(--glow), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.tg-listrow__main {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.tg-listrow__logo {
	width: 48px;
	height: 48px;
	font-size: 1.2rem;
}

.tg-listrow__body {
	min-width: 0;
	flex-grow: 1;
}

.tg-listrow__title {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 4px;
}

.tg-listrow__title a {
	color: var(--text);
}

.tg-listrow__title a:hover {
	color: var(--accent-2);
}

.tg-listrow__desc {
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tg-listrow__action {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.tg-listrow__action .tg-btn {
	width: 100%;
}

/* -------------------------------------------------------------------------
   8. Detay sayfası
   ------------------------------------------------------------------------- */

.tg-single {
	padding: 40px 0;
}

.tg-single__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 28px;
}

.tg-single__logo {
	width: 96px;
	height: 96px;
	font-size: 2.4rem;
}

.tg-single__title {
	font-size: 1.85rem;
	margin-bottom: 0;
}

.tg-single__content {
	max-width: 680px;
	color: var(--text);
	margin-top: 32px;
	margin-bottom: 32px;
}

.tg-single__content a {
	text-decoration: underline;
}

.tg-single__content img {
	border-radius: var(--radius-img);
}

/* Editörden yapıştırılan zengin içerik 320px'te düzeni kırmasın */
.tg-single__content table,
.tg-page__content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.tg-single__content td,
.tg-single__content th,
.tg-page__content td,
.tg-page__content th {
	border: 1px solid var(--line);
	padding: 8px 12px;
}

.tg-single__content pre,
.tg-page__content pre {
	max-width: 100%;
	overflow-x: auto;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-btn);
	padding: 16px;
	font-family: var(--font-mono);
	font-size: 0.88rem;
}

.tg-single__content code,
.tg-page__content code {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

.tg-single__content blockquote,
.tg-page__content blockquote {
	margin: 0 0 1em;
	padding: 4px 0 4px 16px;
	border-left: 2px solid var(--accent);
	color: var(--muted);
}

.tg-single__content iframe,
.tg-single__content video,
.tg-single__content embed,
.tg-page__content iframe,
.tg-page__content video,
.tg-page__content embed {
	max-width: 100%;
}

.tg-single__content figure,
.tg-page__content figure {
	margin: 0 0 1em;
	max-width: 100%;
}

.tg-single__content .alignleft,
.tg-page__content .alignleft {
	float: left;
	margin: 0 16px 12px 0;
	max-width: 50%;
}

.tg-single__content .alignright,
.tg-page__content .alignright {
	float: right;
	margin: 0 0 12px 16px;
	max-width: 50%;
}

.tg-single__content .aligncenter,
.tg-page__content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.tg-single__back {
	margin-top: 24px;
}

.tg-back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
	font-size: 0.95rem;
}

.tg-back:hover {
	color: var(--accent-2);
}

.tg-related {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------------------
   9. Sayfalama, boş durum, sayfa/404/arama
   ------------------------------------------------------------------------- */

.tg-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding: 24px 0 8px;
}

.tg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-btn);
	background: var(--panel);
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.9rem;
	transition: background var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
}

.tg-pagination .page-numbers:hover {
	background: var(--panel-2);
	color: var(--accent-2);
}

.tg-pagination .page-numbers.current {
	background: linear-gradient(135deg, var(--accent), var(--accent-3));
	border-color: transparent;
	color: var(--accent-ink);
	box-shadow: 0 4px 14px -4px var(--glow);
}

.tg-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--muted);
}

.tg-empty {
	text-align: center;
	background: var(--panel);
	border: 1px dashed var(--line);
	border-radius: var(--radius-card);
	padding: 48px 24px;
	margin: 32px 0;
}

.tg-empty__title {
	font-size: 1.2rem;
	margin-bottom: 8px;
}

.tg-empty p {
	color: var(--muted);
	max-width: 420px;
	margin: 0 auto 20px;
}

.tg-page {
	padding: 40px 0 56px;
	max-width: 680px;
}

.tg-page__title {
	font-size: 1.75rem;
	margin-bottom: 24px;
}

.tg-page__content a {
	text-decoration: underline;
}

.tg-404 {
	text-align: center;
	padding: 72px 0;
}

.tg-404__code {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	color: var(--muted);
	margin-bottom: 12px;
	display: block;
}

.tg-404 .tg-hero__sub {
	margin: 0 auto 28px;
}

.tg-404__search {
	max-width: 480px;
	margin: 32px auto 0;
}

.tg-404__search .tg-search-form,
.tg-empty__form .tg-search-form {
	margin: 0 auto;
}

.tg-empty__form {
	max-width: 480px;
	margin: 0 auto;
}

.tg-search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
}

.tg-search-form input[type="search"] {
	flex-grow: 1;
	min-width: 0;
	min-height: 44px;
	padding: 10px 14px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-btn);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.95rem;
	-webkit-appearance: none;
	appearance: none;
}

.tg-search-form input[type="search"]::-webkit-search-decoration,
.tg-search-form input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.tg-search-form input[type="search"]::placeholder {
	color: var(--muted);
}

.tg-search-form input[type="search"]:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--accent);
}

.tg-search-meta {
	color: var(--muted);
	margin-bottom: 24px;
}

.tg-plainrow {
	display: block;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	padding: 16px;
	color: var(--text);
}

.tg-plainrow:hover {
	background: var(--panel-2);
	color: var(--accent-2);
}

.tg-plainrow__type {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--muted);
	display: block;
	margin-bottom: 4px;
}

/* -------------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------------- */

.tg-footer {
	border-top: 1px solid var(--line);
	margin-top: 48px;
	padding: 28px 0;
}

.tg-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	color: var(--muted);
	font-size: 0.88rem;
}

.tg-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
}

.tg-footer a:hover {
	color: var(--accent-2);
}

/* -------------------------------------------------------------------------
   10.5 Mobil düzen (Varyant C — editoryal 2'li ızgara):
   ilk öne çıkan tam genişlik manşet; kalan kartlar ve tüm liste
   2 kolon mini kart (logo → domain → isim → açıklama → mini buton)
   ------------------------------------------------------------------------- */

@media (max-width: 639.98px) {
	.tg-grid,
	.tg-rows {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	/* Yalnız ilk öne çıkan tam genişlik manşet kart */
	.tg-grid > .tg-card:first-child {
		grid-column: 1 / -1;
	}

	/* 2. karttan itibaren ve tüm liste: sola hizalı mini kart */
	.tg-grid > .tg-card:nth-child(n+2),
	.tg-listrow {
		padding: 14px;
	}

	.tg-listrow {
		gap: 0;
	}

	.tg-listrow__main {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		flex-grow: 1;
	}

	.tg-grid > .tg-card:nth-child(n+2) .tg-card__logo,
	.tg-listrow__logo {
		width: 40px;
		height: 40px;
		margin: 0 0 10px;
		font-size: 1rem;
	}

	.tg-grid > .tg-card:nth-child(n+2) .tg-card__title,
	.tg-listrow__title {
		font-size: 0.9rem;
		margin: 0 0 4px;
	}

	.tg-grid > .tg-card:nth-child(n+2) .tg-card__desc,
	.tg-listrow__desc {
		-webkit-line-clamp: 2;
		font-size: 0.74rem;
		line-height: 1.45;
		margin: 0 0 10px;
	}

	.tg-grid > .tg-card:nth-child(n+2) .tg-btn {
		width: 100%;
		min-height: 36px;
		padding: 6px 10px;
		font-size: 0.78rem;
	}

	.tg-listrow__action {
		width: 100%;
		margin-top: auto;
	}

	.tg-listrow__action .tg-btn {
		width: 100%;
		min-height: 36px;
		padding: 6px 10px;
		font-size: 0.78rem;
	}
}

/* -------------------------------------------------------------------------
   11. Kırılma noktaları (mobile-first)
   ------------------------------------------------------------------------- */

@media (min-width: 640px) {
	.tg-banners {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
		margin: 32px 0 8px;
	}

	:root {
		--gutter: 24px;
	}

	.tg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tg-listrow {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
	}

	.tg-listrow__action .tg-btn {
		width: auto;
	}

	.tg-single__head {
		flex-direction: row;
		align-items: center;
	}

	.tg-single__logo {
		width: 128px;
		height: 128px;
	}

	.tg-footer__inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

@media (min-width: 900px) {
	.tg-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tg-nav-toggle {
		display: none;
	}

	.tg-nav {
		display: block;
		position: static;
		background: transparent;
		border: 0;
		padding: 0;
	}

	.tg-nav ul {
		flex-direction: row;
		gap: 4px;
	}

	.tg-nav a {
		min-height: 44px;
		padding: 8px 14px;
	}

	.tg-hero {
		padding: 56px 0 16px;
	}

	.tg-section {
		padding: 40px 0;
	}
}

@media (min-width: 1200px) {
	.tg-grid {
		gap: 20px;
	}
}

/* -------------------------------------------------------------------------
   12. Yazdırma
   ------------------------------------------------------------------------- */

@media print {
	:root {
		--bg: #ffffff;
		--panel: #ffffff;
		--panel-2: #f2f3f5;
		--line: #c9ced6;
		--text: #111318;
		--muted: #4b5563;
	}

	body {
		background: #ffffff;
		color: #111318;
	}

	.tg-header,
	.tg-footer,
	.tg-nav-toggle,
	.tg-pagination,
	.skip-link {
		display: none !important;
	}

	.tg-card,
	.tg-listrow {
		break-inside: avoid;
	}

	.tg-btn {
		border: 1px solid #111318;
		background: none;
		color: #111318;
	}

	a[href^="http"]:not(.tg-btn)::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #4b5563;
	}
}
