/**
 * Zodiac Gemstone Recommender Styles
 *
 * @package    Zodiac_Gemstone_Recommender
 */

/* Container */
.zgr-container {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.zgr-title {
	font-size: 28px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 30px;
	text-align: center;
}

/* Select Wrapper */
.zgr-select-wrapper {
	margin-bottom: 30px;
}

.zgr-label {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	margin-bottom: 10px;
}

.zgr-select {
	width: 100%;
	padding: 12px 15px;
	font-size: 16px;
	border: 2px solid #ddd;
	border-radius: 6px;
	background-color: #fff;
	color: #333;
	cursor: pointer;
	transition: border-color 0.3s ease;
}

.zgr-select:hover {
	border-color: #999;
}

.zgr-select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Gemstone Container */
.zgr-gemstone-container {
	min-height: 200px;
	margin-top: 30px;
}

.zgr-placeholder {
	text-align: center;
	color: #666;
	font-size: 16px;
	padding: 40px 20px;
	background-color: #f9f9f9;
	border-radius: 8px;
}

/* Loading State */
.zgr-loading {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 16px;
}

.zgr-loading::after {
	content: '...';
	animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
	0%, 20% { content: '.'; }
	40% { content: '..'; }
	60%, 100% { content: '...'; }
}

/* Error State */
.zgr-error {
	padding: 20px;
	background-color: #fee;
	border: 1px solid #fcc;
	border-radius: 6px;
	color: #c33;
	text-align: center;
}

/* Gemstone Card */
.zgr-gemstone-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	gap: 20px;
	animation: fadeIn 0.5s ease-in;
}

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

.zgr-image-wrapper {
	text-align: center;
	margin-bottom: 10px;
}

.zgr-image {
	max-width: 100%;
	height: auto;
	max-height: 300px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	object-fit: cover;
}

.zgr-content {
	flex: 1;
}

.zgr-gemstone-name {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 15px 0;
	text-align: center;
}

.zgr-description {
	font-size: 18px;
	line-height: 1.6;
	color: #555;
	margin: 0 0 20px 0;
	text-align: center;
}

.zgr-benefits {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 2px solid #f0f0f0;
}

.zgr-benefits h4 {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin: 0 0 12px 0;
}

.zgr-benefits p {
	font-size: 16px;
	line-height: 1.7;
	color: #666;
	margin: 0;
}

/* Admin Styles */
.zgr-settings-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.zgr-settings-table thead th {
	background-color: #f5f5f5;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	border: 1px solid #ddd;
}

.zgr-settings-table tbody td {
	padding: 15px;
	border: 1px solid #ddd;
	vertical-align: top;
}

.zgr-settings-table tbody tr:nth-child(even) {
	background-color: #fafafa;
}

.zgr-settings-table input[type="text"],
.zgr-settings-table input[type="url"],
.zgr-settings-table textarea {
	width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
	.zgr-container {
		padding: 15px;
	}

	.zgr-title {
		font-size: 24px;
		margin-bottom: 20px;
	}

	.zgr-gemstone-card {
		padding: 20px;
	}

	.zgr-gemstone-name {
		font-size: 26px;
	}

	.zgr-description {
		font-size: 16px;
	}

	.zgr-settings-table {
		font-size: 14px;
	}

	.zgr-settings-table thead th,
	.zgr-settings-table tbody td {
		padding: 8px;
	}

	.zgr-settings-table thead {
		display: none;
	}

	.zgr-settings-table tbody tr {
		display: block;
		margin-bottom: 15px;
		border: 1px solid #ddd;
		border-radius: 6px;
		overflow: hidden;
	}

	.zgr-settings-table tbody td {
		display: block;
		border: none;
		border-bottom: 1px solid #eee;
		padding: 10px;
	}

	.zgr-settings-table tbody td:last-child {
		border-bottom: none;
	}

	.zgr-settings-table tbody td:before {
		content: attr(data-label);
		font-weight: 600;
		display: block;
		margin-bottom: 5px;
		color: #333;
	}
}

@media (max-width: 480px) {
	.zgr-container {
		padding: 10px;
	}

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

	.zgr-gemstone-card {
		padding: 15px;
	}

	.zgr-gemstone-name {
		font-size: 22px;
	}
}

