/**
 * Mikkelny Theme - Custom Styles
 * Matches the design language of danskfolkeparti.dk
 */

/* ===================================
   RESET & BASE
   =================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 120%;   /* Scale all rem-based fonts +20% site-wide */
}

.wp-block-template-part {
	margin-block-start: 0rem;
}

body {
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

/* ===================================
   HEADER
   =================================== */

.site-header {
	z-index: 1000;
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header .header-inner {
	background-color: var(--wp--preset--color--primary-dark);
	transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Front page: transparent header until scrolled */
body.home .site-header .header-inner {
	background-color: transparent;
}

body.home .site-header.scrolled .header-inner {
	background-color: var(--wp--preset--color--primary-dark);
}

.site-header.scrolled .header-inner {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Front-page: hero goes full viewport behind header, no extra space needed */
.front-page {
	margin-top: 0;
}

/* Non-hero pages: compensate for fixed header height */
body:not(.home) main > .wp-block-group:first-child,
.page:not(.home) main > .wp-block-group:first-child {
	padding-top: 5rem;
}

.header-logo-group {
	gap: 0.75rem !important;
}

.site-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #ffffff;
	line-height: 0;
}

.site-logo-svg {
	height: 32px;
	width: auto;
}

.header-logo-group .wp-block-site-title a {
	color: #ffffff !important;
	text-decoration: none !important;
}

.header-nav-group {
	gap: 1.5rem !important;
}

.main-navigation .wp-block-navigation__container {
	gap: 0.25rem;
}

.main-navigation .wp-block-navigation-item__content {
	color: #ffffff !important;
	padding: 0.5rem 0.75rem;
	border-radius: 0;
	transition: all 0.2s ease;
}

.main-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-red) !important;
}

.header-cta-buttons .wp-block-button__link {
	transition: all 0.3s ease !important;
}

.header-cta-buttons .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(228, 3, 46, 0.4);
}

/* Mobile menu */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
	padding: 0.75rem 0;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
	position: relative;
	overflow: hidden;
}

/* Hero Spinner Overlay */
.hero-spinner-overlay {
	position: absolute;
	bottom: -30vw;
	right: -30vw;
	width: 60vw;
	height: 60vw;
	z-index: 3;
	pointer-events: none;
	animation: spinnerRotate 120s linear infinite;
}

@keyframes spinnerRotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.hero-spinner-svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 768px) {
	.hero-spinner-overlay {
		width: 50vw;
		height: 50vw;
	}
}

.hero-cover {
	position: relative;
}

.hero-cover::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse at center bottom, rgba(228, 3, 46, 0.15) 0%, transparent 60%);
	z-index: 1;
	pointer-events: none;
}

.hero-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.hero-heading {
	text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
	color: var(--wp--preset--color--accent-red);
	display: block;
}

.hero-btn-primary .wp-block-button__link {
	transition: all 0.3s ease !important;
}

.hero-btn-primary .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(228, 3, 46, 0.4);
}

.hero-btn-secondary .wp-block-button__link {
	transition: all 0.3s ease !important;
}

.hero-btn-secondary .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.1) !important;
	transform: translateY(-2px);
}

/* ===================================
   KEY ISSUES SECTION
   =================================== */

.key-issues-section .wp-block-columns {
	align-items: stretch;
}

.key-issues-section .wp-block-column {
	display: flex;
}

.key-issues-section .issue-card {
	transition: all 0.3s ease;
	cursor: pointer;
	overflow: hidden;
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.key-issues-section .issue-card::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--wp--preset--color--accent-red);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.key-issues-section .issue-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(11, 29, 58, 0.3);
}

.key-issues-section .issue-card:hover::before {
	transform: scaleX(1);
}

.issue-icon {
	margin-bottom: 0.5rem;
}

/* ===================================
   POLICY LINKS / TAG CLOUD
   =================================== */

.policy-tag-cloud {
	gap: 0.75rem !important;
}

.policy-tag {
	cursor: pointer;
	transition: all 0.25s ease;
}

.policy-tag:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(11, 29, 58, 0.15);
}

.policy-tag p {
	margin: 0 !important;
}

/* ===================================
   NEWS SECTION
   =================================== */

.news-section .news-card {
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
}

.news-section .news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.news-section .news-card .news-card-image img {
	transition: transform 0.5s ease;
}

.news-section .news-card:hover .news-card-image img {
	transform: scale(1.05);
}

.news-card-image {
	overflow: hidden;
}

.see-all-link a {
	color: var(--wp--preset--color--accent-red) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.see-all-link a:hover {
	color: var(--wp--preset--color--accent-red-dark) !important;
}

/* ===================================
   QUOTE SECTION
   =================================== */

.quote-section {
	position: relative;
	overflow: hidden;
}

.quote-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 60%;
	height: 200%;
	background: radial-gradient(ellipse, rgba(228, 3, 46, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.quote-mark {
	margin-bottom: 0 !important;
}

.quote-divider {
	width: 60px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	border: none !important;
	height: 3px !important;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
	position: relative;
}

.cta-heading span {
	transition: color 0.3s ease;
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */

.newsletter-form {
	max-width: 500px;
	margin: 0 auto;
}

.newsletter-fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.newsletter-row {
	display: flex;
	gap: 1rem;
}

.newsletter-input {
	flex: 1;
	padding: 0.9rem 1.25rem;
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 0.95rem;
	font-family: var(--wp--preset--font-family--inter);
	transition: all 0.3s ease;
	outline: none;
}

.newsletter-input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
	border-color: var(--wp--preset--color--accent-red);
	background: rgba(255, 255, 255, 0.12);
}

.newsletter-input-full {
	width: 100%;
}

.newsletter-consent {
	margin-top: 0.5rem;
}

.newsletter-consent label {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.5;
	cursor: pointer;
}

.newsletter-consent input[type="checkbox"] {
	margin-top: 3px;
	accent-color: var(--wp--preset--color--accent-red);
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.newsletter-btn {
	width: 100%;
	padding: 1rem;
	background: var(--wp--preset--color--accent-red);
	color: #ffffff;
	border: none;
	border-radius: 0;
	font-size: 1rem;
	font-weight: 700;
	font-family: var(--wp--preset--font-family--inter);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 0.5rem;
}

.newsletter-btn:hover {
	background: var(--wp--preset--color--accent-red-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(228, 3, 46, 0.4);
}

.newsletter-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 0;
	text-align: center;
	font-size: 0.9rem;
}

.newsletter-message.success {
	background: rgba(16, 185, 129, 0.15);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.newsletter-message.error {
	background: rgba(228, 3, 46, 0.15);
	color: #ff6b6b;
	border: 1px solid rgba(228, 3, 46, 0.3);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
	position: relative;
	margin-top: 0 !important;
}

.site-footer .footer-menu-list {
	list-style: none !important;
}

.site-footer .footer-menu-list a {
	color: var(--wp--preset--color--medium-gray) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.site-footer .footer-menu-list a:hover {
	color: var(--wp--preset--color--accent-red) !important;
}

.footer-social-links a {
	transition: all 0.2s ease !important;
}

.footer-social-links a:hover {
	transform: translateY(-2px);
	opacity: 0.8;
}

/* ===================================
   SINGLE POSTS
   =================================== */

.single-hero {
	position: relative;
}

.single-featured-image {
	margin-bottom: 2rem !important;
}

.single-featured-image img {
	width: 100%;
}

/* ===================================
   ARCHIVE / NEWS LIST
   =================================== */

.news-card {
	overflow: hidden;
	transition: all 0.3s ease;
}

.news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===================================
   BOOK SECTION
   =================================== */

.book-section .book-cover img {
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	transition: transform 0.5s ease, box-shadow 0.5s ease;
	transform-origin: center bottom;
}

.book-section .book-cover img:hover {
	transform: perspective(600px) rotateY(-12deg) rotateX(5deg) translateY(-18px) scale(1.04);
	box-shadow: 25px 30px 70px rgba(0, 0, 0, 0.55), 8px 8px 25px rgba(0, 0, 0, 0.3);
}

.book-section .has-primary-dark-color {
	color: var(--wp--preset--color--white) !important;
}

.book-section .has-text-muted-color {
	color: var(--wp--preset--color--medium-gray) !important;
}

/* ===================================
   BUTTONS GLOBAL
   =================================== */

.wp-block-button__link {
	transition: all 0.3s ease !important;
}

.wp-element-button:focus,
.wp-block-button__link:focus {
	outline: 2px solid var(--wp--preset--color--accent-red);
	outline-offset: 2px;
}

/* ===================================
   SCROLLBAR
   =================================== */

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--primary-dark);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--primary-light);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--accent-red);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-in {
	animation: fadeInUp 0.6s ease forwards;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* 1001–1300px: shrink header elements to fit on one line */
@media (min-width: 1001px) and (max-width: 1300px) {
	.site-logo-svg {
		height: 24px;
	}

	.header-inner {
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}

	.header-nav-group {
		gap: 0.75rem !important;
	}

	.main-navigation .wp-block-navigation__container {
		gap: 0;
	}

	.main-navigation .wp-block-navigation-item__content {
		font-size: 0.65rem !important;
		padding: 0.4rem 0.45rem;
		letter-spacing: 0.03em;
	}
}

/* 1001–1100px: extra tight — nav + CTA 2px smaller */
@media (min-width: 1001px) and (max-width: 1100px) {
	.main-navigation .wp-block-navigation-item__content {
		font-size: calc(0.65rem - 2px) !important;
	}

	.header-cta-buttons .wp-block-button__link {
		font-size: calc(0.75rem - 2px) !important;
	}
}

/* ≤1000px: force burger menu */
@media (max-width: 1000px) {
	.wp-block-navigation__responsive-container-open {
		display: flex !important;
		align-items: center;
	}

	.wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.header-cta-buttons {
		display: none !important;
	}
}

@media (max-width: 782px) {
	.key-issues-section .wp-block-columns {
		flex-direction: column !important;
	}

	.newsletter-row {
		flex-direction: column;
	}

	.news-grid .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}

	.site-footer .wp-block-columns {
		flex-direction: column !important;
		gap: 2rem !important;
	}
}

@media (max-width: 800px) {
	.hero-cover {
		min-height: 70vh !important;
		padding-top: 120px !important;
		padding-bottom: 60px !important;
		background-image: url('/wp-content/uploads/2026/03/8Y9A6458-USK-1-1-e1773013609470.jpg') !important;
		background-size: cover !important;
		background-position: center left !important;
	}

	.hero-cover .wp-block-cover__image-background {
		display: none !important;
	}

	.hero-heading {
		font-size: clamp(1.75rem, 5vw, 3.5rem) !important;
	}

	.hero-section .has-medium-gray-color {
		font-size: 0.8rem !important;
	}

	.hero-section .wp-block-button {
		font-size: 0.7rem !important;
		width: 100%;
	}

	.hero-section .wp-block-button__link {
		padding: 0.6rem 1.4rem !important;
		font-size: 0.75rem !important;
		width: 100% !important;
		text-align: center !important;
	}

	.hero-section .wp-block-buttons {
		flex-direction: column;
		align-items: flex-start;
		max-width: 280px;
		margin-left: 0;
		margin-right: auto;
	}
}

@media (min-width: 801px) {
	.hero-cover {
		padding-top: 100px !important;
		padding-bottom: 40px !important;
	}
}

@media (min-width: 801px) and (max-width: 1300px) {
	.hero-heading {
		font-size: clamp(1.875rem, 5.25vw, 3.75rem) !important;
		line-height: 1.05 !important;
	}

	.hero-section .has-medium-gray-color:not(.top-text .has-medium-gray-color) {
		font-size: 0.86rem !important;
		line-height: 1.7 !important;
	}

	.hero-section .top-text p {
		font-size: 1.25rem !important;
		line-height: 1.9 !important;
	}

	.hero-section .wp-block-button__link {
		padding: 0.75rem 1.875rem !important;
		font-size: 0.75rem !important;
	}

	.header-cta-buttons .wp-block-button__link {
		font-size: 0.75rem !important;
		padding: 0.6rem 1.2rem !important;
	}
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-uppercase {
	text-transform: uppercase;
}

.text-center {
	text-align: center;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ===================================
   POLITISK ARBEJDE PAGE
   =================================== */

.role-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-item {
	border-left: 2px solid var(--wp--preset--color--accent-red);
	padding-left: 1.5rem !important;
}

.timeline-item:last-child {
	margin-bottom: 0 !important;
}

@media (max-width: 782px) {
	.politisk-cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* ===================================
   STORKREDS SECTION
   =================================== */
.storkreds-grid {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
}
.storkreds-item {
	width: calc(33.333% - 0px);
	text-align: left;
}
.storkreds-check {
	color: #F5C518;
	font-weight: 900;
	margin-right: 0.5rem;
	font-size: 1.1em;
}
@media (max-width: 768px) {
	.storkreds-item {
		width: 50%;
	}
}
@media (max-width: 480px) {
	.storkreds-item {
		width: 100%;
	}
}

