/* BKForum Social Flow — Threads shell (PC + mobile) */

/* ========== Page chrome: only on /akis ========== */
body[data-template='bkf_sf_index'] {
	background: #0A0A0A !important;
	color: #F5F5F5;
}

body[data-template='bkf_sf_index'] .p-pageWrapper,
body[data-template='bkf_sf_index'] .p-body,
body[data-template='bkf_sf_index'] .p-body-inner,
body[data-template='bkf_sf_index'] .p-body-main,
body[data-template='bkf_sf_index'] .p-body-contentColumn,
body[data-template='bkf_sf_index'] .p-body-content,
body[data-template='bkf_sf_index'] .p-body-pageContent {
	background: #0A0A0A !important;
	max-width: none !important;
	width: 100% !important;
	min-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	box-sizing: border-box !important;
	display: block !important;
}

body[data-template='bkf_sf_index'] .p-body,
body[data-template='bkf_sf_index'] .p-body-inner,
body[data-template='bkf_sf_index'] .p-pageWrapper {
	display: flex !important;
	flex-direction: column !important;
}

/* Forum mobil alt menü /akis'te yok — kendi Threads bar'ımız var */
body[data-template='bkf_sf_index'] .bkf-mobileNav,
body[data-template='bkf_sf_index'] .bkf-mobileSheet,
body[data-template='bkf_sf_index'] .bkf-mobileBackdrop,
body[data-template='bkf_sf_index'] .bkf-quickSheet,
body[data-template='bkf_sf_index'] .offCanvasMenu {
	display: none !important;
}

body[data-template='bkf_sf_index'] .p-header,
body[data-template='bkf_sf_index'] .p-nav,
body[data-template='bkf_sf_index'] .p-navSticky,
body[data-template='bkf_sf_index'] .p-sectionLinks,
body[data-template='bkf_sf_index'] .p-body-header,
body[data-template='bkf_sf_index'] .p-breadcrumbs,
body[data-template='bkf_sf_index'] .p-title,
body[data-template='bkf_sf_index'] .p-description,
body[data-template='bkf_sf_index'] .p-body-sidebar,
body[data-template='bkf_sf_index'] .p-body-sideNav,
body[data-template='bkf_sf_index'] .p-footer,
body[data-template='bkf_sf_index'] .p-staffBar,
body[data-template='bkf_sf_index'] .notices,
body[data-template='bkf_sf_index'] .notice,
body[data-template='bkf_sf_index'] .block-outer,
body[data-template='bkf_sf_index'] .u-bottomFixer,
body[data-template='bkf_sf_index'] .u-navButtons,
body[data-template='bkf_sf_index'] a.button.bkf-fabThread,
body[data-template='bkf_sf_index'] .bkf-newsTicker,
body[data-template='bkf_sf_index'] .p-titleRow {
	display: none !important;
}

body[data-template='bkf_sf_index'] .p-body-main--withSidebar,
body[data-template='bkf_sf_index'] .p-body-main {
	display: block !important;
}

/* ========== App shell ========== */
.bkfSf {
	--bkf-sf-bg: #0A0A0A;
	--bkf-sf-surface: #181818;
	--bkf-sf-divider: #2A2A2A;
	--bkf-sf-text: #F5F5F5;
	--bkf-sf-muted: #A1A1AA;
	--bkf-sf-accent: #F5F5F5;
	--bkf-sf-rail: 72px;
	--bkf-sf-col: 680px;
	--bkf-sf-nav-h: 56px;

	box-sizing: border-box;
	width: 100%;
	max-width: var(--bkf-sf-col);
	margin: 0 auto;
	min-height: 100vh;
	padding: 0 0 72px;
	color: var(--bkf-sf-text);
	background: var(--bkf-sf-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: relative;
}

.bkfSf *,
.bkfSf *::before,
.bkfSf *::after { box-sizing: border-box; }

@media (min-width: 900px) {
	.bkfSf {
		width: 100% !important;
		max-width: none !important;
		min-width: 100%;
		padding-bottom: 0;
		display: flex;
		justify-content: center;
		align-items: stretch;
		gap: 0;
		min-height: 100vh;
	}

	.bkfSf-rail {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding: 16px 0 20px;
		position: sticky;
		top: 0;
		height: 100vh;
		width: var(--bkf-sf-rail);
		flex: 0 0 var(--bkf-sf-rail);
		border-right: 1px solid var(--bkf-sf-divider);
		background: var(--bkf-sf-bg);
		z-index: 5;
	}

	.bkfSf-main {
		width: var(--bkf-sf-col);
		max-width: var(--bkf-sf-col);
		flex: 0 0 var(--bkf-sf-col);
		border-right: 1px solid var(--bkf-sf-divider);
		border-left: 0;
		min-height: 100vh;
		background: var(--bkf-sf-bg);
	}

	.bkfSf-bottom { display: none !important; }
}

@media (max-width: 899px) {
	.bkfSf-rail { display: none !important; }
	.bkfSf-main { width: 100%; }
	.bkfSf {
		max-width: 100%;
		width: 100%;
		padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	}
}

.bkfSf-railLink {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bkf-sf-text);
	text-decoration: none;
	transition: background .15s ease;
}
.bkfSf-railLink:hover { background: var(--bkf-sf-surface); }
.bkfSf-railLink.is-active { background: var(--bkf-sf-surface); }
.bkfSf-railLink svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}
.bkfSf-railPost {
	margin-top: auto;
	margin-bottom: 24px;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 999px;
	background: var(--bkf-sf-accent);
	color: #0A0A0A;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	font-weight: 300;
	flex-shrink: 0;
}

/* ========== Mobile bottom bar (Threads) ========== */
.bkfSf-bottom {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 11000;
	height: calc(56px + env(safe-area-inset-bottom, 0px));
	padding: 0 8px env(safe-area-inset-bottom, 0px);
	box-sizing: border-box;
	background: rgba(10, 10, 10, .92);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-top: 1px solid var(--bkf-sf-divider);
	align-items: center;
	justify-content: space-around;
}
@media (max-width: 899px) {
	.bkfSf-bottom { display: flex; }
}
.bkfSf-bottomLink,
.bkfSf-bottomPost {
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--bkf-sf-text);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.bkfSf-bottomLink svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}
.bkfSf-bottomLink.is-active { opacity: 1; }
.bkfSf-bottomLink:not(.is-active) { opacity: .72; }
.bkfSf-bottomPost {
	width: 44px;
	height: 44px;
	background: var(--bkf-sf-accent);
	color: #0A0A0A;
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
	opacity: 1;
}

.bkfSf-top {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(10, 10, 10, .88);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--bkf-sf-divider);
	padding: 10px 16px 0;
}

.bkfSf-brand {
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .01em;
	margin-bottom: 6px;
}

.bkfSf-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.bkfSf-tab {
	appearance: none;
	background: none;
	border: 0;
	color: var(--bkf-sf-muted);
	font-size: 15px;
	font-weight: 600;
	padding: 12px 4px 14px;
	cursor: pointer;
	position: relative;
}
.bkfSf-tab.is-active { color: var(--bkf-sf-text); }
.bkfSf-tab.is-active:after {
	content: "";
	position: absolute;
	left: 22%;
	right: 22%;
	bottom: 0;
	height: 2px;
	background: var(--bkf-sf-accent);
	border-radius: 2px;
}
.bkfSf-tab:disabled { opacity: .4; cursor: default; }

.bkfSf-quick {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--bkf-sf-divider);
	background: transparent;
	color: var(--bkf-sf-muted);
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	min-height: 64px;
}
.bkfSf-quick:hover { background: rgba(255,255,255,.03); }
.bkfSf-quickAv .avatar,
.bkfSf-quickAv img,
.bkfSf-quickAv .avatar img {
	width: 36px !important;
	height: 36px !important;
	border-radius: 999px;
	display: block;
}
.bkfSf-quickPh { font-size: 15px; flex: 1; }
.bkfSf-quickGo {
	color: var(--bkf-sf-text);
	font-size: 13px;
	font-weight: 600;
	opacity: .55;
}

.bkfSf-feed { min-height: 40vh; }

.bkfSf-item {
	display: flex;
	gap: 12px;
	padding: 14px 16px 10px;
	border-bottom: 1px solid var(--bkf-sf-divider);
	box-shadow: none;
	background: transparent;
}
.bkfSf-item:hover { background: rgba(255,255,255,.02); }
.bkfSf-item.is-insert { animation: bkfSfInsert 200ms ease-out; }
@keyframes bkfSfInsert {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

.bkfSf-av {
	flex: 0 0 36px;
	width: 36px;
	text-decoration: none;
}
.bkfSf-av .avatar,
.bkfSf-av img,
.bkfSf-av .avatar img {
	width: 36px !important;
	height: 36px !important;
	border-radius: 999px;
	display: block;
}
.bkfSf-avFallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: #2A2A2A;
	color: #F5F5F5;
	font-weight: 700;
	font-size: 14px;
}

.bkfSf-body { flex: 1; min-width: 0; }
.bkfSf-meta {
	display: flex;
	gap: 8px;
	align-items: baseline;
	margin-bottom: 4px;
	flex-wrap: wrap;
}
.bkfSf-name {
	color: var(--bkf-sf-text);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.bkfSf-name:hover { text-decoration: underline; }
.bkfSf-time {
	color: var(--bkf-sf-muted);
	font-size: 14px;
	font-weight: 400;
}
.bkfSf-text {
	font-size: 15px;
	line-height: 1.4;
	color: var(--bkf-sf-text);
	white-space: pre-wrap;
	word-break: break-word;
}

.bkfSf-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 420px;
	margin-top: 6px;
	margin-left: -8px;
}
.bkfSf-act {
	appearance: none;
	background: none;
	border: 0;
	color: var(--bkf-sf-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px;
	min-width: 44px;
	min-height: 44px;
	cursor: pointer;
	font-size: 13px;
	border-radius: 999px;
}
.bkfSf-act:hover { background: rgba(255,255,255,.06); color: var(--bkf-sf-text); }
.bkfSf-act.is-disabled,
.bkfSf-act:disabled {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}
.bkfSf-act svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bkfSf-act--like.is-on {
	color: var(--bkf-sf-accent);
}
.bkfSf-act--like.is-on svg { fill: currentColor; }
.bkfSf-act--like.is-pop svg {
	animation: bkfSfLike 120ms ease-out;
}
@keyframes bkfSfLike {
	0% { transform: scale(1); }
	50% { transform: scale(1.14); }
	100% { transform: scale(1); }
}
.bkfSf-actCount:empty,
.bkfSf-actCount[data-zero="1"] { display: none; }
.bkfSf-actCount {
	font-variant-numeric: tabular-nums;
}

.bkfSf-empty {
	padding: 72px 24px;
	text-align: center;
}
.bkfSf-emptyTitle { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.bkfSf-emptyHint { color: var(--bkf-sf-muted); margin-bottom: 20px; font-size: 15px; }
.bkfSf-emptyCta {
	appearance: none;
	border: 0;
	background: var(--bkf-sf-accent);
	color: #0A0A0A;
	font-weight: 700;
	border-radius: 999px;
	padding: 12px 22px;
	cursor: pointer;
	font-size: 15px;
}

.bkfSf-composer[hidden],
.bkfSf-drawer[hidden],
.bkfSf-scrim[hidden],
.bkfSf-drawerScrim[hidden] {
	display: none !important;
	pointer-events: none !important;
}

.bkfSf-scrim,
.bkfSf-drawerScrim {
	position: fixed;
	inset: 0;
	z-index: 12050;
	background: rgba(0,0,0,.62);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 220ms ease-out;
}
.bkfSf-scrim.is-open,
.bkfSf-drawerScrim.is-open { opacity: 1; }

.bkfSf-composer {
	position: fixed;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 110%);
	width: 100%;
	max-width: 680px;
	max-height: 92vh;
	z-index: 12060;
	background: var(--bkf-sf-bg);
	border-radius: 32px 32px 0 0;
	display: flex;
	flex-direction: column;
	transition: transform 240ms ease-out;
	padding-bottom: 0;
	border: 1px solid var(--bkf-sf-divider);
	border-bottom: 0;
}
.bkfSf-composer.is-open { transform: translate(-50%, 0); }

@media (min-width: 900px) {
	.bkfSf-composer {
		top: 10vh;
		bottom: auto;
		transform: translate(-50%, 12px);
		opacity: 0;
		pointer-events: none;
		border-radius: 24px;
		border: 1px solid var(--bkf-sf-divider);
		max-height: 80vh;
		transition: opacity 200ms ease-out, transform 240ms ease-out;
	}
	.bkfSf-composer.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: translate(-50%, 0);
	}
}

.bkfSf-composerHead {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid var(--bkf-sf-divider);
}
.bkfSf-composerCancel {
	appearance: none;
	background: none;
	border: 0;
	color: var(--bkf-sf-text);
	font-size: 15px;
	cursor: pointer;
	justify-self: start;
	padding: 6px 0;
}
.bkfSf-composerTitle { font-weight: 700; font-size: 16px; text-align: center; }
.bkfSf-composerBody {
	display: flex;
	gap: 12px;
	padding: 16px;
	flex: 1;
	overflow: auto;
}
.bkfSf-composerAv .avatar,
.bkfSf-composerAv img {
	width: 40px !important;
	height: 40px !important;
	border-radius: 999px;
}
.bkfSf-composerMain { flex: 1; min-width: 0; }
.bkfSf-composerUser { font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.bkfSf-composerInput {
	width: 100%;
	min-height: 96px;
	resize: none;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--bkf-sf-text);
	font-size: 16px;
	line-height: 1.4;
	padding: 0;
	caret-color: #fff;
}
.bkfSf-composerTools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}
.bkfSf-tool {
	appearance: none;
	border: 1px solid var(--bkf-sf-divider);
	background: transparent;
	color: var(--bkf-sf-text);
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.bkfSf-tool:hover { background: rgba(255,255,255,.06); }
.bkfSf-tool:disabled { opacity: .4; cursor: default; }
.bkfSf-mediaPreview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 8px;
	margin-top: 12px;
}
.bkfSf-mediaPreview[hidden] { display: none !important; }
.bkfSf-mediaThumb {
	position: relative;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	background: #111;
	border: 1px solid var(--bkf-sf-divider);
}
.bkfSf-mediaThumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bkfSf-mediaRemove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 999px;
	background: rgba(0,0,0,.7);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}
.bkfSf-emojiPanel {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 4px;
	margin-top: 12px;
	padding: 10px;
	border: 1px solid var(--bkf-sf-divider);
	border-radius: 16px;
	background: #121212;
}
.bkfSf-emojiPanel[hidden] { display: none !important; }
.bkfSf-emoji {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1.2;
	cursor: pointer;
	border-radius: 8px;
	padding: 4px 0;
}
.bkfSf-emoji:hover { background: rgba(255,255,255,.08); }
.bkfSf-media {
	display: grid;
	gap: 6px;
	margin-top: 10px;
	border-radius: 16px;
	overflow: hidden;
}
.bkfSf-media[data-count="1"] { grid-template-columns: 1fr; }
.bkfSf-media[data-count="2"] { grid-template-columns: 1fr 1fr; }
.bkfSf-media[data-count="3"],
.bkfSf-media[data-count="4"] { grid-template-columns: 1fr 1fr; }
.bkfSf-mediaItem {
	display: block;
	background: #111;
	min-height: 120px;
	max-height: 420px;
}
.bkfSf-mediaItem img {
	width: 100%;
	height: 100%;
	max-height: 420px;
	object-fit: cover;
	display: block;
}
.bkfSf-composerFoot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px 18px;
	border-top: 1px solid var(--bkf-sf-divider);
}
.bkfSf-composerPolicy { color: var(--bkf-sf-muted); font-size: 13px; }
.bkfSf-share {
	appearance: none;
	border: 0;
	background: var(--bkf-sf-accent);
	color: #0A0A0A;
	font-weight: 700;
	border-radius: 999px;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 15px;
	transition: opacity 120ms ease;
}
.bkfSf-share.is-empty,
.bkfSf-share:disabled {
	opacity: .4;
	cursor: default;
}

/* ========== Drawer ========== */
.bkfSf-drawer {
	position: fixed;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 110%);
	width: 100%;
	max-width: 680px;
	max-height: 82vh;
	z-index: 12070;
	background: rgba(18,18,18,.98);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border-radius: 32px 32px 0 0;
	display: flex;
	flex-direction: column;
	transition: transform 220ms ease-out;
	padding-bottom: 0;
	border: 1px solid var(--bkf-sf-divider);
	border-bottom: 0;
}
.bkfSf-drawer.is-open { transform: translate(-50%, 0); }
.bkfSf-drawerHandle {
	width: 40px;
	height: 4px;
	border-radius: 999px;
	background: #3F3F46;
	margin: 10px auto 4px;
}
.bkfSf-drawerHead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px 12px;
	font-weight: 700;
	font-size: 16px;
	border-bottom: 1px solid var(--bkf-sf-divider);
}
.bkfSf-drawerClose {
	appearance: none;
	background: none;
	border: 0;
	color: var(--bkf-sf-muted);
	font-size: 18px;
	cursor: pointer;
	width: 40px;
	height: 40px;
}
.bkfSf-drawerList {
	flex: 1;
	overflow: auto;
	padding: 4px 0;
	-webkit-overflow-scrolling: touch;
}
.bkfSf-drawerLoading,
.bkfSf-drawerEmpty {
	padding: 28px 16px;
	text-align: center;
	color: var(--bkf-sf-muted);
	font-size: 14px;
}
.bkfSf-reply {
	display: flex;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--bkf-sf-divider);
}
.bkfSf-drawerComposer {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	padding: 12px 16px 16px;
	border-top: 1px solid var(--bkf-sf-divider);
	background: #0A0A0A;
}
.bkfSf-drawerInput {
	flex: 1;
	min-height: 44px;
	max-height: 120px;
	resize: none;
	border: 1px solid var(--bkf-sf-divider);
	border-radius: 20px;
	background: #151515;
	color: var(--bkf-sf-text);
	padding: 12px 14px;
	font-size: 15px;
	outline: none;
}
.bkfSf-drawerSend {
	appearance: none;
	border: 0;
	background: var(--bkf-sf-accent);
	color: #0A0A0A;
	font-weight: 700;
	border-radius: 999px;
	padding: 12px 16px;
	cursor: pointer;
	font-size: 14px;
}
.bkfSf-drawerSend:disabled { opacity: .4; cursor: default; }

/* keyboard / mobile visual viewport */
body[data-template='bkf_sf_index'].bkf-sf-composer-open,
body[data-template='bkf_sf_index'].bkf-sf-drawer-open {
	overflow: hidden;
}
