/* Nowoczesna karta autora w stylu IPS ze wstążką ONLINE/OFFLINE i separacją ostrzeżeń (Nedds24.pl) */
.post.classic.nedds-post {
	display: grid !important;
	grid-template-columns: 265px 1fr !important;
	background: #14161a !important;
	border: 1px solid #2a2d36 !important;
	border-radius: 12px !important;
	overflow: hidden;
	margin-bottom: 20px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Lewy panel autora z przycięciem krawędzi dla ukośnej wstążki */
.post.classic.nedds-post .nedds-author-card {
	float: none !important;
	width: auto !important;
	background: #16181e !important;
	border-right: 1px solid rgba(226, 184, 121, 0.22) !important;
	padding: 0 14px 16px 14px !important;
	text-align: center !important;
	position: relative;
	overflow: hidden;
}

/* Ukośna wstążka ONLINE / OFFLINE w lewym górnym rogu */
.nedds-author-ribbon {
	position: absolute;
	top: 14px;
	left: -32px;
	width: 115px;
	transform: rotate(-45deg);
	z-index: 5;
	text-align: center;
	font-size: 9.5px;
	font-weight: bold;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 3px 0;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
	pointer-events: none;
}

.nedds-author-ribbon img {
	display: none !important;
}

.nedds-author-ribbon:has(img[src*="online"]) {
	background: linear-gradient(90deg, #059669 0%, #10b981 100%);
	color: #ffffff;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nedds-author-ribbon:has(img[src*="online"])::after {
	content: "ONLINE";
}

.nedds-author-ribbon:has(img[src*="offline"]),
.nedds-author-ribbon:not(:has(img[src*="online"])) {
	background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 100%);
	color: #fecaca;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.nedds-author-ribbon:has(img[src*="offline"])::after,
.nedds-author-ribbon:not(:has(img[src*="online"]))::after {
	content: "OFFLINE";
}

/* Mini-okładka u góry karty autora */
.nedds-author-cover {
	height: 76px;
	margin: 0 -14px;
	background:
		radial-gradient(circle at 50% 35%, rgba(226, 184, 121, 0.25) 0%, transparent 70%),
		linear-gradient(180deg, rgba(24, 27, 34, 0.2) 0%, #16181e 100%),
		url(../../../images/cover_bg.jpg) center center / cover no-repeat,
		#20232b;
	border-bottom: 1px solid rgba(226, 184, 121, 0.25);
}

/* Avatar zachodzący na okładkę */
.nedds-author-avatar-wrap {
	position: relative;
	display: inline-block;
	margin-top: -48px;
	margin-bottom: 8px;
	z-index: 2;
}

.nedds-author-avatar-wrap .author_avatar img,
.nedds-author-avatar-wrap > a > img {
	width: 96px !important;
	height: 96px !important;
	object-fit: cover;
	border-radius: 16px !important;
	border: 3px solid #16181e !important;
	box-shadow: 0 0 0 2px #e2b879, 0 6px 18px rgba(0, 0, 0, 0.75) !important;
	background: #16181e !important;
	transition: transform 0.25s ease;
}

.nedds-author-avatar-wrap .author_avatar img:hover,
.nedds-author-avatar-wrap > a > img:hover {
	transform: scale(1.03);
}

/* Nick, tytuł i ranga */
.nedds-author-name {
	font-size: 18px;
	font-weight: bold;
	line-height: 1.25;
	margin-bottom: 3px;
}

.nedds-author-title {
	font-size: 12px;
	color: #9ca3af;
	margin-bottom: 8px;
}

.nedds-author-rank {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-bottom: 12px;
}

.nedds-author-rank img {
	border: none !important;
	box-shadow: none !important;
	max-width: 100%;
}

/* Poziomy pasek 3 równych kafelków statystyk (Posty, Reputacja, Wątki) */
.nedds-author-kpi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 12px;
}

.nedds-kpi-pill {
	background: #1e2129;
	border: 1px solid #2b2f3b;
	border-radius: 8px;
	padding: 8px 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 12px;
	font-weight: bold;
	color: #f4f4f5;
	white-space: nowrap;
	overflow: hidden;
}

.nedds-kpi-pill i {
	font-size: 12px;
	flex-shrink: 0;
}

.nedds-kpi-pill a {
	color: #34d399 !important;
	text-decoration: none !important;
}

/* Osobne ciemne kafelki-pigułki na informacje publiczne */
.nedds-author-pills {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
}

.nedds-info-pill {
	display: flex;
	align-items: center;
	gap: 9px;
	background: #1c1f26;
	border: 1px solid #292d38;
	border-radius: 8px;
	padding: 7px 11px;
	font-size: 12.5px;
	color: #a1a1aa;
}

.nedds-info-pill i {
	width: 15px;
	text-align: center;
	font-size: 13px;
}

.nedds-info-pill strong {
	color: #f4f4f5;
	font-weight: bold;
}

/* Oddzielona belka poziomu ostrzeżeń na samym dole (ukrywa się sama, jeśli pusta) */
.nedds-author-mod-warn {
	margin-top: 10px;
	padding-top: 9px;
	border-top: 1px dashed rgba(244, 63, 94, 0.35);
	font-size: 11.5px;
	color: #a1a1aa;
	text-align: center;
}

.nedds-author-mod-warn:empty {
	display: none;
}

.nedds-author-mod-warn br {
	display: none;
}

/* Prawa treść posta obok karty autora */
.post.classic.nedds-post .nedds-post-content {
	float: none !important;
	width: auto !important;
	margin-left: 0 !important;
	display: flex;
	flex-direction: column;
}

.post.classic.nedds-post .post_head {
	background: linear-gradient(90deg, #1d2027 0%, #15171c 100%) !important;
	border-bottom: 1px solid rgba(226, 184, 121, 0.2) !important;
	padding: 9px 16px !important;
	font-size: 12px !important;
	color: #a1a1aa !important;
}

.post.classic.nedds-post .post_head i {
	color: #e2b879;
	margin-right: 4px;
}

.post.classic.nedds-post .post_body {
	padding: 16px 18px !important;
	line-height: 1.65 !important;
	font-size: 13.5px !important;
	flex: 1;
}

.post.classic.nedds-post .post_meta {
	padding: 6px 18px !important;
}

/* Dolny pasek przycisków na całą szerokość */
.post.classic.nedds-post .post_controls {
	grid-column: 1 / -1;
	background: #181a20 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	padding: 8px 14px !important;
}

.post.classic.nedds-post .postbit_buttons a {
	background: #22252e !important;
	border: 1px solid #323642 !important;
	border-radius: 7px !important;
	color: #e4e4e7 !important;
	transition: all 0.2s ease !important;
}

.post.classic.nedds-post .postbit_buttons a:hover {
	border-color: #e2b879 !important;
	color: #e2b879 !important;
	background: #2a2e39 !important;
}

/* Dopasowanie karty posta pod telefony (ekrany dotykowe) */
@media (hover: none) and (pointer: coarse) {
	.post.classic.nedds-post {
		grid-template-columns: 1fr !important;
	}

	.post.classic.nedds-post .nedds-author-card {
		border-right: none !important;
		border-bottom: 1px solid rgba(226, 184, 121, 0.25) !important;
	}

	.nedds-author-pills {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
}
