/* QuranTeacher Marketplace — base styling.
   Deliberately minimal and namespaced under .qt- so it layers cleanly on
   top of the Kadence child theme without fighting its own styles. */

.qt-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 0.95em;
}
.qt-notice-success { background: #eaf7ea; color: #1e5c1e; border: 1px solid #b6e2b6; }
.qt-notice-error   { background: #fdeaea; color: #7a1f1f; border: 1px solid #f3b8b8; }
.qt-notice-info    { background: #eaf2fb; color: #1c3f66; border: 1px solid #b8d3f3; }

.qt-form .qt-field { margin-bottom: 16px; }
.qt-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.qt-form input[type="text"],
.qt-form input[type="email"],
.qt-form input[type="number"],
.qt-form input[type="file"],
.qt-form select,
.qt-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
}
.qt-form small { display: block; color: #666; margin-top: 4px; }
.qt-hint { color: #666; font-size: 0.9em; }
.qt-form .req { color: #c0392b; }
.qt-checkbox { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin-right: 14px; }
.qt-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qt-field-row > span { flex: 1; min-width: 100px; }

.qt-button {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 6px;
	border: 1px solid #2c6e49;
	background: #2c6e49;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
}
.qt-button:hover { background: #21532f; }

.qt-directory-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}
.qt-directory-filters input,
.qt-directory-filters select { max-width: 220px; }

.qt-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.qt-card {
	display: block;
	padding: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s ease;
}
.qt-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.qt-card-name { margin: 0 0 4px; font-size: 1.1em; }
.qt-card-country,
.qt-card-subjects,
.qt-card-fee { margin: 2px 0; color: #444; font-size: .92em; }
.qt-card-rating { margin-top: 8px; color: #d4a017; font-size: .9em; }
.qt-no-reviews { color: #999; }

.qt-pagination { margin-top: 24px; display: flex; gap: 6px; }
.qt-pagination a { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; }
.qt-pagination a.qt-page-current { background: #2c6e49; color: #fff; border-color: #2c6e49; }

.qt-single-detail { margin-top: 24px; }
.qt-single-meta { list-style: none; padding: 0; margin: 0 0 24px; }
.qt-single-meta li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }

.qt-intro-audio { margin: 0 0 24px; padding: 14px 16px; background: #f7f7f2; border: 1px solid #e6e2d4; border-radius: 4px; }
.qt-intro-audio-heading { margin: 0 0 10px; font-size: 1em; }
.qt-audio-embed { display: block; max-width: 480px; }
.qt-audio-link { font-weight: 600; }

.qt-reviews-list { list-style: none; padding: 0; }
.qt-review { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.qt-review-stars { color: #d4a017; display: block; }
.qt-review-name { display: block; margin: 2px 0; }

.qt-donate-form { max-width: 320px; }

.qt-bank-card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 18px 20px;
	margin: 16px 0 24px;
	max-width: 460px;
	background: #fafafa;
}
.qt-bank-card h3 { margin-top: 0; }
.qt-reveal-gate p { margin-top: 0; color: #555; font-size: 0.95em; }
.qt-reveal-gate form { margin: 10px 0 0; }
.qt-bank-table { width: 100%; border-collapse: collapse; }
.qt-bank-table th { text-align: left; padding: 6px 10px 6px 0; color: #555; font-weight: 600; white-space: nowrap; vertical-align: top; }
.qt-bank-table td { padding: 6px 0; font-family: monospace; font-size: 1.02em; }
.qt-bank-notes { color: #666; font-size: 0.9em; margin-top: 10px; margin-bottom: 0; }

.qt-report-details {
	margin: 18px 0 4px;
	padding: 12px 16px;
	border: 1px solid #eee;
	border-radius: 8px;
	background: #fcfcfc;
}
.qt-report-details summary {
	cursor: pointer;
	font-size: 0.92em;
	color: #888;
	font-weight: 600;
	list-style: none;
}
.qt-report-details summary::-webkit-details-marker { display: none; }
.qt-report-details summary::before { content: "\26A0  "; }
.qt-report-details[open] summary { margin-bottom: 12px; color: #555; }
.qt-report-form .qt-field-row { margin-bottom: 10px; }
.qt-report-form textarea { width: 100%; max-width: 420px; min-height: 80px; }
.qt-report-form select,
.qt-report-form input[type="email"] { max-width: 260px; }
.qt-report-notice { font-size: 0.9em; color: #2e7d32; margin: 0 0 10px; }

/* Admin-side report list inside the teacher review meta box. */
.qt-admin-reports { margin: 14px 0; padding: 10px 12px; background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; }
.qt-admin-reports h4 { margin: 0 0 8px; }
.qt-admin-reports ul { margin: 0; padding-left: 18px; }
.qt-admin-reports li { margin-bottom: 6px; }
.qt-admin-reports .qt-report-resolved { color: #888; text-decoration: line-through; }

/* Language switcher, shown at the top of every quranteacher_* shortcode. */
.qt-lang-switcher { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; font-size: 0.88em; }
.qt-lang-link { padding: 4px 10px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #444; }
.qt-lang-link.is-active { background: #2c6e49; border-color: #2c6e49; color: #fff; font-weight: 600; }

/* RTL support: mirrors layout for Urdu/Arabic, whether set via WordPress's
   own site-wide language (body.rtl / html[dir="rtl"], set by WP core) or
   picked per-visitor from the language switcher above (which sets dir="rtl"
   directly on our own .qt-root wrapper — scoped to the plugin's own markup
   only, so it never touches the surrounding theme's header/footer/nav). */
body.rtl .qt-field-row,
html[dir="rtl"] .qt-field-row,
.qt-root[dir="rtl"] .qt-field-row { direction: rtl; }
body.rtl .qt-bank-table th,
html[dir="rtl"] .qt-bank-table th,
.qt-root[dir="rtl"] .qt-bank-table th { text-align: right; padding: 6px 0 6px 10px; }
body.rtl .qt-checkbox,
html[dir="rtl"] .qt-checkbox,
.qt-root[dir="rtl"] .qt-checkbox { margin-right: 0; margin-left: 14px; }
body.rtl .qt-single-meta,
html[dir="rtl"] .qt-single-meta,
.qt-root[dir="rtl"] .qt-single-meta { text-align: right; }
.qt-root[dir="rtl"] .qt-lang-switcher,
.qt-root[dir="rtl"] .qt-directory-filters,
.qt-root[dir="rtl"] .qt-pagination { direction: rtl; }
.qt-root[dir="rtl"] .qt-form label { text-align: right; }
.qt-root[dir="rtl"] .qt-bank-table td { font-family: monospace; direction: ltr; text-align: right; }
