/* Super Sweet Membership Plugin
 * Intentionally minimal: no colors/fonts are hard-coded here so every
 * box, button, and input inherits whatever theme is active on the site.
 * Buttons use WordPress's own ".button" class on purpose.
 */

.ssm-box {
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 1.25em 1.5em;
	margin: 1.5em 0;
	max-width: 640px;
}

.ssm-form p {
	margin: 0.75em 0;
}

.ssm-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25em;
}

.ssm-form input[type="text"],
.ssm-form input[type="email"],
.ssm-form input[type="password"],
.ssm-form input[type="file"],
.ssm-form textarea {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 0.5em;
}

.ssm-notice {
	padding: 0.75em 1em;
	border-radius: 4px;
	margin-bottom: 1em;
}

.ssm-notice-error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
}

.ssm-notice-success,
.ssm-notice-info {
	background: #eaf3fb;
	border: 1px solid #c2dcf5;
}

/* Forum */
.ssm-thread {
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 1em;
	margin: 1em 0;
}

.ssm-thread-meta {
	position: relative;
	height: 66px;
	display: flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin: 0.5em 0 0.75em;
}

.ssm-thread-meta-bg {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 66px 66px;
	opacity: 0.1;
	z-index: 0;
}

.ssm-thread-meta-text {
	position: relative;
	z-index: 1;
	padding: 0 1em;
	font-size: 0.85em;
	opacity: 0.85;
}

.ssm-replies {
	margin: 0.75em 0 0.75em 1em;
}

.ssm-reply {
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0.6em 0.75em;
	margin: 0.5em 0;
}

.ssm-reply-date {
	font-size: 0.8em;
	opacity: 0.6;
}

.ssm-reply-image,
.ssm-thread-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin-top: 0.5em;
}

/* Member profile / avatar / gallery */
.ssm-profile-header {
	text-align: center;
	margin-bottom: 1.5em;
}

.ssm-avatar-large {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 0.75em;
}

.ssm-profile-fields .ssm-profile-field {
	margin: 0.5em 0;
}

.ssm-field-input {
	max-width: 280px;
}

.ssm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75em;
	margin-top: 1em;
}

.ssm-gallery-item {
	position: relative;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.ssm-gallery-item img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 4px;
}

.ssm-delete-gallery-image {
	position: absolute;
	top: 4px;
	right: 4px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	line-height: 20px;
	cursor: pointer;
}

.ssm-profile-activity ul {
	margin-left: 1.25em;
	list-style: disc;
}

/* Admin */
.ssm-wrap .ssm-table {
	margin-top: 1em;
}

.ssm-shortcode-list {
	list-style: disc;
	margin-left: 1.5em;
}

/* Logged-in indicator dot, bottom-left of every page */
.ssm-login-indicator {
	position: fixed;
	bottom: 12px;
	left: 12px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #2ecc71;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 4px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	pointer-events: none;
}

/* Member pages should look like any other Page on the site, with no
 * prev/next post navigation and a plain white background regardless
 * of any custom-post-type styling the active theme might apply. */
body.single-ssm_member_page {
	background-color: #fff;
}

body.single-ssm_member_page .ssm-member-profile {
	background: transparent;
}
