/**
 * Uncutbee Anonymous Confessions Board Styles
 *
 * @package UncutbeeTools
 */

.ub-confessions-wrap {
	max-width: 860px;
	margin: 0 auto;
	padding: 1rem 0;
}

.ub-confessions-header {
	text-align: center;
	margin-bottom: 2rem;
}

.ub-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.ub-pill {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.5rem 1.15rem;
	border-radius: 9999px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ub-pill:hover {
	background: #ffe4e6;
	color: #e11d48;
	border-color: #fecdd3;
}

.ub-pill.active {
	background: #e11d48;
	color: #ffffff;
	border-color: #e11d48;
	box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.ub-sort-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	color: #64748b;
}

.ub-sort-group {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.ub-sort-btn {
	background: none;
	border: none;
	font-size: 0.85rem;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: color 0.15s;
}

.ub-sort-btn:hover {
	color: #0f172a;
}

.ub-sort-btn.active-sort {
	color: #e11d48;
	background: rgba(225, 29, 72, 0.08);
}

.ub-confession-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

.ub-confession-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 1.5rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ub-confession-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
	border-color: #cbd5e1;
}

.ub-confession-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 0.8125rem;
}

.ub-confession-author {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #64748b;
	font-weight: 500;
}

.ub-confession-category {
	display: inline-block;
	background: #fff1f2;
	color: #e11d48;
	font-weight: 700;
	font-size: 0.75rem;
	padding: 3px 10px;
	border-radius: 9999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ub-confession-story {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #1e293b;
	margin-bottom: 1.25rem;
}

.ub-confession-actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
	font-size: 0.875rem;
	color: #64748b;
}

.ub-like-btn, .ub-share-quote-btn {
	background: none;
	border: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: #64748b;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 6px;
	transition: all 0.15s;
}

.ub-like-btn:hover {
	color: #e11d48;
	background: #ffe4e6;
}

.ub-like-btn.has-liked {
	color: #e11d48;
}

/* Submission Modal */
.ub-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.ub-modal-content {
	background: #ffffff;
	border-radius: 18px;
	width: 100%;
	max-width: 560px;
	padding: 2rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	position: relative;
	animation: ubModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ubModalIn {
	from { opacity: 0; transform: scale(0.95) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.ub-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.25rem;
}

.ub-modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #94a3b8;
	line-height: 1;
}

.ub-modal-close:hover {
	color: #0f172a;
}

.ub-form-group {
	margin-bottom: 1.25rem;
}

.ub-form-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.4rem;
}

.ub-select, .ub-textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 14px;
	font-family: inherit;
	font-size: 0.95rem;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ub-select:focus, .ub-textarea:focus {
	outline: none;
	border-color: #e11d48;
	box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.ub-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
