/*
 Theme Name:   Beyond Pluto 2025
 Theme URI:    https://beyondpluto.com
 Description:  Beyond Pluto 2025 - A child theme of Twenty Twenty-Five
 Author:       Beyond Pluto
 Author URI:   https://beyondpluto.com
 Template:     twentytwentyfive
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  beyondpluto25
*/

/* =============================================
   LAYOUT & STRUCTURE (Color-independent)
   ============================================= */

/* Header bar */
header.wp-block-template-part {
	padding: 1rem 0;
}

/* Constrain header content - slightly wider than canvas */
header.wp-block-template-part > .wp-block-group {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--50);
	padding-right: var(--wp--preset--spacing--50);
}

/* Site title */
.wp-block-site-title {
	font-size: 1.75rem;
}

.wp-block-site-title a:hover {
	box-shadow: none;
}

/* Navigation - Active menu item */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current_page_item > a {
	font-weight: 700;
}

/* Navigation - Submenu items smaller font */
.wp-block-navigation .wp-block-navigation__submenu-container a {
	font-size: 0.875rem;
}

.wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	box-shadow: none;
}

/* Author, tags, and comment links */
.wp-block-post-author a,
.wp-block-post-author-name a,
.wp-block-post-terms a,
.wp-block-comment-date a,
.wp-block-comment-reply-link a,
.comment-reply-link,
.wp-block-comment-edit-link a {
	text-decoration: none;
}

/* Align tag box border-radius with hover boxes */
.wp-block-post-terms a {
	border-radius: 4px;
}

/* Links hover */
a:hover {
	text-decoration: none;
	border-radius: 4px;
}

/* Side gradients - structure */
@media (min-width: 900px) {
	body {
		position: relative;
	}

	body::before,
	body::after {
		content: "";
		position: absolute;
		top: 112px;
		bottom: 0;
		width: calc((100vw - 768px) / 2);
		max-width: 15vw;
		pointer-events: none;
		z-index: 100;
	}

	body::before {
		left: 0;
	}

	body::after {
		right: 0;
	}
}

/* Post cards - structure */
.post-card {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
	transform: translateY(-2px);
}

.post-card .wp-block-post-featured-image {
	margin-bottom: 0;
}

.post-card .wp-block-post-featured-image img {
	border-radius: 4px;
}

.post-card .wp-block-post-title a {
	text-decoration: none;
}

.post-card .wp-block-post-title a:hover {
	text-decoration: none;
}

/* Featured post (first article) */
.featured-post {
	margin-bottom: var(--wp--preset--spacing--50);
}

/* Posts grid */
.posts-grid .wp-block-post-template {
	gap: var(--wp--preset--spacing--40);
}

/* Stack to single column on mobile */
@media (max-width: 600px) {
	.posts-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

/* Infinite Scroll */
.infinite-scroll-loader {
	text-align: center;
	padding: 2rem;
	font-size: 0.875rem;
}

.infinite-scroll-loader .spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin-right: 0.5rem;
	vertical-align: middle;
}

.infinite-scroll-loader.complete .spinner {
	display: none;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

