/*
Theme Name: TrendMacro
Theme URI: https://trendmacro.com
Author: Crucial Creative
Author URI: https://crucialcreative.com
Description: A modern, minimal WordPress block theme emulating the look of the TrendMacro (Drupal "wayfire") site — Roboto Condensed type, red accent, centered single-column layout with a right sidebar.
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 7.4
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendmacro
*/

/*
 * Most styling is driven by theme.json. The rules below cover details that
 * theme.json cannot express cleanly — the header's black nav divider, the
 * footer's muted top-bordered disclaimer, and view-row spacing — mirroring
 * the original wayfire theme.
 */

/* Header: black divider above the navigation. */
.wp-block-template-part header .site-header__nav {
	border-top: 1px solid #000;
	margin-top: 0.5em;
	padding-top: 0.625em;
}

/* Top-right account links (My Account | Logout / Login | Register). */
.site-header__account {
	margin-bottom: 0.25em;
}

.trend-account a {
	color: var(--wp--preset--color--primary);
}

.trend-account a:hover {
	color: var(--wp--preset--color--primary-hover);
}

.trend-account__sep {
	color: #ccc;
}

/* Primary nav: wrapping flex row of muted links, black underline when current. */
.trend-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.5em;
}

.trend-nav a {
	color: var(--wp--preset--color--muted);
}

.trend-nav a:hover {
	color: var(--wp--preset--color--primary-hover);
}

.trend-nav a.is-current {
	color: #000;
	border-bottom: 1px solid #000;
}

.trend-account-actions {
	margin-top: 1.5em;
}

/* Post / listing meta — muted, slightly smaller, tight line-height. */
.post-meta,
.wp-block-post-date,
.wp-block-post-author {
	color: #888;
	font-size: 0.9em;
	line-height: 1.3;
}

/* Footer disclaimer block — small, muted, with a hairline top border. */
.wp-block-template-part footer {
	font-size: 0.8em;
	color: #888;
	border-top: 1px solid #ddd;
	padding-top: 2em;
	margin-top: 2em;
}

.wp-block-template-part footer a {
	color: #888;
}

.wp-block-template-part footer a:hover {
	color: #ee3a43;
}

/* Emphasis matches wayfire: bold/strong render in solid black, not heavier. */
strong {
	color: #000;
	font-weight: 400;
}

em {
	font-style: italic;
}

/* --- Content archives (trendmacro/content-list block) --- */
.trend-list {
	display: flex;
	flex-direction: column;
	gap: 1.75em;
	margin-top: 1.5em;
}

.trend-row__title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 0.2em;
}

.trend-row .post-meta {
	margin: 0.15em 0 0.4em;
}

.trend-row__summary {
	color: #444;
}

/* Recommended Reading: month group headings + disclaimer note. */
.trend-month {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	border-bottom: 1px solid #ddd;
	padding-bottom: 0.2em;
	margin: 1.5em 0 0.75em;
}

.trend-rec-note {
	font-size: 0.85em;
	color: #888;
	line-height: 1.4;
}

.trend-suggested {
	display: inline-block;
	vertical-align: middle;
	color: #ee3a43;
	opacity: 0.6;
	margin-left: 0.15em;
}

/* Pagination. */
.trend-pagination {
	margin-top: 2.5em;
}

.trend-pagination .page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.6em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.trend-pagination .page-numbers .current {
	color: #000;
	font-weight: 500;
}

.trend-empty {
	color: #888;
	margin-top: 1.5em;
}

/* --- Video single page --- */
.trend-video-meta {
	margin-top: 0.2em;
}

.trend-video-embed {
	margin: 1.5em 0;
}

.trend-video-body {
	margin: 1.5em 0;
}

.trend-strategic,
.trend-related {
	margin-top: 2.5em;
	border-top: 1px solid #ddd;
	padding-top: 1.25em;
}

.trend-strategic h2,
.trend-related h2 {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	margin: 0 0 0.5em;
}

.trend-strategic-markets {
	margin: 0 0 0.6em;
}

.trend-related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}

.trend-related-list .post-meta {
	display: inline;
}

/* --- Strategy Dashboard + market pages --- */
.trend-strategy-feed {
	display: flex;
	flex-direction: column;
	gap: 2em;
	margin-top: 1em;
}

.trend-strategy-date {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.2;
	margin: 0;
}

.trend-strategy-date a {
	color: var(--wp--preset--color--primary);
}

.trend-edit {
	font-size: 0.7em;
	color: #888;
	font-weight: 300;
}

.trend-strategy-markets {
	margin: 0.2em 0 0.5em;
}

.trend-strategy-markets a {
	color: #888;
}

.trend-strategy-markets a:hover {
	color: var(--wp--preset--color--primary-hover);
}

.trend-strategy-text p {
	margin: 0 0 0.8em;
}

/* "Archives" market browse (sidebar). */
.trend-archives h2 {
	font-weight: 300;
	margin-bottom: 0.5em;
}

.trend-archives-group {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	color: #222;
	margin: 1em 0 0.2em;
}

.trend-archives-list {
	list-style: none;
	margin: 0 0 0.5em;
	padding: 0;
}

.trend-archives-list li {
	margin: 0.1em 0;
	padding-left: 1em;
}

/* Top-level categories with no children (e.g. Recommended Reading, Miscellaneous):
   flush-left links, aligned with the bold parent group headers. */
.trend-archives-top {
	margin: 1em 0 0.2em;
}

/* --- Front page dashboard (trendmacro/home-featured block) --- */
.trend-home {
	display: grid;
	/* Left column slightly wider than the right, mirroring the original home
	   page (~53/47); the gap is taken out of the available width first. */
	grid-template-columns: 1.13fr 1fr;
	gap: 2em 3em;
	align-items: start;
}

@media (max-width: 600px) {
	.trend-home {
		grid-template-columns: 1fr;
	}
}

.trend-home__tagline {
	margin: 0 0 1em;
}

/* Each "Most Recent X" card stacks within its column. */
.trend-home__col {
	display: flex;
	flex-direction: column;
	gap: 2.5em;
}

.trend-home-card__heading {
	font-weight: 300;
	margin: 0 0 0.4em;
}

.trend-home-card__title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.2;
	margin: 0;
}

.trend-home-card__meta {
	margin: 0.3em 0 0.5em;
}

.trend-home-card__excerpt {
	color: #444;
}

.trend-home-card__excerpt p {
	margin: 0 0 0.6em;
}

.trend-home-card__excerpt p:last-child {
	margin-bottom: 0;
}

/* The card title carries its own "(edit)" affordance; keep it muted. */
.trend-home-card__title .trend-edit {
	font-size: 0.6em;
}

/* --- Forms (registration) --- */
.trend-register {
	max-width: 26em;
}

.trend-register input[type="text"],
.trend-register input[type="email"],
.trend-register input[type="password"] {
	width: 100%;
	padding: 0.5em;
	border: 1px solid #ccc;
	font-family: inherit;
	font-size: 1em;
}

.trend-register label {
	font-size: 0.9em;
	color: #555;
}

.trend-button {
	background: #ee3a43;
	color: #fff;
	border: 0;
	padding: 0.6em 1.4em;
	font-family: inherit;
	font-size: 1em;
	cursor: pointer;
}

.trend-button:hover {
	background: #ff0b17;
}

.trend-form-error {
	background: #fdecea;
	border-left: 3px solid #ee3a43;
	padding: 0.6em 0.9em;
	color: #a01b1b;
}

.trend-form-alt {
	font-size: 0.9em;
	color: #888;
}

/* Honeypot — hidden from people, present for bots. */
.trend-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
