/* ==========================================================================
   AFFMC Complaints – AskGamblers / Casino Guru style
   ========================================================================== */

/* Variables (fallbacks if theme doesn’t use CSS vars) */
.affmc {
	--affmc-accent: #eb2b44;
	--affmc-accent-hover: #c71f36;
	--affmc-accent-blue: #2563eb;
	--affmc-accent-blue-hover: #1e40af;
	--affmc-card-border: #bbb;
	--affmc-card-shadow: 0 2px 8px rgba(32, 41, 58, 0.06);
	--affmc-text-muted: #6c757d;
	--affmc-soft-blue: #eaf3ff;
	--affmc-soft-red: #ffdbe0;
	--affmc-hard-red: #eb2b45;
	--affmc-soft-gray: #f1f1f1;
}

.affmc input {
	padding: .375rem .75rem !important;
}

.affmc .select2-container--default .select2-selection--single {
	height: 38px;
	padding: .375rem .75rem !important;
}

.affmc .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.4;
}

.affmc .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 38px;
}

.affmc .select2-container--default .select2-selection--single .select2-selection__clear {
	margin-top: -8px;
}

/* Single complaint template (theme-agnostic, no sidebar) */
.affmc-single-wrapper {
	width: 100%;
}

.affmc-single-inner {
	max-width: 800px;
	margin: 1.5rem auto;
	padding: 1.5rem 1.75rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(32, 41, 58, 0.06);
	border: 1px solid var(--affmc-card-border);
}

.affmc-complaint-single .affmc-entry-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.affmc-complaint-single .affmc-entry-header {
	margin-bottom: 1rem;
	border-bottom: 1px solid rgba(37, 99, 235, 0.2);
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: #f1f1f1;
}

.affmc-complaint-single .affmc-entry-meta {
	font-size: 0.85rem;
	color: var(--affmc-text-muted);
}

.affmc-complaint-single .affmc-entry-content p {
	line-height: 1.6;
	margin-bottom: 1rem;
}

.affmc-post-nav a {
	color: var(--affmc-accent);
	text-decoration: none;
}

.affmc-post-nav a:hover {
	color: var(--affmc-accent-hover);
}

/* Submit complaint page (no sidebar, container) */
.affmc-submit-page-wrapper {
	width: 100%;
}

.affmc-submit-page-inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 1rem 1.25rem;
}

/* Operator dashboard (login form or list) */
.affmc-operator-dashboard-login .affmc-fieldset {
	max-width: 100%;
}

.affmc-operator-dashboard h3 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.affmc-operator-dashboard ul {
	padding-left: 1.25rem;
}

.affmc-operator-dashboard ul li {
	margin-bottom: 0.5rem;
}

.affmc-operator-list {
	padding-left: 0;
	margin: 0;
}

.affmc-operator-item {
	list-style: none;
}

.affmc-operator-card {
	border: 1px solid var(--affmc-card-border);
	border-radius: 8px;
	box-shadow: var(--affmc-card-shadow);
	background: #f7fbff;
}

/* Login / Register tabs */
.affmc-auth {
	border-color: var(--affmc-card-border) !important;
}

.affmc-auth-tabs {
	display: flex;
	border-bottom: 2px solid var(--affmc-card-border);
	margin-bottom: 1rem;
	gap: 0;
}

.affmc-auth-tabs [role="tab"] {
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	color: var(--affmc-text-muted);
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	text-decoration: none;
}

.affmc-auth-tabs [role="tab"]:hover {
	color: var(--affmc-accent);
}

.affmc-auth-tabs [role="tab"][aria-selected="true"] {
	color: var(--affmc-accent);
	border-bottom-color: var(--affmc-accent);
}

.affmc-auth-panel {
	display: none;
}

.affmc-auth-panel[aria-hidden="false"] {
	display: block;
}

.affmc-login-error {
	color: #dc3545;
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

/* Fieldsets (submit form, filters) */
.affmc-fieldset {
	border: 1px solid var(--affmc-card-border) !important;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 0 0 20px;
	background: #f7fbff;
	box-shadow: var(--affmc-card-shadow);
}

.affmc-fieldset.border {
	border: 1px solid var(--affmc-card-border) !important;
}

.affmc-fieldset legend {
	font-weight: 600;
	font-size: 1.05rem;
	padding: 0 8px;
	color: #333;
}

.affmc .affmc-note {
	opacity: 0.85;
	font-size: 0.9rem;
	color: var(--affmc-text-muted);
}

/* List: filter bar */
.affmc-list .affmc-filters {
	background: #deecff;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 24px;
	border: 1px solid rgba(37, 99, 235, 0.2);
}

.affmc-list .affmc-filters .form-label {
	font-weight: 600;
	font-size: 0.9rem;
	color: #495057;
}

.affmc-list .affmc-filters .btn-outline-primary {
	font-weight: 600;
}

/* Complaint cards grid */
.affmc-complaint-grid .affmc-complaint-card {
	border: 1px solid var(--affmc-card-border);
	border-radius: 8px;
	box-shadow: var(--affmc-card-shadow);
	background: #f7fbff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.affmc-complaint-grid .affmc-complaint-card:hover {
	box-shadow: 0 2px 8px rgba(32, 41, 58, 0.08);
	border-color: rgba(37, 99, 235, 0.35);
}

.affmc-complaint-grid .card-title {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.35;
	color: #222;
}

.affmc-complaint-grid .card-title a:hover {
	color: var(--affmc-accent-hover);
}

.affmc-complaint-grid .card-title a {
	color: var(--affmc-accent);
}

.affmc-complaint-grid .list-unstyled {
	font-size: 0.875rem;
	color: #555;
}

.affmc-complaint-grid .badge {
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: lowercase;
	background-color: var(--affmc-accent-blue) !important;
}

.affmc-meta-date {
	font-size: 0.8rem !important;
	color: var(--affmc-text-muted) !important;
}

.affmc-list .affmc-complaints {
	list-style: none;
	padding-left: 0;
}

.affmc-list .affmc-complaint {
	padding: 12px 0;
	border-bottom: 1px solid var(--affmc-card-border);
}

.affmc-list .affmc-meta {
	opacity: 0.85;
	font-size: 0.9rem;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	color: var(--affmc-text-muted);
}

/* Single complaint: meta & sensitive cards */
.affmc-single-meta,
.affmc-sensitive {
	border: 1px solid var(--affmc-card-border) !important;
	border-radius: 8px !important;
	box-shadow: var(--affmc-card-shadow);
	overflow: hidden;
}

.affmc-single-meta .card-body,
.affmc-sensitive .card-body {
	padding: 1rem 1.25rem !important;
}

.affmc-single-meta .card-body {
	background: #f8f9fa;
}

.affmc-sensitive .card-body {
	background: #ffe6ea;
}

.affmc-single-meta ul,
.affmc-sensitive ul {
	margin: 0 0 12px 18px;
	list-style: none;
	padding-left: 0;
}

.affmc-single-meta ul li,
.affmc-sensitive ul li {
	margin-bottom: 6px;
	font-size: 0.95rem;
}

.affmc-single-meta .fw-semibold,
.affmc-sensitive .fw-semibold {
	color: #333;
}

.affmc-single-meta .badge,
.affmc-sensitive .badge {
	font-weight: 600;
}

.affmc-sensitive .link-primary {
	color: var(--affmc-accent);
}

.affmc-sensitive .link-primary:hover {
	color: var(--affmc-accent-hover);
}

/* Buttons: primary = accent */
.affmc button {
	padding: 5px 15px;
    font-size: 16px;
}

.affmc .btn-primary {
	background-color: var(--affmc-hard-red);
	border-color: var(--affmc-hard-red);
}

.affmc .btn-primary:hover {
	opacity: 0.9;
}

.affmc .btn-outline-primary {
	color: var(--affmc-accent-blue);
	border-color: var(--affmc-accent-blue);
	background: #e6f0fd;
	border: 1px solid;
}

.affmc .btn-outline-primary:hover {
	background-color: var(--affmc-accent-blue);
	border-color: var(--affmc-accent-blue);
	color: #fff;
}

.affmc .comment-reply-link {
	color: var(--affmc-text-muted);
	border-bottom: 1px dotted var(--affmc-card-border);
}

.affmc .comment-reply-link:hover {
	color: var(--affmc-accent-hover);
}

/* Pagination */
.affmc-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}

.affmc-pagination a,
.affmc-pagination span {
	display: inline-block;
	padding: 8px 14px;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--affmc-accent);
	background: #fff;
	border: 1px solid var(--affmc-card-border);
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.affmc-pagination a:hover {
	background: #f8f9fa;
	border-color: var(--affmc-accent);
	color: var(--affmc-accent-hover);
}

.affmc-pagination .current {
	background: var(--affmc-accent);
	border-color: var(--affmc-accent);
	color: #fff;
	cursor: default;
}

.affmc-pagination .prev,
.affmc-pagination .next {
	font-weight: 600;
}

/* Comment form (updates) on single */
.affmc-comment-form textarea.form-control {
	border-radius: 6px;
	border: 1px solid var(--affmc-card-border);
}

.affmc-comment-form .form-label {
	font-weight: 600;
	color: #333;
}

/* Comments list on single complaint */
.affmc-comments .comment-list {
	margin: 0;
	padding: 0;
}

.affmc-comments .affmc-comment {
	list-style: none;
}

.affmc-comments .affmc-comment-body {
	border: 1px solid var(--affmc-card-border);
	border-radius: 8px;
	box-shadow: var(--affmc-card-shadow);
	background: #f7fbff;
}

.affmc-comments .affmc-comment + .affmc-comment {
	margin-top: 0.75rem;
}

.affmc-comments .affmc-comment-header strong {
	font-size: 0.95rem;
}

.affmc-comments .affmc-comment-date {
	font-size: 0.8rem;
	background: #deecff;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
}

.affmc-comments .affmc-comment-content {
	font-size: 0.95rem;
}
