/**
 * Quote of the Day Styles
 * Admin and Frontend styling
 *
 * @package QuotesMentorCore
 */

/* ==========================================================================
   ADMIN STYLES
   ========================================================================== */

.qm-qotd-admin-wrap {
	max-width: 1200px;
}

/* Current Quote Card */
.qm-qotd-current-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.qm-qotd-current-card h2 {
	margin-top: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.qm-qotd-quote-display {
	background: #f6f7f7;
	border-left: 4px solid #2271b1;
	padding: 20px;
	margin: 20px 0;
	font-size: 16px;
	line-height: 1.6;
	font-style: italic;
	color: #2c3338;
}

.qm-qotd-quote-display p {
	margin: 0;
}

.qm-qotd-meta {
	margin: 15px 0;
	color: #50575e;
}

.qm-qotd-meta p {
	margin: 8px 0;
	line-height: 1.6;
}

.qm-qotd-meta a {
	color: #2271b1;
	text-decoration: none;
}

.qm-qotd-meta a:hover {
	color: #135e96;
	text-decoration: underline;
}

.qm-qotd-author,
.qm-qotd-topics,
.qm-qotd-timing {
	font-size: 14px;
}

/* Stats Card */
.qm-qotd-stats-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.qm-qotd-stats-card h2 {
	margin-top: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.qm-qotd-stats-card .widefat td {
	padding: 12px 10px;
	vertical-align: middle;
}

/* Shortcode Card */
.qm-qotd-shortcode-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.qm-qotd-shortcode-card h2 {
	margin-top: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.qm-qotd-shortcode-card code {
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
}

/* ==========================================================================
   FRONTEND STYLES
   ========================================================================== */

/* Base Quote Container */
.qm-quote-of-the-day {
	margin: 20px 0;
	padding: 0;
	font-family: inherit;
}

/* Quote Text */
.qm-qotd-text {
	margin: 0 0 15px 0;
	padding: 0;
	font-size: 1.2em;
	line-height: 1.6;
	font-style: italic;
	color: #333;
}

.qm-qotd-text p {
	margin: 0;
	padding: 0;
}

/* Quote Meta (Author & Topics) */
.qm-qotd-meta {
	margin: 0;
	padding: 0;
	font-size: 0.95em;
	color: #666;
}

.qm-qotd-author {
	font-style: normal;
	font-weight: 600;
	display: block;
	margin-bottom: 5px;
}

.qm-qotd-author::before {
	content: "— ";
}

.qm-qotd-author a {
	color: #2271b1;
	text-decoration: none;
	transition: color 0.2s ease;
}

.qm-qotd-author a:hover {
	color: #135e96;
	text-decoration: underline;
}

.qm-qotd-topics {
	font-size: 0.9em;
	color: #777;
	margin-top: 5px;
}

.qm-qotd-topics a {
	color: #2271b1;
	text-decoration: none;
	transition: color 0.2s ease;
}

.qm-qotd-topics a:hover {
	color: #135e96;
	text-decoration: underline;
}

/* ==========================================================================
   STYLE VARIANTS
   ========================================================================== */

/* Default Style */
.qm-style-default {
	border-left: 4px solid #2271b1;
	padding-left: 20px;
}

/* Card Style */
.qm-style-card {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.qm-style-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.qm-style-card .qm-qotd-text {
	font-size: 1.3em;
	color: #1d2327;
}

/* Minimal Style */
.qm-style-minimal {
	padding: 0;
	border: none;
}

.qm-style-minimal .qm-qotd-text {
	font-size: 1.1em;
	font-style: normal;
	margin-bottom: 10px;
}

.qm-style-minimal .qm-qotd-author {
	font-size: 0.9em;
	color: #888;
}

/* No Quote Available */
.qm-no-quote {
	padding: 15px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
}

.qm-no-quote p {
	margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media screen and (max-width: 782px) {
	/* Admin adjustments for mobile */
	.qm-qotd-current-card,
	.qm-qotd-stats-card,
	.qm-qotd-shortcode-card {
		padding: 15px;
	}

	.qm-qotd-quote-display {
		padding: 15px;
		font-size: 15px;
	}

	/* Frontend adjustments for mobile */
	.qm-qotd-text {
		font-size: 1.1em;
	}

	.qm-style-card {
		padding: 20px;
	}

	.qm-style-card .qm-qotd-text {
		font-size: 1.2em;
	}
}

@media screen and (max-width: 600px) {
	.qm-style-default {
		padding-left: 15px;
	}

	.qm-qotd-text {
		font-size: 1em;
	}

	.qm-style-card {
		padding: 15px;
	}

	.qm-style-card .qm-qotd-text {
		font-size: 1.1em;
	}
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
	.qm-quote-of-the-day {
		page-break-inside: avoid;
		border: 1px solid #ddd;
		padding: 15px;
		margin: 10px 0;
	}

	.qm-qotd-text {
		color: #000;
	}

	.qm-qotd-author a,
	.qm-qotd-topics a {
		color: #000;
		text-decoration: none;
	}

	.qm-style-card {
		box-shadow: none;
	}
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus styles for keyboard navigation */
.qm-qotd-author a:focus,
.qm-qotd-topics a:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Screen reader only text */
.qm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ==========================================================================
   DARK MODE SUPPORT (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
	.qm-style-card {
		background: #2c2c2c;
		border-color: #444;
		color: #e0e0e0;
	}

	.qm-style-card .qm-qotd-text {
		color: #e0e0e0;
	}

	.qm-qotd-author a,
	.qm-qotd-topics a {
		color: #58a6ff;
	}

	.qm-qotd-author a:hover,
	.qm-qotd-topics a:hover {
		color: #79c0ff;
	}
}