/* YH Tweet Grid */
.yhtg-grid {
	--yhtg-cols: 3;
	--yhtg-bg: #ffffff;
	--yhtg-fg: #0f1419;
	--yhtg-muted: #536471;
	--yhtg-border: #e6ecf0;
	--yhtg-link: #1d9bf0;
	--yhtg-hover: rgba(15, 20, 25, .08);

	display: grid;
	grid-template-columns: repeat(var(--yhtg-cols), minmax(0, 1fr));
	gap: 20px;
	margin: 24px 0;
	align-items: start;
}

.yhtg-grid.yhtg-theme-dark {
	--yhtg-bg: #15202b;
	--yhtg-fg: #e7e9ea;
	--yhtg-muted: #8b98a5;
	--yhtg-border: #2f3b47;
	--yhtg-hover: rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
	.yhtg-grid.yhtg-theme-auto {
		--yhtg-bg: #15202b;
		--yhtg-fg: #e7e9ea;
		--yhtg-muted: #8b98a5;
		--yhtg-border: #2f3b47;
		--yhtg-hover: rgba(0, 0, 0, .35);
	}
}

/* Duyarlı kırılımlar */
@media (max-width: 900px) {
	.yhtg-grid:not(.yhtg-cols-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.yhtg-grid { grid-template-columns: 1fr !important; gap: 14px; }
}

/* Kart */
.yhtg-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: var(--yhtg-bg);
	color: var(--yhtg-fg);
	border: 1px solid var(--yhtg-border);
	border-radius: 16px;
	font-size: 15px;
	line-height: 1.5;
	transition: box-shadow .2s ease, transform .2s ease;
	box-sizing: border-box;
	min-width: 0;
}
.yhtg-card:hover {
	box-shadow: 0 6px 20px var(--yhtg-hover);
	transform: translateY(-2px);
}

.yhtg-card a { color: var(--yhtg-link); text-decoration: none; }
.yhtg-card a:hover { text-decoration: underline; }

.yhtg-head { display: flex; align-items: center; }
.yhtg-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.yhtg-card .yhtg-author:hover { text-decoration: none; }
.yhtg-avatar {
	width: 44px; height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	margin: 0 !important;
}
.yhtg-names { display: flex; flex-direction: column; min-width: 0; }
.yhtg-name {
	font-weight: 700;
	color: var(--yhtg-fg);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yhtg-handle { color: var(--yhtg-muted); font-size: 14px; }

.yhtg-text {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.yhtg-media {
	position: relative;
	display: block;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--yhtg-border);
}
.yhtg-media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: cover;
	margin: 0 !important;
}
.yhtg-video::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 56px; height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(29, 155, 240, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
}

.yhtg-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--yhtg-border);
	font-size: 13px;
	color: var(--yhtg-muted);
}
.yhtg-card .yhtg-date { color: var(--yhtg-muted); }
.yhtg-metrics { display: flex; gap: 14px; }
.yhtg-metrics span { display: inline-flex; align-items: center; gap: 4px; }
.yhtg-metrics svg { flex-shrink: 0; }

/* Manuel (gömülü) mod */
.yhtg-embed { min-width: 0; }
.yhtg-embed .twitter-tweet { margin: 0 !important; max-width: 100% !important; }
.yhtg-embed-fallback { align-items: center; justify-content: center; min-height: 120px; }

/* Yönetici uyarıları */
.yhtg-notice {
	padding: 12px 16px;
	margin: 16px 0;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #3c434a;
	font-size: 14px;
}
.yhtg-span { grid-column: 1 / -1; margin: 0; }
