/* Urdu Poetry - Poet Profiles styling */

/* Hide the theme's large automatic Featured Image banner on poet/poem
   pages — our own small avatar (below) is unaffected since it doesn't
   use the theme's featured-image markup/classes. If your theme still
   shows a big image after this, right-click it → Inspect, find its
   class name, and send it to me so I can add a matching rule. */
body.single-poet .post-thumbnail,
body.single-poet .entry-thumbnail,
body.single-poet .featured-image,
body.single-poet > img.wp-post-image,
body.single-poet .entry-header .wp-post-image,
body.single-poem .post-thumbnail,
body.single-poem .entry-thumbnail,
body.single-poem .featured-image,
body.single-poem > img.wp-post-image,
body.single-poem .entry-header .wp-post-image {
	display: none !important;
}

.upp-wrap {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Poet profile header --- */
.upp-poet-header {
	display: flex;
	gap: 24px;
	align-items: center;
	padding: 30px;
	background: #faf8f5;
	border-radius: 12px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.upp-poet-photo img,
.upp-poet-photo .upp-avatar-img {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.upp-poet-photo-placeholder {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: #e3ddd3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: #a89f8f;
}
.upp-poet-info h1 {
	margin: 0 0 6px;
	font-size: 28px;
}
.upp-poet-meta-row {
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 8px;
	font-size: 15px;
	color: #555;
}
.upp-flag {
	font-size: 22px;
}
.upp-flag-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: #555;
}
.upp-poem-count-badge {
	background: #efe6d8;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}
.upp-poet-bio {
	margin-top: 10px;
	line-height: 1.7;
	color: #444;
}

/* --- Star ratings --- */
.upp-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.upp-star {
	font-size: 22px;
	cursor: pointer;
	color: #d8d2c4;
	transition: color 0.15s;
}
.upp-star-filled {
	color: #e0a72e;
}
.upp-stars[data-voted="1"] .upp-star {
	cursor: default;
}
.upp-rating-text {
	margin-left: 8px;
	font-size: 13px;
	color: #777;
}

/* --- Poem list on poet profile --- */
.upp-poem-list {
	display: grid;
	gap: 14px;
}
.upp-poem-card {
	padding: 18px 22px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	transition: box-shadow 0.15s;
}
.upp-poem-card:hover {
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.upp-poem-card a {
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	color: #2a2a2a;
}
.upp-poem-card-excerpt {
	margin-top: 6px;
	color: #666;
	font-size: 14px;
}

/* --- Single poem --- */
.upp-poem-body {
	font-size: 19px;
	line-height: 2.1;
	white-space: pre-wrap;
	margin: 30px 0;
	padding: 30px;
	background: #faf8f5;
	border-radius: 12px;
}
.upp-poem-by {
	font-size: 15px;
	color: #666;
	margin-bottom: 4px;
}
.upp-poem-by a {
	font-weight: 600;
	color: #2a2a2a;
}
.upp-poem-rating-row {
	margin: 20px 0 30px;
}

/* --- Poet archive/directory --- */
.upp-poet-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 22px;
}
.upp-poet-card {
	text-align: center;
	padding: 24px 16px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	display: block;
}
.upp-poet-card:hover {
	box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}
.upp-poet-card img,
.upp-poet-card .upp-avatar-img,
.upp-poet-card .upp-poet-photo-placeholder {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 12px;
}
.upp-poet-card h3 {
	margin: 0 0 4px;
	font-size: 17px;
}
.upp-poet-card-sub {
	font-size: 13px;
	color: #777;
}
