/*
Theme Name: Out and About Adventures
Theme URI: https://outandaboutadventures.com
Author: Out and About Adventures
Author URI: https://outandaboutadventures.com
Description: Custom theme for Out and About Adventures blog, integrated with main website design using Boots On Brand design system
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: outandabout
*/

/* Import main brand stylesheet */
@import url('../../../css/styles.css');

/* WordPress-specific overrides */
body {
    padding-top: 80px; /* Account for fixed header */
    font-family: 'Open Sans', sans-serif;
    color: var(--forest-deep);
}

/* Global heading styles - ensure Montserrat is used everywhere */
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.page-title,
.widget-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    color: var(--forest-deep);
}

/* Global link styling - earth-ember accent */
a {
    color: var(--earth-ember);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--forest-deep);
    text-decoration: underline;
}

/* Navigation links - keep forest-deep as they have specific hover states */
.site-header a,
header a,
nav a {
    color: var(--forest-deep);
}

.site-header a:hover,
header a:hover,
nav a:hover {
    color: var(--earth-ember);
    text-decoration: none;
}

/* Ensure WordPress content plays nice with our design system */
.site-content {
    min-height: calc(100vh - 200px);
}

/* Post content styling */
.entry-content {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--forest-deep);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Distinctive heading styles matching main site */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--forest-deep);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.entry-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 2rem;
    font-weight: 600;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

.entry-content h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

.entry-content h6 {
    font-size: 1rem;
    font-weight: 500;
}
/* Ensure proper spacing and readability in blog posts */
.entry-content ul,
.entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Style for horizontal rules */
.entry-content hr {
    border: 0;
    height: 2px;
    background: var(--trail-sand);
    margin: 3rem 0;
}

/* Enhanced strong/bold text */
.entry-content strong {
    font-weight: 700;
    color: var(--forest-deep);
}

/* Better paragraph spacing */
.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Make sure links in lists are properly styled */
.entry-content ul li a,
.entry-content ol li a {
    color: var(--earth-ember);
    font-weight: 600;
}

.entry-content ul li a:hover,
.entry-content ol li a:hover {
    color: var(--forest-deep);
}

/* H2 section spacing */
.entry-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 2px solid var(--trail-sand);
}

.entry-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* H3 styling */
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--earth-ember);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entry-content h1 {
        font-size: 2rem;
    }
    
    .entry-content h2 {
        font-size: 1.75rem;
    }
    
    .entry-content h3 {
        font-size: 1.35rem;
    }
    
    .entry-content ul,
    .entry-content ol {
        margin-left: 1.25rem;
    }
}
/* Link styling - earth-ember accent color */
.entry-content a {
    color: var(--earth-ember);
    text-decoration: none;
    transition: all 0.2s ease;
}

.entry-content a:hover {
    color: var(--forest-deep);
    text-decoration: underline;
}

/* WordPress blocks */
.wp-block-image {
    margin: 2rem 0;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

/* Sidebar widgets */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--forest-deep);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--forest-deep);
    border: 2px solid var(--sky-haze);
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: var(--trail-sand);
    border-color: var(--earth-ember);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--earth-ember);
    color: white;
    border-color: var(--earth-ember);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
}

.pagination .prev,
.pagination .next {
    background: var(--forest-deep);
    color: white;
    border-color: var(--forest-deep);
}

.pagination .prev:hover,
.pagination .next:hover {
    background: var(--earth-ember);
    border-color: var(--earth-ember);
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Search Form Styling */
input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 1rem;
    width: 1rem;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') no-repeat center;
    cursor: pointer;
}

/* Featured Post Badge */
.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--earth-ember);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Category and Tag Pills */
.category-pill,
.tag-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Reading Time Badge */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--moss-quiet);
}

.reading-time::before {
    content: "📖";
    font-size: 1rem;
}

/* Post Thumbnails Hover Effect */
.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Sidebar Widgets Enhancement */
.widget ul li {
    position: relative;
    padding-left: 0;
}

.widget ul li::before {
    content: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .pagination .page-numbers {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .featured-post {
        margin-bottom: 2rem;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(
        90deg,
        var(--sky-haze) 25%,
        var(--trail-sand) 50%,
        var(--sky-haze) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Post Meta Information */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--moss-quiet);
}

.post-meta > * {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Excerpt Styling */
.post-excerpt {
    color: var(--forest-deep);
    line-height: 1.6;
}

/* Smooth Transitions */
* {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--earth-ember);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar,
    .pagination,
    header,
    footer {
        display: none;
    }
    
    .post-content {
        max-width: 100%;
    }
}