/* Technical Turkey — ortak bileşenler */

.tt-brand-text {
	font-family: "Geist", sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
	color: var(--bs-heading-color);
	line-height: 1;
}
.tt-brand.text-white .tt-brand-text { color: #fff; }
.navbar-brand .tt-brand-text { font-size: 1.35rem; }
@media (max-width: 575.98px) {
	.navbar-brand .tt-brand-text { font-size: 1.1rem; }
	.navbar-brand .tt-brand-mark { width: 28px; height: 28px; }
}

/* Kategori ikon kutusu */
.tt-cat-icon {
	width: 44px;
	height: 44px;
	border-radius: .6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	flex-shrink: 0;
}
.tt-cat-card { transition: transform .15s ease, box-shadow .15s ease; }
.tt-cat-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .06); }

/* Kategori SVG ikonları */
.tt-icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.125em; }
.tt-c-primary   { --tt-c: var(--bs-primary-rgb);   --tt-ink: rgb(var(--bs-primary-rgb)); }
.tt-c-info      { --tt-c: var(--bs-info-rgb);      --tt-ink: #0f8396; }
.tt-c-success   { --tt-c: var(--bs-success-rgb);   --tt-ink: #089468; }
.tt-c-warning   { --tt-c: var(--bs-warning-rgb);   --tt-ink: #b98a07; }
.tt-c-danger    { --tt-c: var(--bs-danger-rgb);    --tt-ink: rgb(var(--bs-danger-rgb)); }
.tt-c-orange    { --tt-c: var(--bs-orange-rgb);    --tt-ink: #d9650a; }
.tt-c-secondary { --tt-c: 108, 117, 125;           --tt-ink: #5f6770; }
[data-bs-theme=dark] .tt-c-info    { --tt-ink: #4cc6d9; }
[data-bs-theme=dark] .tt-c-success { --tt-ink: #3ad6a5; }
[data-bs-theme=dark] .tt-c-warning { --tt-ink: #f7c32e; }
[data-bs-theme=dark] .tt-c-orange  { --tt-ink: #ff9a45; }
[data-bs-theme=dark] .tt-c-secondary { --tt-ink: #b5bbc2; --tt-c: 181, 187, 194; }
[data-bs-theme=dark] .tt-c-primary { --tt-ink: #ff4d57; }
[data-bs-theme=dark] .tt-c-danger  { --tt-ink: #ff5f72; }
.tt-ink { color: var(--tt-ink); }

.tt-cat-tile {
	--tt-s: 44px;
	position: relative;
	width: var(--tt-s);
	height: var(--tt-s);
	border-radius: calc(var(--tt-s) * .28);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: calc(var(--tt-s) * .52);
	color: var(--tt-ink);
	background:
		radial-gradient(120% 120% at 0% 0%, rgba(var(--tt-c), .22), rgba(var(--tt-c), .07) 70%);
	box-shadow: inset 0 0 0 1px rgba(var(--tt-c), .18), 0 1px 2px rgba(var(--tt-c), .12);
	transition: transform .2s ease, box-shadow .2s ease;
}
.tt-cat-tile::after {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 45%);
	pointer-events: none;
}
[data-bs-theme=dark] .tt-cat-tile::after { background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 45%); }
.tt-cat-tile-sm { --tt-s: 32px; }
.tt-cat-tile-lg { --tt-s: 56px; }
.tt-cat-tile-xl { --tt-s: 72px; }
.tt-cat-tile .tt-icon { width: 1em; height: 1em; vertical-align: 0; position: relative; z-index: 1; }
.tt-icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.tt-icon-opt {
	display: flex; flex-direction: column; align-items: center; gap: .35rem;
	padding: .7rem .25rem .55rem; border-radius: .6rem; cursor: pointer;
	border: 1px solid var(--bs-border-color); font-size: 1.5rem; color: var(--bs-secondary-color);
	transition: border-color .15s, background-color .15s, color .15s;
}
.tt-icon-opt span { font-size: .7rem; line-height: 1.1; text-align: center; }
.tt-icon-opt:hover { color: var(--tt-ink); border-color: rgba(var(--tt-c), .4); }
.btn-check:checked + .tt-icon-opt { color: var(--tt-ink); border-color: rgb(var(--tt-c)); background: rgba(var(--tt-c), .1); }
.btn-check:focus-visible + .tt-icon-opt { box-shadow: 0 0 0 .2rem rgba(var(--tt-c), .3); }
.tt-cat-card:hover .tt-cat-tile {
	transform: translateY(-1px) rotate(-4deg);
	box-shadow: inset 0 0 0 1px rgba(var(--tt-c), .3), 0 .4rem 1rem rgba(var(--tt-c), .22);
}

/* Boş durum */
.tt-empty {
	border: 1px dashed var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
}

/* Yönetim paneli */
.tt-admin-sidebar { min-height: 100vh; }
.tt-admin-sidebar .nav-link { color: rgba(255, 255, 255, .7); border-radius: .5rem; }
.tt-admin-sidebar .nav-link:hover,
.tt-admin-sidebar .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }

/* Kullanıcı içeriği (Markdown) */
.tt-content { line-height: 1.7; overflow-wrap: anywhere; }
.tt-content > *:last-child { margin-bottom: 0; }
.tt-content h1, .tt-content h2, .tt-content h3, .tt-content h4 { font-size: 1.15rem; margin: 1.5rem 0 .75rem; }
.tt-content img { max-width: 100%; height: auto; border-radius: .5rem; }
.tt-content blockquote { border-left: 3px solid var(--bs-primary); padding: .25rem 0 .25rem 1rem; color: var(--bs-secondary-color); margin: 1rem 0; }
.tt-content :not(pre) > code { background: var(--bs-tertiary-bg); color: var(--bs-danger); padding: .1rem .35rem; border-radius: .3rem; font-size: .875em; }
.tt-content pre { position: relative; border-radius: .6rem; padding: 1rem; margin: 1rem 0; font-size: .85rem; max-height: 600px; overflow: auto; background: #282c34; }
.tt-content pre code { color: #abb2bf; background: none; padding: 0; }
.tt-content table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .9rem; display: block; overflow-x: auto; }
.tt-content th, .tt-content td { border: 1px solid var(--bs-border-color); padding: .4rem .65rem; }
.tt-copy { position: absolute; top: .5rem; right: .5rem; opacity: 0; transition: opacity .15s; font-size: .75rem; padding: .15rem .5rem; }
.tt-content pre:hover .tt-copy { opacity: 1; }

/* Beğeni butonu */
.tt-like.active { background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); border-color: transparent; }
.min-w-0 { min-width: 0; }
@media (min-width: 576px) { .tt-credit { padding-right: 64px; } }
@media (hover: none) { .tt-copy { opacity: .85; } }
