/**
 * Frontend styles for Star Beauty Loyalty
 *
 * @package StarBeautyLoyalty
 */

/* Progress Banner Styles */
.star-loyalty-banner {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	padding: 35px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	max-width: 100%;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
}

.star-loyalty-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: #2c3e50;
}

.banner-header {
	text-align: center;
	margin-bottom: 25px;
}

.banner-icon {
	font-size: 32px;
	display: block;
	margin-bottom: 10px;
}

.banner-title {
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 5px 0;
	line-height: 1.2;
}

.banner-subtitle {
	font-size: 13px;
	color: #7f8c8d;
	margin: 0;
}

.progress-wrapper {
	background: #fafafa;
	border: 1px solid #e5e5e5;
	padding: 20px;
	margin-bottom: 20px;
	border-radius: 8px;
}

.progress-container {
	background: #e5e5e5;
	height: 30px;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 12px;
	position: relative;
}

.progress-fill {
	background: #2c3e50;
	height: 100%;
	border-radius: 4px;
	transition: width 0.6s ease;
	min-width: 0;
}

.progress-label {
	text-align: center;
	font-size: 14px;
	color: #2c3e50;
	font-weight: 600;
	margin: 0;
}

.details-row {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-top: 20px;
}

.detail-item {
	text-align: center;
}

.detail-number {
	font-size: 26px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 3px;
	line-height: 1;
}

.detail-text {
	font-size: 12px;
	color: #7f8c8d;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Winner Message Styles */
.star-loyalty-winner {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	padding: 50px 35px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	max-width: 100%;
	border-radius: 8px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.star-loyalty-winner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: #2c3e50;
}

.winner-icon {
	font-size: 64px;
	display: block;
	margin-bottom: 20px;
}

.winner-heading {
	font-size: 32px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 15px 0;
	line-height: 1.2;
}

.winner-message {
	font-size: 20px;
	color: #2c3e50;
	margin: 0 0 20px 0;
}

.winner-milestone {
	font-size: 16px;
	color: #2c3e50;
	margin: 0 0 10px 0;
	font-weight: 600;
}

.winner-orders {
	font-size: 14px;
	color: #7f8c8d;
	margin: 0 0 25px 0;
}

.winner-contact {
	font-size: 14px;
	color: #666;
	font-style: italic;
	margin: 0;
}

/* Lookup Page Styles */
.star-loyalty-lookup-page {
	max-width: 100%;
	margin: 30px auto;
	padding: 0 20px;
}

.lookup-header {
	text-align: center;
	margin-bottom: 30px;
}

.lookup-header h2 {
	color: #2c3e50;
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 10px;
}

.lookup-header p {
	color: #7f8c8d;
	font-size: 14px;
}

.lookup-form {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lookup-form .form-group {
	margin-bottom: 20px;
}

.lookup-form label {
	display: block;
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
}

.lookup-form input[type="email"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.lookup-form input[type="email"]:focus {
	outline: none;
	border-color: #2c3e50;
}

.lookup-error {
	background: #ffebee;
	border: 1px solid #ef5350;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.lookup-error p {
	color: #c62828;
	margin: 0;
	font-size: 14px;
}

.form-submit {
	text-align: center;
}

.lookup-form button.button,
.lookup-form button[type="submit"] {
	background: #2c3e50;
	color: #fff;
	border: none;
	padding: 12px 40px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.lookup-form button.button:hover,
.lookup-form button[type="submit"]:hover {
	background: #1a252f;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lookup-results {
	margin-top: 30px;
}

.no-orders-message {
	background: #fff9e6;
	border: 1px solid #ffe082;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
}

.no-orders-message p {
	color: #f57f17;
	margin: 0;
	font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 600px) {
	.star-loyalty-banner,
	.star-loyalty-winner {
		padding: 20px;
	}

	.banner-icon {
		font-size: 28px;
	}

	.banner-title {
		font-size: 20px;
	}

	.banner-subtitle {
		font-size: 11px;
	}

	.progress-wrapper {
		padding: 15px;
	}

	.progress-container {
		height: 25px;
	}

	.progress-label {
		font-size: 12px;
	}

	.details-row {
		flex-direction: column;
		gap: 20px;
	}

	.detail-number {
		font-size: 22px;
	}

	.detail-text {
		font-size: 11px;
	}

	.winner-icon {
		font-size: 48px;
	}

	.winner-heading {
		font-size: 26px;
	}

	.winner-message {
		font-size: 17px;
	}

	.winner-milestone {
		font-size: 14px;
	}

	.winner-orders,
	.winner-contact {
		font-size: 13px;
	}

	.lookup-form {
		padding: 20px;
	}

	.milestone-header {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 8px !important;
	}

	.milestone-reward {
		font-size: 14px !important;
	}

	.milestone-status {
		font-size: 11px !important;
	}
}

/* Multi-Milestone Styles */
.milestones-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.milestone-item {
	background: #fafafa;
	border: 1px solid #e5e5e5;
	padding: 18px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.milestone-item.completed {
	background: #f0f9f4;
	border-color: #27ae60;
}

.milestone-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	gap: 15px;
}

.milestone-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.milestone-number {
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.2;
}

.milestone-reward {
	font-size: 15px;
	font-weight: 500;
	color: #666666;
	line-height: 1.2;
}

.milestone-status {
	font-size: 13px;
	font-weight: 500;
	color: #7f8c8d;
	white-space: nowrap;
}

.milestone-status.completed {
	color: #27ae60;
	font-weight: 600;
}

.milestone-progress-container {
	background: #e5e5e5;
	height: 12px;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.milestone-progress-fill {
	background: #2c3e50;
	height: 100%;
	border-radius: 6px;
	transition: width 0.6s ease;
	min-width: 0;
}

.milestone-progress-fill.completed {
	background: #27ae60;
}

/* Single Progress Bar Styles */
.single-progress-wrapper {
	position: relative;
	padding: 80px 60px 50px 60px;
}

.progress-track {
	height: 20px;
	background: #e5e5e5;
	border-radius: 10px;
	position: relative;
	overflow: visible;
}

.progress-fill {
	height: 100%;
	border-radius: 10px;
	transition: width 0.6s ease;
	background: linear-gradient(to right, #27ae60, #2c3e50);
}

.milestone-markers-container {
	position: absolute;
	top: 80px;
	left: 60px;
	right: 60px;
	height: 20px;
}

.milestone-marker {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.milestone-marker-dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: white;
	border: 5px solid #2c3e50;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.milestone-marker.completed .milestone-marker-dot {
	background: #27ae60;
	border-color: #27ae60;
}

.milestone-marker-dot .checkmark {
	color: #ffffff;
	font-size: 18px;
	font-weight: bold;
	line-height: 1;
}

.milestone-reward-label {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 14px;
	border-radius: 6px;
	white-space: nowrap;
	font-size: 13px;
	font-weight: bold;
	border: 2px solid #2c3e50;
	background: #ffffff;
	color: #2c3e50;
}

.milestone-marker.completed .milestone-reward-label {
	background: #d4edda;
	border-color: #27ae60;
	color: #27ae60;
}

.milestone-orders-label {
	position: absolute;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	color: #7f8c8d;
}

.current-status {
	text-align: center;
	margin-top: 20px;
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
}

/* Qualifying Notice Styles */
.qualifying-notice {
	text-align: center;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid #e5e5e5;
	font-size: 11px;
	color: #9ca3af;
	line-height: 1.4;
}

.qualifying-notice strong {
	color: #6b7280;
	font-weight: 600;
}

/* Single Progress Bar Responsive Styles */
@media (max-width: 600px) {
	.single-progress-wrapper {
		padding: 60px 40px 40px 40px;
	}

	.progress-track {
		height: 16px;
	}

	.milestone-markers-container {
		top: 60px;
		left: 40px;
		right: 40px;
		height: 16px;
	}

	.milestone-marker-dot {
		width: 28px;
		height: 28px;
		border: 4px solid #2c3e50;
	}

	.milestone-marker-dot .checkmark {
		font-size: 16px;
	}

	.milestone-reward-label {
		bottom: 45px;
		font-size: 11px;
		padding: 8px 10px;
	}

	.milestone-orders-label {
		top: 45px;
		font-size: 11px;
	}

	.current-status {
		font-size: 14px;
		margin-top: 15px;
	}

	.qualifying-notice {
		margin-top: 12px;
		padding-top: 10px;
		font-size: 10px;
	}
}
