/* ============================================================
   DVZ Shoutbox — restilizat pentru tema MODENA
   Păstrează toate clasele/ID-urile funcționale ale pluginului;
   doar aspectul vizual e legat de tokenii temei (--bg, --card,
   --accent, --font-display etc.). Fără dependență de Font Awesome.
   ============================================================ */

#shoutbox {
	margin-bottom: var(--gap, 18px);
	padding: 12px;
	background: var(--card) !important;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius, 10px);
	box-shadow: var(--shadow-2);
	width: 100%;
	box-sizing: border-box;
	float: none;
}

/* ---- Head ---- */
.shoutbox .head {
	padding: 2px 2px 10px;
}
#shoutbox.front .head {
	cursor: pointer;
	padding: 2px 2px 9px;
	background: none;
	-webkit-background-clip: initial;
	-webkit-text-fill-color: currentColor;
	text-transform: uppercase;
	font-family: var(--font-display);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--accent);
	border-bottom: 1px solid var(--line-soft);
}
#shoutbox .head .right {
	float: right;
	margin: 0;
	font-size: .78rem;
	color: var(--muted);
	font-family: var(--font-body);
	letter-spacing: 0;
	text-transform: none;
}
#shoutbox .head .right a { color: var(--muted); }
#shoutbox .head .right a:hover { color: var(--accent); }
#shoutbox.collapsed .head { opacity: 0.6; }
#shoutbox.collapsed .body { display: none; }

/* ---- Input panel ---- */
#shoutbox .panel {
	position: relative;
}

/* iconița din stânga input-ului: SVG inline în loc de Font Awesome */
#shoutbox .panel:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0px;
	width: 40px;
	height: 43px;
	background: var(--raise)
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a3' stroke-width='2'><path d='M21 12a8 8 0 0 1-11.4 7.2L4 21l1.8-5.4A8 8 0 1 1 21 12Z'/></svg>")
		center / 18px no-repeat;
	border: 1px solid var(--line);
	border-right: none;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	box-sizing: border-box;
}

#shoutbox input.text {
	margin: 10px 0 8px;
	padding: 11px 16px 11px 52px;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--line);
	font-family: var(--font-body);
	font-size: .88rem;
	background: var(--bg);
	border-radius: var(--radius-sm);
	outline: none;
	color: var(--text);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
#shoutbox input.text:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}
#shoutbox input.text::placeholder {
	color: var(--muted);
	opacity: .7;
}

/* Notice-uri (min posturi / blocat) */
#shoutbox .minposts,
#shoutbox .blocked {
	padding: 10px 14px;
	font-size: .78rem;
	border-radius: var(--radius-sm);
	margin-bottom: 10px;
}
#shoutbox .panel.minposts {
	background: rgba(255, 200, 87, .12);
	border: 1px solid rgba(255, 200, 87, .4);
	color: var(--text);
}
#shoutbox .panel.blocked {
	background: rgba(255, 92, 92, .12);
	border: 1px solid rgba(255, 92, 92, .4);
	color: var(--text);
}
#shoutbox .panel p { margin: 0; }

/* ---- Fereastra cu mesaje ---- */
#shoutbox .window {
	overflow-y: auto;
	padding: 4px 2px 0;
	height: 240px !important;
	scrollbar-width: thin;
	scrollbar-color: var(--line) transparent;
}
#shoutbox .window::-webkit-scrollbar { width: 8px; }
#shoutbox .window::-webkit-scrollbar-thumb {
	background: var(--line);
	border-radius: 99px;
}
#shoutbox .window::-webkit-scrollbar-thumb:hover { background: var(--accent); }

#shoutbox .data { width: 100%; }
#shoutbox.front .data {
	border-top: none;
	margin-top: 0;
}

/* ---- Un rând (entry) — layout clasic reparat ---- */
#shoutbox .entry {
	display: flex !important;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	transition: background-color var(--dur) var(--ease);
	margin: 0;
	padding: 6px 6px;
	border-bottom: 1px solid var(--line-soft);
	gap: 9px;
}
#shoutbox .entry:last-child { border-bottom: none; }
#shoutbox .entry:nth-child(even) { background-color: rgba(255, 255, 255, .015); }
#shoutbox .entry.new { background-color: rgba(var(--accent-rgb), .08); }
#shoutbox .entry:target { background-color: rgba(var(--accent-rgb), .12); }
#shoutbox .entry > div {
	padding: 2px 4px;
	border-bottom: none;
}

/* Avatar */
#shoutbox .avatar img {
	margin: 0 auto;
	vertical-align: middle;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	max-width: 28px;
	max-height: 28px;
	border-radius: 9px;
	object-fit: cover;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-1);
	cursor: pointer;
}

#shoutbox .user {
	text-align: left;
	white-space: nowrap;
	font-weight: 600;
	font-size: .82rem;
}
#shoutbox .user a { color: var(--text); }
#shoutbox .user a:hover { color: var(--accent); }

/* Mesajul */
#shoutbox .text {
    width: 100%;
    font-family: var(--font-body);
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
    word-break: break-word;
    word-wrap: break-word;
    display: flex;
}
#shoutbox .text a { color: var(--accent-hover); }

/* Info (timp / acțiuni) */
.info {
	width: -webkit-fill-available;
	text-align: end;
	margin: 0;
}
#shoutbox .info {
	font-size: .72rem;
	color: var(--muted);
	white-space: nowrap;
	text-align: right;
	margin-left: 12px;
}
#shoutbox .entry.unread .info:before {
	display: inline-block;
	position: relative;
	top: -2px;
	margin-right: 10px;
	height: 5px;
	width: 5px;
	content: '';
	background: var(--accent);
	box-shadow: 0 0 8px var(--accent);
	border-radius: 10px;
}
#shoutbox .info a {
	color: inherit;
	display: initial;
}
#shoutbox .info a:hover { color: var(--accent); }

/* Butoane de moderare */
#shoutbox .mod {
	padding: 5px 8px;
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	background: none !important;
	border: none !important;
	transition: color var(--dur) var(--ease);
}
#shoutbox .mod:hover { color: var(--accent); }
#shoutbox .mod:nth-of-type(2) {
	margin-right: 5px;
	border-left: 1px solid var(--line) !important;
}
#shoutbox .ip {
	margin-right: 10px;
	color: var(--muted);
}

/* ---- Variantele "nasz" / "shout" (layout tip bulă de chat) ---- */
.entry.shoutboxnasz {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
}
.avatar.shoutboxnasz_avatar {
	height: 40px;
	width: 40px;
	margin-right: 0;
	margin-left: 0;
}

.shout {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	gap: 10px;
}
.shout:first-child { margin-top: 0; }

.shout__avatar {
	height: 40px;
	width: 40px;
	margin: 4px 0;
	flex-shrink: 0;
}
.shout__avatar img {
	border-radius: 10px;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border: 1px solid var(--line);
}

.shout__container {
	flex: 1;
	margin-left: 0;
	background: var(--raise);
	padding: 12px 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: var(--shadow-1);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	margin-right: 0;
}
.shout__the-message {
	flex: 1;
	word-break: break-word;
	padding-right: 15px;
}
.shout__the-message .text { margin-top: 5px; }

.shout .info { text-align: center; }
.shout .info a:not(:last-child):hover { opacity: 0.7; }
.shout .info > *:last-child { display: block; }

/* ---- Mod deschis (light) ---- */
html[data-theme="light"] #shoutbox .entry:nth-child(even) {
	background-color: rgba(0, 0, 0, .02);
}