/*
 Theme Name:   Dev&Ops Theme
 Theme URI:    https://devandops.show
 Description:  Child theme for Dev & Ops Podcast with custom styling
 Author:       Douglas Barahona
 Author URI:   https://devandops.show
 Template:     podcast
 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:  podcast-child
*/

/* Custom Color Variables */
:root .theme-color-red {
	--podcast-special-background-color: #c69c11;
	--podcast-special2-background-color: #541d1d;
	--podcast-link-color: #944b32;
	--podcast-link-color-hover: #ffe03a;
	--podcast-primary-accent-color: #ffe03a;
	--podcast-primary-accent-complementary-color: #737373;
	--podcast-neutral-color-100: #ffffff;
	--podcast-neutral-color-900: #080808;
	--podcast-primary-text-color: #944b32;
	--podcast-secondary-text-color: #545454;
}

/* Navigation Hover Effect */
:root .menu-item-home > a:hover {
    color: var(--podcast-link-color-hover);
}

/* Large Navigation Styling - Clean Text Style */
.large-nav li {
	margin: 0 0.5rem;
}

.large-nav a {
	color: var(--podcast-special2-background-color);
	padding: 0.5rem 0.75rem;
	background-color: transparent;
	text-decoration: none;
	font-size: 1.1rem;
	transition: color 0.3s ease;
}

.large-nav a:hover {
	color: var(--podcast-neutral-color-100);
	text-decoration: none;
}

.large-nav .current-menu-item > a,
.large-nav .current_page_item > a {
	color: var(--podcast-neutral-color-100);
	font-weight: 600;
	text-decoration: none;
}

/* Responsive Navigation - Smaller screens */
@media screen and (max-width: 768px) {
	.large-nav li {
		margin: 0 0.3rem;
	}
	
	.large-nav a {
		padding: 0.4rem 0.6rem;
		font-size: 0.9rem;
	}
}

@media screen and (max-width: 480px) {
	.large-nav li {
		margin: 0 0.2rem;
	}
	
	.large-nav a {
		padding: 0.35rem 0.5rem;
		font-size: 0.85rem;
	}
}

/* Site Header */
#site-masthead {
	box-shadow: none;
	background-color: var(--podcast-special-background-color);
	position: sticky;
	top: 0px;
	z-index: 1000;
}

/* Image Styling */
.special-image {
	border-radius: 0.5rem;
}

/* Post Thumbnail Fixes */
.entry-thumbnail {
	overflow: hidden;
}

.entry-thumbnail img.post-thumbnail-full,
.entry-thumbnail img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* Ensure thumbnails maintain aspect ratio */
.entry-thumbnail a {
	display: block;
	line-height: 0;
}

/* Pagination Highlight */
.pagination a {
  color: var(--podcast-special2-background-color);
  border-color: var(--podcast-special2-background-color);
  text-decoration: none;
}
.pagination .current,
.pagination a:hover,
.pagination a:focus {
	background-color: var(--podcast-special2-background-color);
	border-color: var(--podcast-special2-background-color);
	text-decoration: none;
}

/* Remove list bullets from Query Loop posts */
.wp-block-post-template {
	list-style: none;
	padding-left: 0;
}

.wp-block-post-template li {
	list-style: none;
}

/* Typography Hierarchy */
.page-title.archives-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 2rem;
	color: var(--podcast-primary-text-color);
}

.page-title.archives-title .page-title-span {
	border-bottom: 3px solid var(--podcast-special-background-color);
	padding-bottom: 0.5rem;
	display: inline-block;
}

.page-title.archives-title .page-title-span::after {
	content: none !important;
	display: none !important;
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
}

h2 {
	font-size: 1.75rem;
	font-weight: 600;
}

/* Read More Link Styling */
.entry-read-more {
	margin-top: 1rem;
}

.read-more-link {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	background-color: var(--podcast-special2-background-color);
	color: #ffffff;
	border-radius: 0.25rem;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-link:hover,
.read-more-link:focus {
	background-color: var(--podcast-special-background-color);
	color: #ffffff;
	transform: translateY(-2px);
	text-decoration: none;
}

/* Blog Page 'Leer más' Link Styling */
.wp-block-post-excerpt__more-link {
	display: inline-block !important;
	padding: 0.5rem 1.5rem !important;
	background-color: var(--podcast-special2-background-color) !important;
	color: #ffffff !important;
	border-radius: 0.25rem !important;
	text-decoration: none !important;
	font-weight: 500 !important;
	transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.wp-block-post-excerpt__more-link:hover,
.wp-block-post-excerpt__more-link:focus {
	background-color: var(--podcast-special-background-color) !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
	text-decoration: none !important;
}

/* Override WordPress Block Pagination styles */
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	text-decoration: none !important;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination a:focus {
	text-decoration: none !important;
}
