/**
 * NEF Ticket Display Styles
 *
 * Styles for different ticket sales modes (free, off-site, on-site).
 *
 * @package NEF_Platform_Core
 * @since 1.0.0
 */

/* ==========================================================================
   Free Event Display
   ========================================================================== */

.nef-free-event-display {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-radius: 12px;
	padding: 40px;
	margin: 32px 0;
	border: 2px solid #86efac;
}

.nef-free-event-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #10b981;
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 24px;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 20px;
}

.nef-free-event-badge svg {
	width: 20px;
	height: 20px;
}

.nef-free-event-content h3 {
	margin: 0 0 12px 0;
	font-size: 28px;
	font-weight: 700;
	color: #065f46;
}

.nef-free-event-content > p {
	margin: 0 0 24px 0;
	font-size: 16px;
	color: #047857;
	line-height: 1.6;
}

/* ==========================================================================
   RSVP Section
   ========================================================================== */

.nef-free-event-rsvp {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #86efac;
}

.nef-rsvp-btn {
	background: #10b981;
	color: #ffffff;
	border: none;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nef-rsvp-btn:hover:not(:disabled) {
	background: #059669;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nef-rsvp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.nef-rsvp-btn.rsvped {
	background: #065f46;
	position: relative;
}

.nef-rsvp-btn.rsvped::before {
	content: '✓ ';
	font-weight: bold;
}

.nef-rsvp-note {
	margin: 12px 0 0 0;
	font-size: 13px;
	color: #047857;
	font-style: italic;
}

/* ==========================================================================
   Login Prompt (Free Events)
   ========================================================================== */

.nef-free-event-login {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #86efac;
}

.nef-btn-secondary {
	background: #ffffff;
	color: #10b981;
	border: 2px solid #10b981;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-block;
	text-decoration: none;
}

.nef-btn-secondary:hover {
	background: #10b981;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
	.nef-free-event-display {
		padding: 24px;
		margin: 20px 0;
	}

	.nef-free-event-content h3 {
		font-size: 22px;
	}

	.nef-rsvp-btn,
	.nef-btn-secondary {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.nef-free-event-display {
		padding: 20px;
		border-radius: 8px;
	}

	.nef-free-event-content h3 {
		font-size: 20px;
	}

	.nef-free-event-badge {
		font-size: 13px;
		padding: 6px 12px;
	}
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.nef-rsvp-btn:focus-visible,
.nef-btn-secondary:focus-visible {
	outline: 2px solid #10b981;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.nef-rsvp-btn,
	.nef-btn-secondary {
		transition: none !important;
	}

	.nef-rsvp-btn:hover,
	.nef-btn-secondary:hover {
		transform: none;
	}
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.nef-rsvp-btn.loading {
	pointer-events: none;
	opacity: 0.7;
}

.nef-rsvp-btn.loading::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	margin-left: 8px;
}

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