/*
 * MND plugin styling for Captivating Felicity Jones
 * ------------------------------------------------
 * Part 1: MND Fan Sidebar  (class prefix .mndfs-)
 * Part 2: MND Filmography  (class prefix .mndfilm-)
 *
 * Class names marked [documented] come from the MonicaNDesign demo/docs.
 * Others use wildcard selectors so they still match if the plugin's markup
 * uses slightly different names – adjust here if needed.
 */

/* =========================================================
   1. MND FAN SIDEBAR
   ========================================================= */

/* ---- Latest Projects ---- */
.widget [class*="mndfs-project"] { box-sizing: border-box; }

.widget .mndfs-project,
.widget li:has(.mndfs-project-title) { /* each project entry */
	overflow: hidden;
}

.mndfs-project-image { /* [documented] */
	float: left;
	margin: 0 14px 6px 0;
	padding: 0;
}
.mndfs-project-image img {
	display: block;
	width: 84px;
	height: 112px;
	object-fit: cover;
	border-radius: 999px 999px 0 0;               /* little deco arch */
	border: 2px solid var(--gold);
	padding: 2px;
	background: var(--paper);
	opacity: 1;
	transition: none;
}
.mndfs-project-image img:hover { opacity: 1; }

.mndfs-project-title { /* [documented] */
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--noir);
	margin: 2px 0 2px;
	padding: 0;
	text-transform: none;
	letter-spacing: 0;
}
.mndfs-project-title a { color: inherit; text-decoration: none; }
.mndfs-project-title a:hover { color: var(--velvet); }
.mndfs-project-year { /* [documented] */
	font-weight: 400;
	color: var(--muted);
	letter-spacing: 0;
}
.mndfs-project-role { /* [documented] */
	font-style: italic;
	color: var(--velvet);
	margin: 0;
	padding: 0;
	text-transform: none;
}
.mndfs-project-status { /* [documented] */
	font-family: var(--sans);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 2px 0 0;
	padding: 0;
	text-decoration: none;
}
.mndfs-project-synopsis { /* [documented] */
	clear: both;
	margin: 10px 0 8px;
	padding-left: 14px;
	border-left: 2px solid var(--gold);
	font-size: .98rem;
	line-height: 1.5;
	color: #5c5144;
}
.mndfs-project-links { /* [documented] */
	margin: 0 0 4px;
}
.mndfs-project-links a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 2px 10px;
	border: 1px solid var(--line);
	font-family: var(--sans);
	font-size: .66rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--noir);
	background: #fff;
}
.mndfs-project-links a:hover {
	background: var(--noir);
	border-color: var(--noir);
	color: var(--gold-light);
}

/* ---- Welcome Message ---- */
.mndfs-welcome-message { /* [documented] */
	background-position: top center;
	background-size: cover;
	border: 1px solid var(--gold);
	box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line);
}
.mndfs-welcome-text { /* [documented] */
	padding: 28px 22px !important;
	text-align: center;
	color: #fff;
	background: linear-gradient(rgba(21,17,14,.55), rgba(21,17,14,.78));
	font-size: 1.05rem;
}
.mndfs-welcome-text a { color: var(--gold-light); }
.mndfs-welcome-text img { max-width: 100%; height: auto; }

/* ---- Featured Albums ---- */
[class*="mndfs-album"] { box-sizing: border-box; }
.widget [class*="mndfs-album"] a { text-decoration: none; }
.widget [class*="mndfs-album-title"],
.widget [class*="mndfs-album"] h3,
.widget [class*="mndfs-album"] h4 {
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 700;
	margin: 6px 0 0;
	line-height: 1.25;
}
.widget [class*="mndfs-album-date"],
.widget [class*="mndfs-album"] time {
	display: block;
	font-family: var(--sans);
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold);
}
.widget [class*="mndfs-album"] img {
	display: block;
	width: 100%;
	height: auto;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px var(--line), 0 6px 14px rgba(60,40,10,.14);
}

/* ---- Choice / Elite Affiliates ---- */
.widget [class*="mndfs-affiliate"] { box-sizing: border-box; }
.widget [class*="mndfs-affiliate"] img {
	display: inline-block;
	width: 64px;
	height: 64px;
	object-fit: cover;
	margin: 0 3px 6px 0;
	border-radius: 50%;
	border: 2px solid var(--line);
	padding: 2px;
	background: #fff;
	vertical-align: top;
	transition: border-color .2s, transform .2s;
}
.widget [class*="mndfs-affiliate"] a:hover img { border-color: var(--gold); }
.widget [class*="mndfs-affiliate"] a { text-decoration: none; }
.widget [class*="mndfs-affiliate"] ul { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.widget [class*="mndfs-affiliate"] li { border: 0; padding: .1rem 0; }
.widget [class*="mndfs-affiliate"] li a {
	font-size: 1rem;
	color: var(--noir);
}
.widget [class*="mndfs-affiliate"] li a:hover { color: var(--velvet); }
.widget [class*="mndfs-more"],
.widget [class*="mndfs-affiliate"] .more {
	display: block;
	margin-top: .6rem;
	text-align: center;
	font-family: var(--sans);
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

/* =========================================================
   2. MND FILMOGRAPHY
   ========================================================= */

/* ---- Project list (shortcode / archive) ---- */
.mndfilm-project-list-row { /* [documented] */
	position: relative;
	display: flex;
	gap: 1.6rem;
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--line);
	padding: 1.8rem 2rem;
	margin: 0 0 1.6rem;
}
.mndfilm-project-list-row::after { content: ''; display: block; clear: both; }
.mndfilm-project-list-row img {
	flex: 0 0 auto;
	display: block;
	width: 130px;
	max-width: 32%;
	height: auto;
	border: 4px solid #fff;
	box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(60,40,10,.18);
}
.mndfilm-project-list-row h2,
.mndfilm-project-list-row h3,
.mndfilm-project-list-row [class*="mndfilm-project-title"] {
	margin: 0 0 .2rem;
	font-size: 1.6rem;
	line-height: 1.2;
}
.mndfilm-project-list-row h2 a,
.mndfilm-project-list-row h3 a { color: var(--noir); text-decoration: none; }
.mndfilm-project-list-row h2 a:hover,
.mndfilm-project-list-row h3 a:hover { color: var(--velvet); }
.mndfilm-project-list-row p { margin: .4rem 0; }
.mndfilm-project-list-row [class*="role"],
.mndfilm-project-list-row [class*="year"] { font-style: italic; color: var(--velvet); }

/* Category / tag archive header (plugin uses the_archive_title) */
.post-type-archive-project .page-title,
.tax-project_category .page-title,
.tax-project_tag .page-title { font-family: var(--display); font-weight: 400; }

/* ---- Single project page ---- */
.mndfilm-project-content { /* [documented] */
	margin: 0 0 1.6rem;
}
.mndfilm-project-content [class*="mndfilm-"] { box-sizing: border-box; }
.mndfilm-project-content h2,
.mndfilm-project-content h3 {
	font-size: 1.35rem;
	margin: 1.6rem 0 .6rem;
	padding-bottom: .35rem;
	border-bottom: 1px solid var(--line);
}
.mndfilm-project-content img {
	max-width: 100%;
	height: auto;
}
.mndfilm-project-content [class*="poster"] img,
.mndfilm-project-content [class*="image"] img {
	border: 5px solid #fff;
	box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(60,40,10,.2);
}
.mndfilm-project-content dl { margin: 0 0 1rem; display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; }
.mndfilm-project-content dt {
	font-family: var(--sans);
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold);
	padding-top: .35em;
}
.mndfilm-project-content dd { margin: 0; }
.mndfilm-project-content table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.mndfilm-project-content th,
.mndfilm-project-content td { text-align: left; padding: .5rem .8rem; border-bottom: 1px dotted var(--line); vertical-align: top; }
.mndfilm-project-content th {
	width: 28%;
	font-family: var(--sans);
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 600;
}
.mndfilm-project-content ul { padding-left: 1.2rem; }
.mndfilm-project-content [class*="links"] a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 12px;
	border: 1px solid var(--line);
	font-family: var(--sans);
	font-size: .7rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--noir);
	background: #fff;
}
.mndfilm-project-content [class*="links"] a:hover { background: var(--noir); color: var(--gold-light); border-color: var(--noir); }

/* ---- Project navigation (mndfilm_project_navigation) ---- */
[class*="mndfilm-project-nav"],
.mndfilm-navigation {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.6rem 0;
	font-family: var(--sans);
	font-size: .8rem;
	letter-spacing: .08em;
}
[class*="mndfilm-project-nav"] a { color: var(--noir); text-decoration: none; }
[class*="mndfilm-project-nav"] a:hover { color: var(--velvet); }

@media (max-width: 600px) {
	.mndfilm-project-list-row { flex-direction: column; padding: 1.4rem 1.2rem; }
	.mndfilm-project-list-row img { width: 140px; max-width: 60%; margin: 0 auto; }
	.mndfilm-project-content dl { grid-template-columns: 1fr; }
	.mndfilm-project-content th { width: auto; }
}
