<?php
/**
 * Theme Name: GeneratePress Child
 * Description: Child theme for GeneratePress with custom homepage layout
 * Author: Your Name
 * Template: generatepress
 * Version: 1.0.19
 * Date: 2025-08-26
 * Purpose: Increased latest post image width to 350px to better match featured author box sizes
 */

/* Import parent theme styles */
@import url("../generatepress/style.css");

/* ==========================================================================
   CUSTOM HOMEPAGE LAYOUT STYLES
   ========================================================================== */

/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #059669;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-dark: #374151;
    --border-color: #e5e7eb;
    --border-radius: 0.5rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Homepage Container */
.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.homepage-container > section {
    display: block;
    width: 100%;
    clear: both;
}

/* Slider Section - Account for Metaslider */
.slider-section {
    margin-bottom: 3rem;
}

/* Latest Post Section */
.latest-post-section {
    background-color: var(--background-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.latest-post {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.latest-post-image {
    flex: 0 0 350px;
}

.latest-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.latest-post-content {
    flex: 1;
}

.latest-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.latest-post-title a {
    color: inherit;
    text-decoration: none;
}

.latest-post-title a:hover {
    color: var(--primary-color);
}

.latest-post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.latest-post-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Author Posts Section */
.author-posts-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.author-post-box {
    background-color: var(--background-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-post-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.author-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.author-post-image img, .page-content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-post-box:hover .author-post-image img {
    transform: scale(1.05);
}

.author-post-content {
    padding: 1.5rem;
}

.author-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.author-post-title a {
    color: inherit;
    text-decoration: none;
}

.author-post-title a:hover {
    color: var(--primary-color);
}

.author-post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 500;
    color: var(--primary-color);
}

/* Bottom Section - News and Videos */
.bottom-section {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.bottom-section > div {
    flex: 1;
}

.news-section, .video-section {
    background-color: var(--background-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.section-content {
    padding: 1.5rem;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-item-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.news-item-title a:hover {
    color: var(--primary-color);
}

.news-item-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.video-container {
    text-align: center;
}

.video-player {
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.video-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Custom Footer */
.custom-footer {
    background-color: var(--background-dark);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p, .footer-section a {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .homepage-container {
        padding: 0 0.75rem;
    }
    
    .latest-post {
        flex-direction: column;
    }
    
    .latest-post-image {
        flex: none;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-section {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .latest-post-section {
        padding: 1.5rem;
    }
    
    .author-post-content {
        padding: 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* File: style.css | Version: 1.0.02 */
