/* ========================================
   Мои публикации Ladnaja
======================================== */

.lc-my-posts,
.lc-edit-post {
	width: min(calc(100% - 40px), var(--container));
	margin: 45px auto 70px;
	color: var(--color-text);
}

/* Заголовки */

.lc-my-posts > h2,
.lc-edit-post > h2 {
	margin: 0 0 28px;
	color: var(--color-accent-dark);
	font-family: Georgia, serif;
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 500;
	line-height: 1.25;
}

/* Список публикаций */

.lc-my-posts-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.lc-my-post-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 25px;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}

.lc-my-post-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(78, 52, 63, .1);
}

.lc-my-post-item h3 {
	margin: 0 0 14px;
	font-family: Georgia, serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.4;
}

.lc-my-post-item h3 a {
	color: var(--color-text);
	text-decoration: none;
}

.lc-my-post-item h3 a:hover {
	color: var(--color-accent-dark);
}

/* Статус и дата */

.lc-my-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 17px;
}

.lc-my-post-status {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 30px;
	background: var(--color-soft);
	color: var(--color-accent-dark);
	font-size: 12px;
	font-weight: 600;
}

.lc-status-publish {
	background: #e8f0e9;
	color: #58745d;
}

.lc-status-pending {
	background: #fff2df;
	color: #946b32;
}

.lc-status-draft {
	background: #eeeaf2;
	color: #74647e;
}

.lc-status-private {
	background: #f2e9ec;
	color: #8c6473;
}

.lc-status-future {
	background: #e8edf5;
	color: #61738e;
}

.lc-my-post-date {
	color: var(--color-muted);
	font-size: 13px;
}

/* Изображение */

.lc-my-post-thumbnail {
	overflow: hidden;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--color-soft);
}

.lc-my-post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 260px;
	object-fit: cover;
}

/* Фрагмент текста */

.lc-my-post-excerpt {
	margin-bottom: 22px;
	color: var(--color-muted);
	font-size: 14px;
	line-height: 1.7;
}

/* Действия */

.lc-my-post-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 17px;
	border-top: 1px solid var(--color-line);
}

.lc-my-post-actions a,
.lc-my-post-actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 17px;
	border: 1px solid var(--color-accent);
	border-radius: 30px;
	background: transparent;
	color: var(--color-accent-dark);
	font: inherit;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.lc-my-post-actions a:hover {
	background: var(--color-accent);
	color: #fff;
}

.lc-my-post-actions form {
	margin: 0;
}

.lc-my-post-actions .lc-delete-post-button {
	border-color: #e4c9d0;
	color: #a45e70;
}

.lc-my-post-actions .lc-delete-post-button:hover {
	background: #a45e70;
	border-color: #a45e70;
	color: #fff;
}

/* Сообщения */

.lc-my-posts > p,
.lc-edit-post > p {
	line-height: 1.7;
}

.lc-my-posts > p:empty {
	display: none;
}

.lc-message-success {
	margin: 0 0 22px;
	padding: 16px 20px;
	border: 1px solid #d7e5d8;
	border-radius: 14px;
	background: #eef5ef;
	color: #527357;
	font-size: 14px;
	line-height: 1.6;
}

/* Форма редактирования */

.lc-edit-post {
	padding: 32px;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.lc-edit-post form > p {
	margin: 0 0 23px;
}

.lc-edit-post label,
.lc-edit-post .lc-post-categories > p,
.lc-edit-post .lc-post-tags > p {
	display: block;
	margin-bottom: 9px;
	color: var(--color-text);
	font-size: 14px;
	font-weight: 600;
}

.lc-edit-post input[type="text"],
.lc-edit-post textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 15px;
	border: 1px solid var(--color-line);
	border-radius: 12px;
	background: #fff;
	color: var(--color-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.6;
}

.lc-edit-post input[type="text"]:focus,
.lc-edit-post textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(184, 121, 148, .12);
}

.lc-edit-post textarea {
	min-height: 220px;
	resize: vertical;
}

.lc-edit-post .lc-post-categories,
.lc-edit-post .lc-post-tags {
	margin: 25px 0;
	padding: 20px;
	border: 1px solid var(--color-line);
	border-radius: 14px;
	background: #fff;
}

.lc-edit-post .lc-post-categories label,
.lc-edit-post .lc-post-tags label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 16px 12px 0;
	font-weight: 400;
	cursor: pointer;
}

.lc-edit-post input[type="checkbox"] {
	accent-color: var(--color-accent-dark);
}

.lc-edit-current-image {
	margin: 12px 0 20px;
}

.lc-edit-current-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.lc-edit-post input[type="file"] {
	display: block;
	max-width: 100%;
	margin-top: 10px;
	font-size: 13px;
}

.lc-edit-post small {
	display: block;
	margin-top: 8px;
	color: var(--color-muted);
	font-size: 12px;
	line-height: 1.6;
}

.lc-edit-post button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 25px;
	border: 0;
	border-radius: 30px;
	background: var(--color-accent-dark);
	color: #fff;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background .2s ease;
}

.lc-edit-post button[type="submit"]:hover {
	background: var(--color-accent);
}

.lc-edit-post > p:last-child a {
	color: var(--color-accent-dark);
	font-size: 14px;
	text-decoration: none;
}

.lc-edit-post > p:last-child a:hover {
	text-decoration: underline;
}

/* Планшеты */

@media (max-width: 800px) {
	.lc-my-posts-list {
		grid-template-columns: 1fr;
	}

	.lc-edit-post {
		padding: 25px;
	}
}

/* Мобильные устройства */

@media (max-width: 640px) {
	.lc-my-posts,
	.lc-edit-post {
		width: min(calc(100% - 28px), var(--container));
		margin: 25px auto 45px;
	}

	.lc-my-post-item {
		padding: 19px;
		border-radius: 17px;
	}

	.lc-my-post-item h3 {
		font-size: 20px;
	}

	.lc-my-post-actions {
		align-items: stretch;
	}

	.lc-my-post-actions a,
	.lc-my-post-actions button {
		flex: 1 1 auto;
	}

	.lc-edit-post {
		padding: 21px 17px;
		border-radius: 17px;
	}
}