/*
Theme Name: Golden Throne
Template: twentyfourteen
Description: A refreshed, modernized version of the Golden Throne site, built on top of Twenty Fourteen. Same layout, sidebar, and Featured Content grid — refined spacing, typography, and card/hover treatment.
Author: Dan Jackson
Version: 1.0.0
*/

/* ==========================================================================
   Design tokens.
   --gt-accent/--gt-bg mirror the site's actual "Colors for Twenty Fourteen"
   (fourteen-colors) plugin settings, but ONLY as reference values for the
   small custom touches below (badges, etc). The full color scheme itself
   (backgrounds, text, links) is intentionally left to that plugin — it
   computes a whole shaded palette from its 3 base colors, which flat CSS
   here can't replicate. Re-enter the same 3 values in this child theme's
   own Colors panel (Customize -> Colors) so the plugin generates the
   correct palette itself, matching the live site exactly.
   ========================================================================== */
:root {
	--gt-accent: #e86633;   /* "Orange" field in fourteen-colors */
	--gt-bg: #343434;       /* "Background Color" / "Contrast Color" */
	--gt-radius: 6px;
	--gt-transition: 200ms ease;
	--gt-space-sm: 0.75rem;
	--gt-space-md: 1.5rem;
	--gt-space-lg: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--gt-transition: 0ms;
	}
}

/* ==========================================================================
   Typography
   ========================================================================== */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.7;
}

.entry-title,
.site-title,
.widget-title {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: 0.01em;
}

.entry-title a {
	transition: color var(--gt-transition);
}

.entry-content,
.entry-summary {
	font-size: 1.0625rem;
	line-height: 1.75;
}

/* ==========================================================================
   Post cards — regular blog/archive loop
   ========================================================================== */
.hentry {
	transition: transform var(--gt-transition), box-shadow var(--gt-transition);
}

.content-area .hentry {
	padding-bottom: var(--gt-space-md);
	margin-bottom: var(--gt-space-md);
}

.post-thumbnail {
	display: block;
	overflow: hidden;
	border-radius: var(--gt-radius);
}

.post-thumbnail img {
	transition: transform 400ms ease;
	display: block;
}

.post-thumbnail:hover img {
	transform: scale(1.03);
}

/* ==========================================================================
   Featured Content grid (homepage magazine grid)
   ========================================================================== */
/* Twenty Fourteen lays this grid out with floated columns + a fixed
   96px title-box height, which is how it avoids gaps — at the cost of
   clipping longer titles. Switching to flexbox lets every card in a
   row match its tallest neighbor automatically: no clipping, no gaps,
   and the existing responsive width rules (33%/50% at various
   breakpoints) keep working unchanged since flex-basis defaults to
   the width property.
   ========================================================================== */
.featured-content-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.featured-content .hentry {
	display: flex;
	flex-direction: column;
	float: none;
	border-radius: var(--gt-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.featured-content .entry-header,
.grid .featured-content .entry-header {
	height: auto !important;
	min-height: 96px;
	overflow: visible !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 0 auto;
}

.featured-content .hentry:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.featured-content .post-thumbnail {
	border-radius: 0;
}

/* ==========================================================================
   Category labels — styled as small pill badges instead of plain text
   ========================================================================== */
.cat-links {
	display: inline-block;
}

.cat-links a {
	display: inline-block;
	padding: 0.15em 0.65em;
	margin: 0 0.3em 0.3em 0;
	border-radius: 999px;
	border: 1px solid var(--gt-accent);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: background-color var(--gt-transition), color var(--gt-transition);
}

.cat-links a:hover {
	background-color: var(--gt-accent);
	color: #000;
}

/* ==========================================================================
   Entry meta spacing
   ========================================================================== */
.entry-meta {
	font-size: 0.85rem;
	opacity: 0.85;
}

/* ==========================================================================
   Sidebar — keep the category list, just tidy the spacing and add a
   hover state so it feels less like a static text dump
   ========================================================================== */
#secondary .widget {
	margin-bottom: var(--gt-space-lg);
}

#secondary .widget-title {
	padding-bottom: 0.4em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	margin-bottom: var(--gt-space-sm);
}

#secondary .widget ul li {
	padding: 0.3em 0;
}

#secondary .widget a {
	transition: color var(--gt-transition), padding-left var(--gt-transition);
}

#secondary .widget a:hover {
	padding-left: 0.3em;
}

/* ==========================================================================
   Links and buttons generally
   ========================================================================== */
a {
	transition: color var(--gt-transition);
}

.entry-content a.button,
input[type="submit"],
button {
	transition: background-color var(--gt-transition), transform var(--gt-transition);
	border-radius: var(--gt-radius);
}

/* ==========================================================================
   Share links — replacement for the old Hupso Share Buttons plugin
   ========================================================================== */
.gt-share-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin-top: var(--gt-space-md);
	padding-top: var(--gt-space-md);
	border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.gt-share-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.75;
	margin-right: 0.25em;
}

.gt-share-links a,
.gt-share-links button {
	display: inline-block;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	border: 1px solid var(--gt-accent);
	background: none;
	font-size: 0.8rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--gt-transition), color var(--gt-transition);
}

.gt-share-links a:hover,
.gt-share-links button:hover {
	background-color: var(--gt-accent);
	color: #000;
}

/* ==========================================================================
   Related posts
   ========================================================================== */
.gt-related-posts {
	margin-top: var(--gt-space-lg);
	padding-top: var(--gt-space-md);
	border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.gt-related-posts h3 {
	font-family: Georgia, "Times New Roman", serif;
	margin-bottom: var(--gt-space-md);
}

.gt-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--gt-space-sm);
}

.gt-related-item {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: var(--gt-radius);
	overflow: hidden;
	transition: transform var(--gt-transition);
}

.gt-related-item:hover {
	transform: translateY(-3px);
}

.gt-related-item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--gt-radius);
}

.gt-related-title {
	display: block;
	padding: 0.5em 0.25em;
	font-size: 0.9rem;
	font-weight: 600;
}

/* ==========================================================================
   Image lightbox
   ========================================================================== */
.gt-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.gt-lightbox.active {
	display: flex;
}

body.gt-lightbox-open {
	overflow: hidden;
}

.gt-lightbox-img {
	max-width: 90vw;
	max-height: 90vh;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	border-radius: var(--gt-radius);
}

.gt-lightbox-close,
.gt-lightbox-prev,
.gt-lightbox-next {
	position: absolute;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.5rem;
	transition: color var(--gt-transition);
}

.gt-lightbox-close:hover,
.gt-lightbox-prev:hover,
.gt-lightbox-next:hover {
	color: var(--gt-accent);
}

.gt-lightbox-close {
	top: 1rem;
	right: 1.5rem;
}

.gt-lightbox-prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.gt-lightbox-next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}
