/* DD Coin Box — premium comment section (coin pages).
 * Pairs with includes/coin-comments.php. RTL-first, gold-on-brand.
 * NOTE: the site's Additional CSS (wp-custom-css) also styles comment CARDS
 * with !important; it prints AFTER this file, so every override here that
 * must win uses higher specificity (li.comment / ol.commentlist) + !important.
 */

/* =====================================================================
 * 0. Kill the legacy emoji badge from Additional CSS
 * =================================================================== */
#single #comments.hosted li.comment.bypostauthor .comment-author::after {
	content: none !important;
	display: none !important;
}

/* =====================================================================
 * 1. Author line — monogram avatars + verified team seal
 * =================================================================== */
#comments.hosted .comment .comment-author {
	display: flex !important;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.dd-cav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	flex: 0 0 38px;
	font-size: 16px;
	font-weight: 800;
	color: #7a5b00;
	background: radial-gradient(circle at 32% 28%, #fff7e0 0%, #ffe9ad 55%, #f3cf6b 100%);
	border: 1px solid rgba(212, 175, 55, .45);
	box-shadow: 0 2px 6px rgba(212, 175, 55, .25), inset 0 1px 0 rgba(255, 255, 255, .8);
	line-height: 1;
	user-select: none;
}
.dd-cav--team {
	color: #fff;
	background: linear-gradient(135deg, #e9c04a 0%, #d4af37 45%, #a8811a 100%);
	border-color: rgba(168, 129, 26, .6);
	box-shadow: 0 3px 10px rgba(212, 175, 55, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.dd-cav--team svg { display: block; }
.dd-cau { font-weight: 900; }
.dd-cau a { text-decoration: none; }

/* Verified seal pill — real SVG seal, not an emoji */
.dd-vbadge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px 4px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, #eecb5d 0%, #d4af37 55%, #c19a2e 100%);
	color: #fff !important;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1px;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(212, 175, 55, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
	white-space: nowrap;
}
.dd-vbadge__seal { color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .15)); }

/* =====================================================================
 * 2. The form card — #respond as a premium gold panel
 * =================================================================== */
#single #comments.hosted #respond {
	margin-top: 34px;
	padding: 26px 26px 20px;
	border-radius: 20px;
	border: 1px solid rgba(212, 175, 55, .3);
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(246, 177, 0, .08) 0%, rgba(246, 177, 0, 0) 55%),
		linear-gradient(180deg, #fffdf6 0%, #fffaf0 100%);
	box-shadow: 0 10px 30px rgba(15, 31, 51, .05);
	position: relative;
	overflow: hidden;
}
#single #comments.hosted #respond::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, rgba(212, 175, 55, 0), #d4af37 30%, #f3cf6b 50%, #d4af37 70%, rgba(212, 175, 55, 0));
}
#single #comments.hosted #respond h3#reply-title {
	border: none !important;
	padding: 0 !important;
	margin: 0 0 6px !important;
	text-align: right !important;
}
#single #comments.hosted #respond h3#reply-title span {
	background: transparent !important;
	color: #0f1f33 !important;
	font-weight: 900 !important;
	font-size: 21px !important;
	padding: 0 !important;
	display: inline-block;
}
#single #comments.hosted #respond h3#reply-title svg.decoration,
#single #comments.hosted #respond h3#reply-title::before,
#single #comments.hosted #respond h3#reply-title::after { display: none !important; }
#single #comments.hosted #respond h3#reply-title small { margin-inline-start: 10px; font-size: 13px; }
#single #comments.hosted #respond h3#reply-title small a { color: #c28a1a; }

/* Welcome microcopy + quick-topic chips */
.dd-cf__welcome { margin: 0 0 18px; }
.dd-cf__welcome > p {
	margin: 0 0 12px !important;
	font-size: 14px;
	line-height: 1.9;
	color: #5b6b80;
}
.dd-cf__chips {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.dd-cf__chips-lbl {
	font-size: 12.5px;
	font-weight: 700;
	color: #a8811a;
}
.dd-cf__chip {
	appearance: none;
	border: 1px solid rgba(212, 175, 55, .45);
	background: rgba(246, 177, 0, .06);
	color: #8a6a12;
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	cursor: pointer;
	line-height: 1.4;
	transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.dd-cf__chip:hover,
.dd-cf__chip:focus-visible {
	background: linear-gradient(135deg, #eecb5d, #d4af37);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(212, 175, 55, .35);
	outline: none;
}
.dd-cf__chip:active { transform: translateY(0) scale(.97); }

/* Star rating field (markup from coin-reviews.php) — blend into the card */
#single #comments.hosted #respond .dd-rate-field {
	background: rgba(255, 255, 255, .65);
	border-color: rgba(212, 175, 55, .35);
}

/* Textarea */
.dd-cf__ta { position: relative; margin: 0 0 14px; }
#single #comments.hosted #respond textarea#comment {
	width: 100%;
	min-height: 150px;
	padding: 16px 18px;
	border: 1.5px solid rgba(15, 31, 51, .1) !important;
	border-radius: 16px !important;
	background: #fff !important;
	font-size: 15px;
	line-height: 1.9;
	color: #2d3a4d;
	resize: vertical;
	transition: border-color .2s ease, box-shadow .2s ease;
	box-shadow: inset 0 1px 3px rgba(15, 31, 51, .04);
}
#single #comments.hosted #respond textarea#comment:focus {
	border-color: #d4af37 !important;
	box-shadow: 0 0 0 4px rgba(212, 175, 55, .16);
	outline: none;
}
#single #comments.hosted #respond textarea#comment::placeholder { color: #9aa7b8; font-size: 13.5px; }

/* Name / email — two-field grid with icons */
.dd-cf__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0 0 4px;
}
.dd-cf__field {
	position: relative;
	display: block;
	margin: 0 !important;
}
.dd-cf__icon {
	position: absolute;
	inset-inline-start: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #c2a24a;
	pointer-events: none;
	display: inline-flex;
}
#single #comments.hosted #respond .dd-cf__field input {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 13px 16px !important;
	padding-inline-start: 44px !important;
	border: 1.5px solid rgba(15, 31, 51, .1) !important;
	border-radius: 14px !important;
	background: #fff !important;
	font-size: 14px;
	color: #2d3a4d;
	transition: border-color .2s ease, box-shadow .2s ease;
	box-shadow: inset 0 1px 3px rgba(15, 31, 51, .04);
}
#single #comments.hosted #respond .dd-cf__field input:focus {
	border-color: #d4af37 !important;
	box-shadow: 0 0 0 4px rgba(212, 175, 55, .16);
	outline: none;
}
#single #comments.hosted #respond .dd-cf__field input::placeholder { color: #9aa7b8; }

/* Cookies-consent checkbox */
#single #comments.hosted #respond .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 4px !important;
}
#single #comments.hosted #respond .comment-form-cookies-consent input[type="checkbox"] {
	accent-color: #d4af37;
	width: 17px;
	height: 17px;
	margin-top: 2px;
	flex: 0 0 auto;
}
#single #comments.hosted #respond .comment-form-cookies-consent label {
	font-size: 12.5px !important;
	color: #7c8a9c !important;
	line-height: 1.8;
	font-weight: 500 !important;
	cursor: pointer;
}

/* Submit — gold CTA */
#single #comments.hosted #respond .form-submit { margin: 14px 0 0 !important; }
#single #comments.hosted #respond .form-submit button[type="submit"] {
	background: linear-gradient(135deg, #eecb5d 0%, #d4af37 50%, #bd9327 100%) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 13px 38px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(212, 175, 55, .4), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
#single #comments.hosted #respond .form-submit button[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(212, 175, 55, .5), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
	filter: brightness(1.04);
}
#single #comments.hosted #respond .form-submit button[type="submit"]:active { transform: translateY(0) scale(.98); }

/* Reassurance note under the button */
.dd-cf__note {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 12px 0 0 !important;
	font-size: 12.5px;
	color: #8a97a8;
	line-height: 1.8;
}
.dd-cf__note svg { color: #c2a24a; flex: 0 0 auto; }

/* =====================================================================
 * 3. Responsive
 * =================================================================== */
@media (max-width: 640px) {
	#single #comments.hosted #respond { padding: 20px 16px 16px; }
	.dd-cf__row { grid-template-columns: 1fr; gap: 12px; }
	.dd-cf__chips-lbl { flex-basis: 100%; }
	#single #comments.hosted #respond .form-submit button[type="submit"] {
		width: 100%;
		padding: 14px 20px !important;
	}
	.dd-vbadge span { font-size: 10.5px; }
}

/* =====================================================================
 * 4. Dark mode (Dracula scheme)
 * =================================================================== */
html[data-dracula-scheme="dark"] #single #comments.hosted #respond {
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(246, 177, 0, .07) 0%, rgba(246, 177, 0, 0) 55%),
		linear-gradient(180deg, #14161c 0%, #101218 100%);
	border-color: rgba(212, 175, 55, .28);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
html[data-dracula-scheme="dark"] #single #comments.hosted #respond h3#reply-title span { color: #e9edf5 !important; }
html[data-dracula-scheme="dark"] .dd-cf__welcome > p { color: #98a5ba; }
html[data-dracula-scheme="dark"] .dd-cf__chip {
	background: rgba(246, 177, 0, .08);
	color: #e3c163;
	border-color: rgba(212, 175, 55, .35);
}
html[data-dracula-scheme="dark"] #single #comments.hosted #respond .dd-rate-field { background: rgba(255, 255, 255, .04); }
html[data-dracula-scheme="dark"] #single #comments.hosted #respond textarea#comment,
html[data-dracula-scheme="dark"] #single #comments.hosted #respond .dd-cf__field input {
	background: #191c24 !important;
	border-color: rgba(255, 255, 255, .1) !important;
	color: #dbe2ec;
}
html[data-dracula-scheme="dark"] #single #comments.hosted #respond textarea#comment:focus,
html[data-dracula-scheme="dark"] #single #comments.hosted #respond .dd-cf__field input:focus {
	border-color: #d4af37 !important;
	box-shadow: 0 0 0 4px rgba(212, 175, 55, .2);
}
html[data-dracula-scheme="dark"] #single #comments.hosted #respond .comment-form-cookies-consent label { color: #8b98ac !important; }
html[data-dracula-scheme="dark"] .dd-cf__note { color: #7f8b9e; }
html[data-dracula-scheme="dark"] .dd-cav {
	color: #ffd76a;
	background: radial-gradient(circle at 32% 28%, rgba(255, 231, 160, .22) 0%, rgba(212, 175, 55, .14) 100%);
	border-color: rgba(212, 175, 55, .4);
	box-shadow: none;
}

/* =====================================================================
 * 5. Threaded replies — gentle, capped indentation
 *
 * Every nesting level used to cost ~108px of horizontal space in RTL:
 * 25px list indent + 3px thread line (Additional CSS) + 60px card padding
 * (Additional CSS) + 20px .right padding (theme, meant for an avatar this
 * site never renders). WP allows 5 levels, so by the third reply the text
 * column collapsed to a few characters on mobile.
 *
 * Now each level pays a small indent that SHRINKS as it goes deeper, the
 * nested cards get slimmer padding, and the dead .right padding is gone —
 * ~30px per level instead of ~108px. The gold thread line stays as the
 * visual cue for "this is a reply".
 *
 * Selectors carry ol.commentlist / li.comment / ul.children so they outrank
 * the Additional-CSS !important rules (see the file header).
 * =================================================================== */

/* Level 1 reply — the indent itself (RTL: right side) */
#single #comments.hosted ol.commentlist ul.children {
	padding-left: 0 !important;
	padding-right: 16px !important;
	padding-top: 14px !important;
	margin-top: 0 !important;
	border-left: 0 !important;
	border-right: 2px solid rgba(212, 175, 55, .28) !important;
}
/* Level 2 reply */
#single #comments.hosted ol.commentlist ul.children ul.children {
	padding-right: 12px !important;
	padding-top: 12px !important;
}
/* Level 3 and deeper — indentation stops growing, thread line carries it */
#single #comments.hosted ol.commentlist ul.children ul.children ul.children {
	padding-right: 8px !important;
	padding-top: 10px !important;
}

/* Nested cards are slimmer than the top-level card (they are drawn INSIDE it) */
#single #comments.hosted ol.commentlist ul.children li.comment {
	padding: 18px 20px !important;
	margin-bottom: 14px !important;
	border-radius: 14px !important;
}
#single #comments.hosted ol.commentlist ul.children ul.children li.comment {
	padding: 16px !important;
	margin-bottom: 12px !important;
}
#single #comments.hosted ol.commentlist ul.children ul.children ul.children li.comment {
	padding: 14px !important;
	margin-bottom: 10px !important;
}

/* The theme pads .right to clear a 50px avatar — avatars are off site-wide
 * (every comment renders with .no-avatar), so that padding is pure loss. */
#single #comments.hosted ol.commentlist li.comment.no-avatar > .right {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/* =====================================================================
 * 6. Threaded replies on small screens — where it actually hurt
 * =================================================================== */
@media (max-width: 640px) {
	#single #comments.hosted ol.commentlist > li.comment {
		padding: 18px 16px !important;
	}
	#single #comments.hosted ol.commentlist ul.children {
		padding-right: 11px !important;
		padding-top: 12px !important;
	}
	#single #comments.hosted ol.commentlist ul.children ul.children {
		padding-right: 9px !important;
	}
	#single #comments.hosted ol.commentlist ul.children ul.children ul.children {
		padding-right: 7px !important;
	}
	#single #comments.hosted ol.commentlist ul.children li.comment {
		padding: 15px 14px !important;
	}
	#single #comments.hosted ol.commentlist ul.children ul.children li.comment {
		padding: 14px 12px !important;
	}
	#single #comments.hosted ol.commentlist ul.children ul.children ul.children li.comment {
		padding: 13px 11px !important;
	}
	/* Author line must not force the column open inside a deep reply */
	#single #comments.hosted ol.commentlist ul.children .comment-author { gap: 7px; }
	#single #comments.hosted ol.commentlist ul.children .dd-cav {
		width: 30px;
		height: 30px;
		flex: 0 0 30px;
		font-size: 14px;
	}
	#single #comments.hosted ol.commentlist ul.children .dd-vbadge { padding: 3px 9px; }
}

/* =====================================================================
 * 9. Breathing room before the footer — the comment area is the last
 *    block on coin/blog singles and was sitting flush against it.
 * =================================================================== */
#single #comments.hosted {
	margin-bottom: 72px;
}
