/*
 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
*/

/* Add your custom styles below this line */

/* Header bar */
header.wp-block-template-part {
	background: linear-gradient(to bottom, #2a2a30, #35353a 30%, #35353a 70%, #2a2a30);
	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 {
	background: linear-gradient(to right, #ffffff, #888888);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.wp-block-site-title a:hover {
	background: linear-gradient(to right, #ffffff, #888888);
	-webkit-background-clip: text;
	background-clip: text;
	box-shadow: none;
}

/* Navigation - menu text color */
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item a {
	color: #d0d0d0 !important;
}

/* Navigation - hover boxes orange */
.wp-block-navigation a:hover {
	background-color: rgba(255, 140, 0, 0.7);
	box-shadow: 0 0 0 0.3em rgba(255, 140, 0, 0.7);
}

/* 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 and darker text */
.wp-block-navigation .wp-block-navigation__submenu-container a {
	font-size: 0.875rem;
	color: #333333 !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	background-color: rgba(255, 140, 0, 0.6);
	box-shadow: none;
}

/* Author, tags, and comment links - subtle gray instead of underline */
.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;
	color: #686868;
}

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

/* Links hover - rounded orange box instead of underline */
a:hover {
	text-decoration: none;
	background-color: rgba(255, 140, 0, 0.4);
	border-radius: 4px;
	box-shadow: 0 0 0 0.3em rgba(255, 140, 0, 0.4);
}

/* Side gradients - white canvas blending to gray at edges */
/* Only show when viewport is wide enough for content + gradients */
@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;
		background: linear-gradient(to right, #e0e0e0, transparent);
	}

	body::after {
		right: 0;
		background: linear-gradient(to left, #e0e0e0, transparent);
	}
}

/* Homepage & Post Listing Pages */
body.home,
body.blog,
body.page-template-page-most-wanted {
	background-color: #f5f5f5;
}

.post-card {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
	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;
	color: #686868;
	font-size: 0.875rem;
}

.infinite-scroll-loader .spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #d1d1d1;
	border-top-color: #111;
	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);
	}
}
