/**
 * Frontend styles for Cure Webinars.
 *
 * Minimal, elegant design with proper scoping.
 *
 * @package Cure_Webinars
 */

/* Conditional Section - preserve parent container */
.cure-webinar-conditional-section {
	/* Inherit parent styles */
}

/* ==========================================================================
   Access Denied / Passcode Entry Section
   ========================================================================== */

.cure-webinar-access-denied {
	box-sizing: border-box;
	text-align: center;
	padding: 40px 30px;
}

.cure-webinar-access-denied * {
	box-sizing: border-box;
}

/* Main Message */
.cure-webinar-access-denied .cure-webinar-access-message {
	font-size: 1.15em;
	font-weight: 400;
	color: #64748b;
	margin: 0 0 8px 0;
	padding: 0;
	letter-spacing: -0.01em;
}

/* Passcode Form Container */
.cure-webinar-access-denied .cure-webinar-passcode-form {
	margin-top: 32px;
	padding: 0;
	border: none;
}

.cure-webinar-access-denied .cure-webinar-passcode-instruction {
	font-size: 0.9em;
	font-weight: 500;
	color: #94a3b8;
	margin: 0 0 20px 0;
	padding: 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Passcode Entry Form */
.cure-webinar-access-denied .cure-webinar-passcode-entry {
	display: block;
	margin: 0;
	padding: 0;
}

.cure-webinar-access-denied .cure-webinar-passcode-input-wrap {
	display: flex;
	gap: 0;
	justify-content: center;
	align-items: stretch;
	flex-wrap: nowrap;
	margin: 0 auto;
	padding: 0;
	max-width: 320px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
	background: #fff;
}

/* Passcode Input Field */
.cure-webinar-access-denied input.cure-webinar-passcode-input,
.cure-webinar-access-denied input[type="text"].cure-webinar-passcode-input {
	flex: 1 !important;
	padding: 16px 20px !important;
	font-size: 1.1em !important;
	font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace !important;
	font-weight: 500 !important;
	letter-spacing: 3px !important;
	text-transform: uppercase !important;
	border: none !important;
	border-radius: 0 !important;
	text-align: center !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	line-height: 1.4 !important;
	background-color: #fff !important;
	color: #1e293b !important;
	margin: 0 !important;
	box-shadow: none !important;
	transition: none !important;
	outline: none !important;
}

.cure-webinar-access-denied input.cure-webinar-passcode-input:focus,
.cure-webinar-access-denied input[type="text"].cure-webinar-passcode-input:focus {
	outline: none !important;
	box-shadow: none !important;
}

.cure-webinar-access-denied input.cure-webinar-passcode-input::placeholder {
	letter-spacing: normal !important;
	text-transform: none !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-weight: 400 !important;
	font-size: 0.85em !important;
	color: #cbd5e1 !important;
}

/* Submit Button */
.cure-webinar-access-denied button.cure-webinar-passcode-submit,
.cure-webinar-access-denied input[type="submit"].cure-webinar-passcode-submit {
	padding: 16px 28px !important;
	font-size: 0.85em !important;
	font-weight: 600 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	color: #fff !important;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
	background-image: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer !important;
	margin: 0 !important;
	height: auto !important;
	line-height: 1.4 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
	flex-shrink: 0 !important;
}

.cure-webinar-access-denied button.cure-webinar-passcode-submit:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
	background-image: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.cure-webinar-access-denied button.cure-webinar-passcode-submit:active {
	transform: scale(0.98) !important;
}

.cure-webinar-access-denied button.cure-webinar-passcode-submit:disabled {
	background: #94a3b8 !important;
	background-image: none !important;
	cursor: not-allowed !important;
	transform: none !important;
}

/* Message Display */
.cure-webinar-access-denied .cure-webinar-passcode-message {
	margin: 20px auto 0 auto;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 0.9em;
	font-weight: 500;
	text-align: center;
	max-width: 320px;
}

.cure-webinar-access-denied .cure-webinar-passcode-message.success {
	background-color: #ecfdf5;
	color: #047857;
	border: none;
}

.cure-webinar-access-denied .cure-webinar-passcode-message.error {
	background-color: #fef2f2;
	color: #dc2626;
	border: none;
}

/* Login Prompt */
.cure-webinar-access-denied .cure-webinar-login-prompt {
	margin: 28px 0 0 0;
	padding: 0;
	font-size: 0.88em;
	color: #94a3b8;
}

.cure-webinar-access-denied .cure-webinar-login-prompt a {
	color: #10b981;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
}

.cure-webinar-access-denied .cure-webinar-login-prompt a:hover {
	color: #059669;
	text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 420px) {
	.cure-webinar-access-denied {
		padding: 30px 20px;
	}

	.cure-webinar-access-denied .cure-webinar-passcode-input-wrap {
		flex-direction: column;
		border-radius: 12px;
		max-width: 280px;
	}

	.cure-webinar-access-denied input.cure-webinar-passcode-input,
	.cure-webinar-access-denied input[type="text"].cure-webinar-passcode-input {
		border-radius: 12px 12px 0 0 !important;
		border-bottom: 1px solid #f1f5f9 !important;
	}

	.cure-webinar-access-denied button.cure-webinar-passcode-submit {
		border-radius: 0 0 12px 12px !important;
		width: 100% !important;
	}
}

/* ==========================================================================
   WooCommerce Order & Account Passcode Tables
   ========================================================================== */

.cure-webinar-passcodes {
	margin: 20px 0;
}

.cure-webinar-passcodes h2 {
	font-size: 1.1em;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 16px;
}

.cure-webinar-passcodes table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cure-webinar-passcodes th,
.cure-webinar-passcodes td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
}

.cure-webinar-passcodes th {
	background-color: #f8fafc;
	font-weight: 600;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #64748b;
}

.cure-webinar-passcodes td {
	color: #334155;
}

.cure-webinar-passcodes tr:last-child td {
	border-bottom: none;
}

.cure-webinar-account-passcodes {
	margin: 24px 0;
}

.cure-webinar-account-passcodes h2 {
	font-size: 1.1em;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 16px;
}

.cure-webinar-account-passcodes table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	background: #fff;
}

.cure-webinar-account-passcodes th,
.cure-webinar-account-passcodes td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
}

.cure-webinar-account-passcodes th {
	background-color: #f8fafc;
	font-weight: 600;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #64748b;
}

.cure-webinar-account-passcodes td {
	color: #334155;
}

.cure-webinar-account-passcodes td strong {
	font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
	font-weight: 600;
	color: #10b981;
	letter-spacing: 1px;
}

.cure-webinar-account-passcodes tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   My Webinars Shortcode - User's Registered Webinars
   ========================================================================== */

.cure-my-webinars {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Login / Empty State Messages */
.cure-my-webinars-login,
.cure-my-webinars-empty {
	text-align: center;
	padding: 48px 24px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 16px;
	color: #64748b;
	font-size: 1em;
}

.cure-my-webinars-login a {
	color: #10b981;
	font-weight: 600;
	text-decoration: none;
	margin-left: 4px;
}

.cure-my-webinars-login a:hover {
	color: #059669;
	text-decoration: underline;
}

/* Webinar Card */
.cure-my-webinar-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
	transition: all 0.25s ease;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.cure-my-webinar-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.cure-my-webinar-past {
	opacity: 0.65;
}

.cure-my-webinar-past:hover {
	opacity: 0.85;
	transform: none;
}

/* Date Badge */
.cure-my-webinar-date-badge {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-radius: 12px;
	color: #fff;
	text-align: center;
}

.cure-my-webinar-past .cure-my-webinar-date-badge {
	background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.cure-my-webinar-day {
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.cure-my-webinar-month {
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-top: 2px;
	opacity: 0.9;
}

/* Content */
.cure-my-webinar-content {
	flex: 1;
	min-width: 0;
}

.cure-my-webinar-title {
	font-size: 1.1em;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.cure-my-webinar-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.cure-my-webinar-title a:hover {
	color: #10b981;
}

/* Meta Info */
.cure-my-webinar-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: 0.9em;
}

.cure-my-webinar-datetime {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #64748b;
}

.cure-my-webinar-datetime svg {
	flex-shrink: 0;
	opacity: 0.6;
}

.cure-my-webinar-countdown {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
	color: #047857;
	font-weight: 600;
	font-size: 0.85em;
	border-radius: 20px;
	letter-spacing: 0.01em;
}

.cure-my-webinar-status-past {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: #f1f5f9;
	color: #64748b;
	font-weight: 500;
	font-size: 0.85em;
	border-radius: 20px;
}

/* Action Button */
.cure-my-webinar-action {
	flex-shrink: 0;
}

.cure-my-webinar-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff !important;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 10px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.cure-my-webinar-button:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
	transform: translateY(-1px);
}

.cure-my-webinar-button svg {
	transition: transform 0.2s ease;
}

.cure-my-webinar-button:hover svg {
	transform: translateX(3px);
}

/* Responsive */
@media (max-width: 640px) {
	.cure-my-webinar-card {
		flex-wrap: wrap;
		padding: 16px;
		gap: 16px;
	}

	.cure-my-webinar-date-badge {
		width: 56px;
		height: 56px;
	}

	.cure-my-webinar-day {
		font-size: 1.3em;
	}

	.cure-my-webinar-content {
		flex-basis: calc(100% - 76px);
	}

	.cure-my-webinar-title {
		font-size: 1em;
	}

	.cure-my-webinar-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.cure-my-webinar-action {
		width: 100%;
		margin-top: 4px;
	}

	.cure-my-webinar-button {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   Register Button - Webinar Registration
   ========================================================================== */

.cure-register-button-wrapper {
	display: block;
}

.cure-register-button-wrapper.cure-register-align-left {
	text-align: left;
}

.cure-register-button-wrapper.cure-register-align-center {
	text-align: center;
}

.cure-register-button-wrapper.cure-register-align-right {
	text-align: right;
}

/* Main Button */
.cure-register-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 32px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff !important;
	font-size: 1em;
	font-weight: 600;
	text-decoration: none !important;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
	letter-spacing: 0.01em;
	line-height: 1.4;
}

.cure-register-button:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
	transform: translateY(-2px);
	color: #fff !important;
	text-decoration: none !important;
}

.cure-register-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Already Registered State */
.cure-register-button.cure-already-registered {
	background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
	cursor: default;
	box-shadow: none;
}

.cure-register-button.cure-already-registered:hover {
	background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
	transform: none;
	box-shadow: none;
}

/* Icon */
.cure-register-button-icon {
	display: inline-flex;
	align-items: center;
	font-size: 1.1em;
	line-height: 1;
}

.cure-register-button-icon.icon-before {
	margin-right: 10px;
}

.cure-register-button-icon.icon-after {
	margin-left: 10px;
}

.cure-register-button-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Price */
.cure-register-button-price {
	font-weight: 700;
	opacity: 0.95;
}

.cure-register-button-price.price-before {
	margin-right: 8px;
	padding-right: 10px;
	border-right: 2px solid rgba(255, 255, 255, 0.25);
}

.cure-register-button-price.price-after {
	margin-left: 8px;
	padding-left: 10px;
	border-left: 2px solid rgba(255, 255, 255, 0.25);
}

/* WooCommerce price elements inside button */
.cure-register-button-price del {
	opacity: 0.6;
	font-size: 0.85em;
	margin-right: 6px;
}

.cure-register-button-price ins {
	text-decoration: none;
	background: none;
}

/* Button Style Variations */
.cure-register-button.cure-register-style-outline {
	background: transparent;
	border: 2px solid #10b981;
	color: #10b981 !important;
	box-shadow: none;
}

.cure-register-button.cure-register-style-outline:hover {
	background: #10b981;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.cure-register-button.cure-register-style-minimal {
	background: transparent;
	color: #10b981 !important;
	box-shadow: none;
	padding: 12px 20px;
	border-radius: 8px;
}

.cure-register-button.cure-register-style-minimal:hover {
	background: rgba(16, 185, 129, 0.08);
	box-shadow: none;
	transform: none;
}

/* Responsive */
@media (max-width: 480px) {
	.cure-register-button {
		padding: 14px 24px;
		font-size: 0.95em;
	}

	.cure-register-button-price.price-before,
	.cure-register-button-price.price-after {
		display: block;
		width: 100%;
		padding: 0;
		margin: 4px 0 0 0;
		border: none;
		font-size: 0.9em;
	}
}
