/* Page Styles - Bloghash Inspired
-------------------------------------------------------------- */

/* ========================================
   BLOG ARCHIVE / POSTS GRID
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gpc-spacing-lg);
}

.blog-grid .post-card {
    background-color: var(--gpc-white);
    border-radius: var(--gpc-radius-lg);
    overflow: hidden;
    box-shadow: var(--gpc-shadow-sm);
    transition: var(--gpc-transition);
}

.blog-grid .post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gpc-shadow-lg);
}

.post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gpc-transition);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-thumbnail .entry-category {
    position: absolute;
    top: var(--gpc-spacing-sm);
    left: var(--gpc-spacing-sm);
    z-index: 1;
}

.post-card .post-content {
    padding: var(--gpc-spacing-md);
}

.post-card .entry-title {
    font-size: 1.125rem;
    margin-bottom: var(--gpc-spacing-xs);
    line-height: 1.4;
}

.post-card .entry-title a {
    color: var(--gpc-secondary);
}

.post-card .entry-title a:hover {
    color: var(--gpc-primary);
}

.post-card .entry-excerpt {
    color: var(--gpc-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--gpc-spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Blog Grid */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SINGLE POST (Bloghash Style - Featured Image First)
   ======================================== */
.single-post-content {
    background-color: var(--gpc-white);
    border-radius: var(--gpc-radius-lg);
    overflow: hidden;
    box-shadow: var(--gpc-shadow-sm);
}

/* Featured image at top (Bloghash style) */
.single-post-featured-image {
    margin: 0;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post header below featured image */
.single-post-header {
    padding: var(--gpc-spacing-lg);
    padding-bottom: var(--gpc-spacing-sm);
    border-bottom: none;
    text-align: left;
}

.single-post-header .entry-category {
    margin-bottom: var(--gpc-spacing-sm);
}

.single-post-header .entry-title {
    font-size: 2.25rem;
    /* Increased from 1.75rem */
    line-height: 1.2;
    margin-bottom: var(--gpc-spacing-sm);
    color: var(--gpc-secondary);
}

.single-post-header .entry-meta {
    justify-content: flex-start;
    gap: var(--gpc-spacing-md);
    color: var(--gpc-gray);
    font-size: 0.875rem;
}

/* Entry content - matching Bloghash audit */
.entry-content {
    padding: 0 var(--gpc-spacing-lg);
    padding-bottom: var(--gpc-spacing-lg);
    line-height: 28px;
    font-size: 16px;
}

.entry-content p {
    margin-bottom: 25px;
    /* Standardized spacing */
}

.entry-content h2 {
    font-size: 1.875rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.entry-content img {
    margin: var(--gpc-spacing-md) 0;
    border-radius: var(--gpc-radius-md);
}

.entry-content blockquote {
    margin: var(--gpc-spacing-lg) 0;
    padding: var(--gpc-spacing-md) var(--gpc-spacing-lg);
    background-color: var(--gpc-background);
    border-left: 4px solid var(--gpc-primary);
    border-radius: 0 var(--gpc-radius-md) var(--gpc-radius-md) 0;
    font-style: italic;
    color: var(--gpc-secondary);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--gpc-spacing-md);
    padding-left: var(--gpc-spacing-lg);
}

.entry-content li {
    margin-bottom: var(--gpc-spacing-xs);
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gpc-spacing-xs);
    padding: var(--gpc-spacing-lg);
    padding-top: 0;
}

/* Author Box (Bloghash style) */
.author-box {
    display: flex;
    gap: var(--gpc-spacing-md);
    padding: var(--gpc-spacing-lg);
    background-color: var(--gpc-background);
    border-radius: var(--gpc-radius-lg);
    margin-top: var(--gpc-spacing-lg);
    align-items: flex-start;
}

.author-box .author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--gpc-radius-full);
    object-fit: cover;
}

.author-box .author-info {
    flex: 1;
}

.author-box .author-name {
    font-size: 1.125rem;
    margin-bottom: var(--gpc-spacing-xs);
    font-weight: 600;
}

.author-box .author-bio {
    color: var(--gpc-gray);
    font-size: 0.9375rem;
    margin-bottom: var(--gpc-spacing-sm);
}

.author-box .author-social {
    display: flex;
    gap: var(--gpc-spacing-xs);
}

.author-box .author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--gpc-white);
    border-radius: var(--gpc-radius-full);
    color: var(--gpc-secondary);
    transition: var(--gpc-transition);
}

.author-box .author-social a:hover {
    background-color: var(--gpc-primary);
    color: var(--gpc-white);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--gpc-spacing-md);
    margin-top: var(--gpc-spacing-lg);
    padding-top: var(--gpc-spacing-lg);
    border-top: 1px solid var(--gpc-gray-light);
}

.post-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: var(--gpc-spacing-sm);
    max-width: 45%;
}

.post-navigation .nav-link img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--gpc-radius-md);
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gpc-gray);
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gpc-secondary);
    line-height: 1.3;
}

.post-navigation .nav-link:hover .nav-title {
    color: var(--gpc-primary);
}

/* Comments Section */
.comments-area {
    background-color: var(--gpc-white);
    border-radius: var(--gpc-radius-lg);
    padding: var(--gpc-spacing-lg);
    margin-top: var(--gpc-spacing-lg);
}

.comments-title {
    font-size: 1.25rem;
    margin-bottom: var(--gpc-spacing-md);
    position: relative;
}

/* Bloghash dot accent after title */
.comments-title::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--gpc-primary);
    border-radius: 50%;
    margin-left: var(--gpc-spacing-xs);
    vertical-align: middle;
}

.comment-respond .comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: var(--gpc-spacing-md);
}

/* Responsive Single Post */
@media (max-width: 768px) {
    .single-post-header {
        padding: var(--gpc-spacing-md);
    }

    .single-post-header .entry-title {
        font-size: 1.375rem;
    }

    .entry-content {
        padding: 0 var(--gpc-spacing-md);
        padding-bottom: var(--gpc-spacing-md);
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-box .author-social {
        justify-content: center;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-link {
        max-width: 100%;
    }
}

/* ========================================
   PAGES (Generic)
   ======================================== */
.page-content {
    background-color: var(--gpc-white);
    border-radius: var(--gpc-radius-lg);
    padding: var(--gpc-spacing-xl);
    box-shadow: var(--gpc-shadow-sm);
}

.page-header {
    text-align: center;
    padding: var(--gpc-spacing-xl) 0;
    background-color: var(--gpc-white);
    margin-bottom: var(--gpc-spacing-lg);
    border-radius: var(--gpc-radius-lg);
}

.page-header .page-title {
    font-size: 2.25rem;
    margin-bottom: var(--gpc-spacing-sm);
}

.page-header .archive-description {
    color: var(--gpc-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
    text-align: center;
    padding: var(--gpc-spacing-xl);
    background-color: var(--gpc-white);
    border-radius: var(--gpc-radius-lg);
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--gpc-primary);
    line-height: 1;
    margin-bottom: var(--gpc-spacing-sm);
}

.error-404 .error-title {
    font-size: 2rem;
    margin-bottom: var(--gpc-spacing-md);
}

.error-404 .error-message {
    color: var(--gpc-gray);
    max-width: 500px;
    margin: 0 auto var(--gpc-spacing-lg);
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================
   SEARCH RESULTS
   ======================================== */
.search-results .page-header {
    margin-bottom: var(--gpc-spacing-lg);
}

.search-results .search-query {
    color: var(--gpc-primary);
}

/* ========================================
   LANDING PAGE SECTIONS
   ======================================== */
.section {
    padding: var(--gpc-spacing-xl) 0;
}

.section-alt {
    background-color: var(--gpc-white);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--gpc-spacing-lg);
}

.section-subtitle {
    text-align: center;
    color: var(--gpc-gray);
    max-width: 600px;
    margin: -0.5rem auto var(--gpc-spacing-lg);
}

/* Hero Section */
.hero-section {
    padding: calc(var(--gpc-spacing-xl) * 2) 0;
    background: linear-gradient(135deg, var(--gpc-primary), #2196f3);
    color: var(--gpc-white);
    text-align: center;
}

.hero-section .hero-title {
    font-size: 3rem;
    color: var(--gpc-white);
    margin-bottom: var(--gpc-spacing-md);
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--gpc-spacing-lg);
}

.hero-section .btn {
    background-color: var(--gpc-white);
    color: var(--gpc-primary);
}

.hero-section .btn:hover {
    background-color: var(--gpc-secondary);
    color: var(--gpc-white);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: var(--gpc-spacing-xl) 0;
    }
}