/**
 * SkankRadio Core — Membership Modal Styles
 *
 * Styles the signup/upgrade modal rendered by class-membership-frontend.php.
 * Brand palette:
 *   - Green:  #16BC0E (primary action / accent)
 *   - Orange: #F9AB03 (secondary accent — unused here, reserved for upgrade CTAs)
 *   - Backdrop: rgba(0,0,0,0.7)
 *   - Card:   #1a1a1a with a 2px green border, 10px radius
 *
 * @package SkankRadio_Core
 * @since   1.7.0
 */

/* ===== Modal container ===== */

.sr-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.sr-modal[style*="flex"] {
	/* Active state — set by JS via inline style display:flex; */
}

.sr-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

/* ===== Modal card ===== */

.sr-modal-content {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #1a1a1a;
	color: #ffffff;
	border: 2px solid #16BC0E;
	border-radius: 10px;
	padding: 32px 28px 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
	font-family: inherit;
}

.sr-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: background-color 0.15s ease;
}

.sr-modal-close:hover,
.sr-modal-close:focus {
	background: rgba(255, 255, 255, 0.1);
	outline: none;
}

.sr-modal-title {
	margin: 0 0 22px 0;
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

/* ===== Form fields ===== */

.sr-signup-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
}

.sr-modal-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.sr-modal-label {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sr-modal-field input[type="email"],
.sr-modal-field input[type="password"] {
	width: 100%;
	padding: 11px 14px;
	background: #0d0d0d;
	color: #ffffff;
	border: 2px solid #333333;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.sr-modal-field input[type="email"]:focus,
.sr-modal-field input[type="password"]:focus {
	border-color: #16BC0E;
	outline: none;
}

.sr-modal-field input[type="email"]:disabled,
.sr-modal-field input[type="password"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sr-modal-hint {
	font-size: 12px;
	color: #aaaaaa;
	margin-top: 2px;
}

/* ===== Submit button ===== */

.sr-modal-submit {
	margin-top: 8px;
	padding: 13px 20px;
	background: #16BC0E;
	color: #000000;
	border: 2px solid #16BC0E;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sr-modal-submit:hover:not(:disabled) {
	background: #14a80c;
	border-color: #14a80c;
}

.sr-modal-submit:active:not(:disabled) {
	transform: translateY(1px);
}

.sr-modal-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ===== Error region ===== */

.sr-modal-error {
	min-height: 20px;
	margin-top: 4px;
	color: #ff6b6b;
	font-size: 14px;
	line-height: 1.4;
}

.sr-modal-error:empty {
	display: none;
}

/* ===== Pro/Free tier trigger buttons (default styling) ===== */
/* These are minimal defaults so the buttons aren't unstyled if used      */
/* outside an Elementor button widget. Page authors can override.         */

.sr-go-pro,
.sr-signup-free {
	display: inline-block;
	padding: 12px 24px;
	background: #16BC0E;
	color: #000000;
	border: 2px solid #16BC0E;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
	font-family: inherit;
}

.sr-go-pro:hover,
.sr-signup-free:hover {
	background: #14a80c;
	border-color: #14a80c;
}

/* ===== Mobile tweaks ===== */

@media (max-width: 480px) {
	.sr-modal {
		padding: 12px;
	}

	.sr-modal-content {
		padding: 28px 22px 22px;
		max-width: 100%;
	}

	.sr-modal-title {
		font-size: 19px;
		margin-bottom: 18px;
	}
}

/* ==========================================================
   Tier CTA buttons rendered by [skankradio_tier_button].
   Shipped in v1.9.8 to replace SWPM payment-button shortcodes
   on /membership-levels/. Classes sr-go-pro / sr-signup-free
   are the JS hooks; sr-tier-button is the styling hook.
   ========================================================== */

.sr-tier-button {
	display: inline-block;
	background: transparent;
	color: #ffffff;
	border: 2px solid #16BC0E;
	border-radius: 10px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease;
}
.sr-tier-button:hover,
.sr-tier-button:focus {
	border-color: #F9AB03;
	color: #F9AB03;
	text-decoration: none;
}

/* ==========================================================
   Membership levels page tier cards.
   Shipped in v1.9.9 to back the [skankradio_levels] shortcode.
   Mirrors the styling that was previously inline-CSS-registered
   by the legacy SkankRadio Membership Levels plugin / snippet,
   so swapping that shortcode for [skankradio_levels] doesn't
   change the page visuals. Safe to coexist with the legacy CSS
   — selector specificity is identical, so whichever loads last
   wins, and the rules are the same.
   ========================================================== */

.skr-tiers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 20px;
	box-sizing: border-box;
	width: 100%;
}
.skr-tier {
	background: #050505;
	border: 2px solid #F9AB03;
	border-radius: 10px;
	padding: 30px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
	color: #ffffff;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.skr-tier-image {
	width: 100%;
	max-width: 280px;
	margin: 0 0 24px 0;
	box-sizing: border-box;
}
.skr-tier-image img {
	width: 100%;
	height: auto;
	display: block;
	border: 2px solid #16BC0E;
	border-radius: 10px;
	box-sizing: border-box;
}
.skr-tier-title {
	color: #F9AB03;
	font-size: 28px;
	margin: 0 0 16px 0;
	font-weight: 700;
	line-height: 1.2;
	width: 100%;
	box-sizing: border-box;
}
.skr-tier-description {
	color: #ffffff;
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 20px 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.skr-tier-price {
	color: #16BC0E;
	font-size: 28px;
	font-weight: 700;
	margin: auto 0 20px 0;
	padding-top: 12px;
}
.skr-tier-button {
	display: inline-block;
	background: transparent !important;
	border: 2px solid #16BC0E !important;
	border-radius: 10px;
	color: #ffffff !important;
	padding: 10px 28px;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 16px;
	transition: border-color .2s ease, color .2s ease;
	box-sizing: border-box;
	cursor: pointer;
}
.skr-tier-button:hover,
.skr-tier-button:focus {
	background: transparent !important;
	border-color: #F9AB03 !important;
	color: #ffffff !important;
}
@media (max-width: 1024px) {
	.skr-tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.skr-tiers {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 0 16px;
		margin: 20px auto;
	}
	.skr-tier { padding: 24px 16px; }
	.skr-tier-image { max-width: 240px; }
	.skr-tier-title { font-size: 24px; }
	.skr-tier-description { font-size: 15px; }
	.skr-tier-price { font-size: 26px; }
}
