/**
 * Quote Generator - Frontend Styles
 *
 * @package QuoteGenerator
 * @since 1.0.0
 */

/* Container */
.qg-container {
	max-width: 700px;
	margin: 0 auto;
	padding: 40px 30px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
	position: relative;
	transition: opacity 0.3s ease;
}

.qg-container.qg-loading-state {
	opacity: 0.7;
}

/* Quote Wrapper */
.qg-quote-wrapper {
	position: relative;
	margin-bottom: 30px;
	text-align: center;
}

/* Quotation Mark */
.qg-quote-mark {
	font-size: 80px;
	line-height: 1;
	font-family: Georgia, serif;
	color: #e0e0e0;
	margin-bottom: -20px;
}

/* Quote Text */
.qg-quote-text {
	font-size: 24px;
	line-height: 1.6;
	font-style: italic;
	margin: 0 0 20px 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	/* Color set via inline styles from admin settings */
}

/* Author */
.qg-quote-author {
	font-size: 18px;
	line-height: 1.4;
	margin: 0;
	font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	/* Color set via inline styles from admin settings */
}

/* Button */
.qg-button {
	display: block;
	width: 100%;
	max-width: 250px;
	margin: 0 auto;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	/* Background and text color set via inline styles from admin settings */
}

.qg-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.qg-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qg-button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
}

/* Loading Indicator */
.qg-loading {
	text-align: center;
	margin-top: 15px;
	font-size: 14px;
	color: #666;
	font-style: italic;
}

/* Error Messages */
.qg-error,
.qg-error-message {
	background: #f8d7da;
	color: #721c24;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	border-left: 4px solid #f5c6cb;
	font-size: 14px;
	line-height: 1.5;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.qg-container {
		padding: 30px 20px;
		margin: 0 15px;
	}

	.qg-quote-mark {
		font-size: 60px;
		margin-bottom: -15px;
	}

	.qg-quote-text {
		font-size: 20px;
		margin-bottom: 15px;
	}

	.qg-quote-author {
		font-size: 16px;
	}

	.qg-button {
		font-size: 15px;
		padding: 12px 24px;
	}
}

@media screen and (max-width: 480px) {
	.qg-container {
		padding: 25px 15px;
	}

	.qg-quote-text {
		font-size: 18px;
	}

	.qg-quote-author {
		font-size: 15px;
	}

	.qg-button {
		max-width: 100%;
	}
}

/* Accessibility */
.qg-button:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Animation classes (for future use) */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.qg-fade-in {
	animation: fadeIn 0.5s ease;
}
