/*
	Sociq Content Marks & Stamps Styling
	Личные метки (Золотая «1», бриллиант, звёздочка, «Был здесь»)
*/

.post-marks-container {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px 18px 8px 18px;
	min-height: 0;
}

.post-marks-container:empty {
	display: none;
}

.message-marks-container {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 4px;
}

.message-marks-container:empty {
	display: none;
}

/* Badge Base */
.content-mark-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px 3px 4px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	user-select: none;
	position: relative;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	cursor: default;
}

.content-mark-badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.content-mark-badge .mark-avatar {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	flex-shrink: 0;
}

.content-mark-badge .mark-symbol {
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.content-mark-badge .mark-label {
	font-size: 11px;
	letter-spacing: 0.2px;
	white-space: nowrap;
}

/* Mini Badge (for chat messages) */
.content-mark-badge.is-mini {
	padding: 2px 8px 2px 6px;
	font-size: 10px;
	gap: 4px;
}

.content-mark-badge.is-mini .mark-symbol {
	font-size: 11px;
}

.content-mark-badge.is-mini .mark-label {
	font-size: 10px;
}

/* --- Styles / Themes --- */

/* Gold (Золото) */
.mark-style-gold {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #fde68a 100%);
	color: #92400e;
	border: 1px solid #f59e0b;
	box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}
.mark-style-gold .mark-symbol {
	color: #b45309;
	text-shadow: 0 0 2px rgba(251, 191, 36, 0.6);
}

/* Diamond (Бриллиант / Небесный лед) */
.mark-style-diamond {
	background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 50%, #bae6fd 100%);
	color: #0369a1;
	border: 1px solid #0284c7;
	box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}
.mark-style-diamond .mark-symbol {
	color: #0284c7;
	text-shadow: 0 0 3px rgba(56, 189, 248, 0.7);
}

/* Ruby (Рубин) */
.mark-style-ruby {
	background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
	color: #be123c;
	border: 1px solid #f43f5e;
	box-shadow: 0 2px 6px rgba(244, 63, 94, 0.25);
}
.mark-style-ruby .mark-symbol {
	color: #e11d48;
}

/* Emerald (Изумруд) */
.mark-style-emerald {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
	color: #065f46;
	border: 1px solid #10b981;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.mark-style-emerald .mark-symbol {
	color: #047857;
}

/* Violet (Аметист) */
.mark-style-violet {
	background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
	color: #6b21a8;
	border: 1px solid #a855f7;
	box-shadow: 0 2px 6px rgba(168, 85, 247, 0.25);
}
.mark-style-violet .mark-symbol {
	color: #7e22ce;
}

/* Post Action Button */
.post-mark-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
	transition: all 0.2s ease;
}

.post-mark-btn i {
	font-size: 15px;
	transition: transform 0.2s ease, color 0.2s ease;
}

.post-mark-btn:hover i {
	transform: scale(1.15);
}

.post-mark-btn.is-marked {
	color: #d97706 !important;
	background: rgba(245, 158, 11, 0.12) !important;
	border-color: rgba(245, 158, 11, 0.35) !important;
}

.post-mark-btn .marks-counter {
	font-size: 11px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	color: inherit;
}

.post-mark-btn.is-marked .marks-counter {
	background: rgba(245, 158, 11, 0.25);
	color: #92400e;
}

/* Message Mark Button */
.message-mark-action {
	border: none;
	background: transparent;
	padding: 2px 6px;
	color: #94a3b8;
	font-size: 14px;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.message-mark-action:hover {
	opacity: 1;
	color: #f59e0b;
	transform: scale(1.1);
}

.message-mark-action.is-marked {
	opacity: 1;
	color: #d97706;
}

/* Modal styling */
.mark-modal-content {
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
	overflow: hidden;
}

.mark-studio-badge {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.mark-preview-card {
	background: var(--bs-tertiary-bg, #f8fafc);
	border: 1px dashed rgba(0, 0, 0, 0.15);
	border-radius: 14px;
	padding: 16px;
	text-align: center;
}

.mark-preview-title {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
	margin-bottom: 10px;
}

.mark-preview-stage {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 40px;
}

.mark-symbols-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
	gap: 8px;
}

.mark-choice-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 6px;
	border-radius: 10px;
	border: 1.5px solid #e2e8f0;
	background: #ffffff;
	cursor: pointer;
	transition: all 0.15s ease;
}

.mark-choice-btn:hover {
	border-color: #f59e0b;
	background: #fffbeb;
	transform: translateY(-2px);
}

.mark-choice-btn.is-selected {
	border-color: #d97706;
	background: #fef3c7;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.mark-choice-sym {
	font-size: 20px;
	line-height: 1;
}

.mark-choice-name {
	font-size: 10px;
	font-weight: 600;
	color: #475569;
	text-align: center;
	line-height: 1.2;
}

.mark-styles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 8px;
}

.mark-style-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1.5px solid #e2e8f0;
	background: #ffffff;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	transition: all 0.15s ease;
}

.mark-style-btn:hover {
	border-color: var(--mark-theme-color, #f59e0b);
	transform: translateY(-1px);
}

.mark-style-btn.is-selected {
	border-color: var(--mark-theme-color, #f59e0b);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
	font-weight: 700;
}

.mark-style-swatch {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
