/*
Theme Name: Hvordan Spilles Poker
Theme URI: https://www.hvordanspillepoker.com/
Description: Child theme of GeneratePress for hvordanspillepoker.com. Dark header/footer with a teal accent from the site logo, full-width card-based category archives, and "updated on" dates moved to the end of each post.
Author: Hvordan Spilles Poker
Template: generatepress
Version: 1.0.0
Text Domain: hvordanspillepoker-child
*/

/* ==========================================================================
   1. Design tokens (sampled from the site logo)
   ========================================================================== */
:root {
	--hsp-black: #121212;
	--hsp-black-soft: #1c1f20;
	--hsp-teal: #1fc8dc;
	--hsp-teal-dark: #128a9a;
	--hsp-teal-tint: #e6fbfd;
	--hsp-text: #1c1c1c;
	--hsp-text-muted: #6b7378;
	--hsp-bg: #ffffff;
	--hsp-bg-alt: #f5f8f9;
	--hsp-border: #e3e8ea;
}

/* ==========================================================================
   2. Header / navigation
   ========================================================================== */

/* The logo artwork has black text baked into a transparent PNG, so the
   header itself has to stay light for it to stay legible. The "black
   design" identity lives in the nav text/hover states, buttons, footer
   and widget cards instead. */
.site-header {
	background-color: var(--hsp-bg);
	border-bottom: 3px solid var(--hsp-black);
}

.main-navigation {
	background-color: var(--hsp-bg);
}

.site-header .site-branding .main-title a,
.site-header .site-branding .main-title a:hover {
	color: var(--hsp-black);
}

.site-header .site-description {
	color: var(--hsp-text-muted);
}

.main-navigation .inside-navigation {
	border-top: 1px solid var(--hsp-border);
}

.main-navigation ul li a {
	color: var(--hsp-black);
	font-weight: 600;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
	color: var(--hsp-teal-dark);
}

.main-navigation .dropdown-menu {
	background-color: var(--hsp-bg);
	border: 1px solid var(--hsp-border);
}

.main-navigation .dropdown-menu a {
	color: var(--hsp-black);
}

.main-navigation .dropdown-menu a:hover {
	color: var(--hsp-teal-dark);
}

.main-navigation .menu-toggle {
	background-color: var(--hsp-black);
	color: #ffffff;
}

/* ==========================================================================
   3. Typography, links & buttons
   ========================================================================== */
body {
	color: var(--hsp-text);
}

a {
	color: var(--hsp-teal-dark);
}

a:hover,
a:focus {
	color: var(--hsp-teal);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-title {
	color: var(--hsp-black);
}

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.read-more,
.content-read-more {
	background-color: var(--hsp-black);
	color: #ffffff;
	border: 2px solid var(--hsp-black);
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.read-more:hover,
.content-read-more:hover {
	background-color: var(--hsp-teal);
	border-color: var(--hsp-teal);
	color: var(--hsp-black);
}

/* ==========================================================================
   4. Post meta (date moved to the end, styled as a footer line)
   ========================================================================== */
.entry-header .entry-meta {
	color: var(--hsp-text-muted);
	font-size: 0.9em;
}

footer.entry-meta {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid var(--hsp-border);
	color: var(--hsp-text-muted);
	font-size: 0.9em;
}

footer.entry-meta .posted-on {
	color: var(--hsp-teal-dark);
	font-weight: 600;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.footer-widgets {
	background-color: var(--hsp-black);
}

.footer-widgets .widget-title {
	color: #ffffff;
}

.footer-widgets,
.footer-widgets p,
.footer-widgets li {
	color: #b9c2c4;
}

.footer-widgets a {
	color: #ffffff;
}

.footer-widgets a:hover {
	color: var(--hsp-teal);
}

.site-info {
	background-color: var(--hsp-black-soft);
	color: #b9c2c4;
}

.site-info a {
	color: var(--hsp-teal);
}

.hsp-footer-sep {
	color: #6f7a7c;
	margin: 0 0.35em;
}

/* ==========================================================================
   6. Sidebar widgets (homepage & single posts)
   ========================================================================== */
#right-sidebar .widget {
	background-color: var(--hsp-bg-alt);
	border: 1px solid var(--hsp-border);
	border-radius: 8px;
	padding: 1.5em 1.75em;
	margin-bottom: 1.75em;
}

#right-sidebar .widget-title {
	font-size: 1.05em;
	color: var(--hsp-black);
	border-bottom: 2px solid var(--hsp-teal);
	padding-bottom: 0.5em;
	margin-bottom: 1em;
}

#right-sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#right-sidebar .widget ul li {
	padding: 0.45em 0;
	border-bottom: 1px solid var(--hsp-border);
}

#right-sidebar .widget ul li:last-child {
	border-bottom: none;
}

#right-sidebar .widget a {
	color: var(--hsp-text);
	text-decoration: none;
}

#right-sidebar .widget a:hover {
	color: var(--hsp-teal-dark);
}

/* ==========================================================================
   7. Category archive redesign
   ========================================================================== */

/* Quick-links pill nav above the post grid. */
.hsp-category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0 0 2em;
}

.hsp-category-nav__link {
	display: inline-block;
	padding: 0.5em 1.1em;
	border-radius: 999px;
	background-color: var(--hsp-bg-alt);
	border: 1px solid var(--hsp-border);
	color: var(--hsp-text);
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none;
}

.hsp-category-nav__link:hover {
	border-color: var(--hsp-teal);
	color: var(--hsp-teal-dark);
}

.hsp-category-nav__link.is-current {
	background-color: var(--hsp-black);
	border-color: var(--hsp-black);
	color: #ffffff;
}

/* Card grid replacing the plain blog list. */
body.category #primary .content-area,
body.category .site-main {
	max-width: 1100px;
}

body.category .site-main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.75em;
}

/* Only the post cards themselves participate in the grid columns — the
   archive title/description, quick-links nav, bottom text block and
   pagination all span the full width above/below the grid. */
body.category .site-main > *:not(article) {
	grid-column: 1 / -1;
}

body.category .site-main > article {
	background-color: var(--hsp-bg);
	border: 1px solid var(--hsp-border);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.category .site-main > article:hover {
	box-shadow: 0 10px 24px rgba(18, 18, 18, 0.1);
	transform: translateY(-2px);
}

body.category .site-main > article .inside-article {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 1.25em 1.5em 1.5em;
}

body.category .site-main > article .featured-image,
body.category .site-main > article .post-image {
	margin: 0;
	order: -1;
}

body.category .site-main > article .featured-image img,
body.category .site-main > article .post-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

body.category .site-main > article .entry-title {
	font-size: 1.15em;
	margin: 0 0 0.5em;
}

body.category .site-main > article .entry-summary {
	color: var(--hsp-text-muted);
	font-size: 0.95em;
}

body.category .site-main > article footer.entry-meta {
	margin-top: auto;
	font-size: 0.8em;
}

/* Category description shown above the grid (GP's default archive intro). */
.taxonomy-description {
	background-color: var(--hsp-bg-alt);
	border: 1px solid var(--hsp-border);
	border-radius: 8px;
	padding: 1.25em 1.5em;
	margin-bottom: 1.5em;
}

/* Editable bottom text block. */
.hsp-category-footer-text {
	background-color: var(--hsp-bg-alt);
	border: 1px solid var(--hsp-border);
	border-radius: 8px;
	padding: 1.5em 1.75em;
	margin-top: 2em;
}

.hsp-category-footer-text p:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	body.category .site-main {
		grid-template-columns: 1fr;
	}
}
