/**
 * Branike LMS — Diskusia pod lekciami
 */

/* ── SEKCIA ───────────────────────────────────────────────────────────────── */

.blms-disc {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,.12);
}

.blms-disc__title {
	font-size: 1rem;
	font-weight: 600;
	color: rgba(255,255,255,.9);
	margin: 0 0 1.5rem;
}

/* ── ZOZNAM KOMENTÁROV ────────────────────────────────────────────────────── */

.blms-disc__list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.blms-disc__comment {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 10px;
	padding: 1rem;
}

/* Meta */
.blms-disc__meta {
	display: flex;
	align-items: center;
	gap: .625rem;
	margin-bottom: .75rem;
}

.blms-disc__avatar {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50%;
	flex-shrink: 0;
}

.blms-disc__avatar--sm {
	width: 32px !important;
	height: 32px !important;
}

.blms-disc__meta-info {
	display: flex;
	flex-direction: column;
	gap: .125rem;
}

.blms-disc__author {
	font-size: .875rem;
	font-weight: 600;
	color: rgba(255,255,255,.95);
	line-height: 1.2;
}

.blms-disc__date {
	font-size: .75rem;
	color: rgba(255,255,255,.5);
}

/* Obsah */
.blms-disc__body {
	font-size: .875rem;
	color: rgba(255,255,255,.82);
	line-height: 1.6;
}

.blms-disc__body p {
	margin: 0 0 .5rem;
}

.blms-disc__body p:last-child {
	margin: 0;
}

/* Odpovede */
.blms-disc__replies {
	list-style: none;
	margin: .875rem 0 0 2.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .625rem;
	border-left: 2px solid rgba(255,255,255,.12);
	padding-left: .875rem;
}

.blms-disc__comment--reply {
	background: rgba(255,255,255,.04);
}

/* ── FORMULÁR ─────────────────────────────────────────────────────────────── */

.blms-disc__form-wrap {
	margin-top: 1.5rem;
}

.blms-disc__form-wrap #reply-title,
.blms-disc__form-wrap h3 {
	font-size: .9375rem;
	font-weight: 600;
	color: rgba(255,255,255,.9);
	margin: 0 0 .875rem;
}

.blms-disc__form textarea,
.blms-disc__form-wrap .comment-form-comment textarea {
	width: 100%;
	min-height: 100px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 8px;
	padding: .75rem 1rem;
	color: rgba(255,255,255,.9);
	font-size: .875rem;
	line-height: 1.55;
	resize: vertical;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color .2s;
}

.blms-disc__form textarea:focus,
.blms-disc__form-wrap .comment-form-comment textarea:focus {
	outline: none;
	border-color: #a78bfa;
}

.blms-disc__form textarea::placeholder,
.blms-disc__form-wrap .comment-form-comment textarea::placeholder {
	color: rgba(255,255,255,.4);
}

.blms-disc__submit,
.blms-disc__form-wrap .form-submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	padding: .625rem 1.375rem;
	background: var(--blms-accent, #7c3aed);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
	margin-top: .625rem;
}

.blms-disc__submit:hover,
.blms-disc__form-wrap .form-submit input[type="submit"]:hover {
	background: color-mix(in srgb, var(--blms-accent, #7c3aed) 82%, #000);
}

/* Skryť štandardné WP labels ktoré nepotrebujeme */
.blms-disc__form-wrap .comment-form-comment label {
	display: none;
}

.blms-disc__form-wrap .comment-notes,
.blms-disc__form-wrap .logged-in-as {
	display: none;
}

/* ── LOGIN NOTA ────────────────────────────────────────────────────────────── */

.blms-disc__login-note {
	font-size: .875rem;
	color: rgba(255,255,255,.6);
	padding: 1rem;
	background: rgba(255,255,255,.06);
	border-radius: 8px;
	text-align: center;
}

.blms-disc__login-note a {
	color: #a78bfa;
	text-decoration: underline;
}
