/**
 * Club Card Overlay & Subscription Modal Styles
 *
 * Minimalist, elegant design system for Almaden Bookster creator clubs.
 */

.almaden-club-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background-color: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.almaden-club-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.almaden-club-overlay-panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	background-color: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.03);
	overflow: hidden;
	transform: scale(0.96) translateY(8px);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: inherit;
	color: #18181b;
	text-align: left;
}

.almaden-club-overlay.is-active .almaden-club-overlay-panel {
	transform: scale(1) translateY(0);
}

.almaden-club-overlay-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #f4f4f5;
	background-color: #fafafa;
}

.almaden-club-overlay-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #52525b;
	background-color: #ffffff;
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	border: 1px solid #e4e4e7;
}

.almaden-club-overlay-tag svg {
	width: 12px;
	height: 12px;
	stroke-width: 2.2;
}

.almaden-club-overlay-close-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #71717a;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	padding: 0;
}

.almaden-club-overlay-close-btn:hover {
	background-color: #f4f4f5;
	color: #09090b;
}

.almaden-club-overlay-body {
	padding: 1.75rem 1.5rem 1.5rem 1.5rem;
}

.almaden-club-overlay-hero {
	text-align: center;
	margin-bottom: 1.25rem;
}

.almaden-club-overlay-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background-color: #000000;
	color: #ffffff;
	margin-bottom: 1rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.almaden-club-overlay-icon-wrap svg {
	width: 24px;
	height: 24px;
	stroke-width: 2;
}

.almaden-club-overlay-title {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
	color: #09090b;
	margin: 0 0 0.35rem 0;
	letter-spacing: -0.02em;
}

.almaden-club-overlay-author {
	font-size: 0.85rem;
	font-weight: 500;
	color: #71717a;
	margin: 0;
}

.almaden-club-overlay-author strong {
	color: #18181b;
	font-weight: 600;
}

.almaden-club-overlay-desc {
	font-size: 0.875rem;
	line-height: 1.55;
	color: #52525b;
	margin: 1rem 0;
	text-align: center;
	padding: 0 0.5rem;
}

.almaden-club-overlay-pricing-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1.25rem;
	background-color: #fbfbfb;
	border: 1px solid #f0f0f1;
	border-radius: 14px;
	margin-top: 1.25rem;
	margin-bottom: 1rem;
}

.almaden-club-overlay-pricing-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #71717a;
}

.almaden-club-overlay-pricing-amount {
	font-size: 1.05rem;
	font-weight: 800;
	color: #09090b;
}

.almaden-club-overlay-pricing-amount.is-free {
	color: #059669;
}

.almaden-club-overlay-context-message {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #4b5563;
	background-color: #f4f4f5;
	border-radius: 12px;
	padding: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	text-align: center;
}

.almaden-club-overlay-context-message.is-welcome-back {
	background-color: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

.almaden-club-overlay-alert {
	font-size: 0.8125rem;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	margin-bottom: 1rem;
	display: none;
}

.almaden-club-overlay-alert.is-error {
	display: block;
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.almaden-club-overlay-alert.is-success {
	display: block;
	background-color: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.almaden-club-overlay-action-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	background-color: #000000;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	transition: background-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
	text-decoration: none;
}

.almaden-club-overlay-action-btn:hover {
	background-color: #27272a;
	color: #ffffff;
	text-decoration: none;
}

.almaden-club-overlay-action-btn:active {
	transform: scale(0.99);
}

.almaden-club-overlay-action-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.almaden-club-overlay-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: almaden-club-spin 0.7s linear infinite;
}

@keyframes almaden-club-spin {
	to {
		transform: rotate(360deg);
	}
}

.almaden-club-overlay-footer {
	padding: 0.875rem 1.5rem;
	background-color: #fafafa;
	border-top: 1px solid #f4f4f5;
	text-align: center;
}

.almaden-club-overlay-disclaimer {
	font-size: 0.725rem;
	color: #a1a1aa;
	margin: 0;
}

/* Badge styles for cards */
.almaden-card-club-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0f172a;
	background-color: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(226, 232, 240, 0.85);
	padding: 0.2rem 0.5rem;
	border-radius: 9999px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
	max-width: 100%;
	line-height: 1.2;
}

.almaden-card-club-badge svg {
	width: 9.5px;
	height: 9.5px;
	stroke-width: 2.4;
	flex-shrink: 0;
	color: #0f172a;
}

.almaden-card-club-badge:hover {
	background-color: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
