/**
 * QR-TICKETS Public CSS
 * Styles for the front-end ticket redemption page
 */

.qrt-ticket-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.qrt-ticket-card {
	background: white;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	max-width: 450px;
	padding: 50px 40px;
	text-align: center;
	animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.qrt-status-icon {
	font-size: 80px;
	margin-bottom: 20px;
	animation: bounce 0.6s ease-out;
}

@keyframes bounce {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

.qrt-status-title {
	font-size: 28px;
	font-weight: 700;
	color: #333;
	margin-bottom: 15px;
	line-height: 1.2;
}

.qrt-status-message {
	font-size: 16px;
	color: #666;
	margin-bottom: 25px;
	line-height: 1.6;
}

.qrt-details {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 20px;
	margin: 25px 0;
	text-align: left;
}

.qrt-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e9ecef;
}

.qrt-detail-row:last-child {
	border-bottom: none;
}

.qrt-detail-label {
	font-weight: 600;
	color: #555;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.qrt-detail-value {
	color: #333;
	font-size: 15px;
	word-break: break-word;
	text-align: right;
	flex: 1;
	margin-left: 20px;
}

.qrt-detail-value code {
	background: white;
	padding: 6px 12px;
	border-radius: 4px;
	border: 1px solid #dee2e6;
	font-family: 'Monaco', 'Menlo', monospace;
	font-size: 13px;
}

.qrt-status-success .qrt-status-title {
	color: #28a745;
}

.qrt-status-success .qrt-status-icon {
	animation: checkmark 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmark {
	0% {
		transform: scale(0) rotate(-45deg);
		opacity: 0;
	}
	50% {
		transform: scale(1.2) rotate(10deg);
	}
	100% {
		transform: scale(1) rotate(0);
		opacity: 1;
	}
}

.qrt-status-warning .qrt-status-title {
	color: #ffc107;
}

.qrt-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e9ecef;
	font-size: 13px;
	color: #999;
}

.qrt-footer p {
	margin: 5px 0;
}

.qrt-action-button {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 30px;
	background: #0073aa;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 600;
	transition: background 0.3s ease;
}

.qrt-action-button:hover {
	background: #005a87;
	text-decoration: none;
}

.qrt-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0073aa;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Responsive Design */
@media (max-width: 480px) {
	.qrt-ticket-page {
		padding: 15px;
	}

	.qrt-ticket-card {
		padding: 30px 20px;
	}

	.qrt-status-icon {
		font-size: 60px;
	}

	.qrt-status-title {
		font-size: 22px;
	}

	.qrt-status-message {
		font-size: 14px;
	}

	.qrt-detail-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.qrt-detail-value {
		text-align: left;
		margin-left: 0;
		margin-top: 8px;
	}
}
