/**
 * File: assets/css/home-styles.css
 * Description: Styles that load only on the homepage (front page)
 * Version: 1.0.0
 *
 * This file loads on:
 * - Homepage only (is_front_page() or is_home())
 *
 * Use this file for homepage-specific layouts, hero sections, featured content areas,
 * homepage widgets, landing page elements, and any styles unique to the front page.
 */

/* ===========================================
 * Table of Contents:
 * ===========================================
 * 1. Homepage Hero Sections
 * 2. Featured Content Areas
 * 3. Homepage Widgets
 * 4. Call-to-Action Sections
 * 5. Blocksy-Specific Homepage Adjustments
 */

/* ===========================================
 * 1. Homepage Hero Sections
 * =========================================== */

/* Hero section adjustments for Blocksy */
.home .hero-section {
    padding: 80px 0;
    text-align: center;
}

.home .hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.home .hero-section .hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* ===========================================
 * 2. Featured Content Areas
 * =========================================== */

/* Featured posts or content sections */
.home .featured-content {
    padding: 60px 0;
}

.home .featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Featured card styling */
.home .featured-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home .featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===========================================
 * 3. Homepage Widgets
 * =========================================== */

/* Widget area adjustments for homepage */
.home .sidebar-primary,
.home .widget-area {
    padding: 40px 0;
}

.home .widget {
    margin-bottom: 40px;
}

.home .widget-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.home .widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--paletteColor1, #3858E9);
}

/* ===========================================
 * 4. Call-to-Action Sections
 * =========================================== */

/* CTA sections on homepage */
.home .cta-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--paletteColor1, #3858E9) 0%, var(--paletteColor2, #2c47d0) 100%);
    color: white;
}

.home .cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.home .cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.home .cta-section .ct-button {
    background: white;
    color: var(--paletteColor1, #3858E9);
    padding: 15px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home .cta-section .ct-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===========================================
 * 5. Blocksy-Specific Homepage Adjustments
 * =========================================== */

/* Adjust Blocksy's default entry cards on homepage */
.home .entries {
    margin-top: 40px;
}

.home article.entry-card {
    transition: all 0.3s ease;
}

.home article.entry-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Homepage pagination styling */
.home .ct-pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color, #e8e8e8);
}

/* Dark mode adjustments */
[data-theme="dark"] .home .hero-section,
[data-theme="dark"] .home .featured-content {
    background: var(--darkBackground, #1a1a1a);
}

[data-theme="dark"] .home .widget-title:after {
    background: var(--paletteColor3, #6B7280);
}

[data-theme="dark"] .home .cta-section {
    background: linear-gradient(135deg, var(--paletteColor3, #6B7280) 0%, var(--paletteColor4, #4B5563) 100%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .home .hero-section {
        padding: 60px 20px;
    }

    .home .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home .cta-section {
        padding: 40px 20px;
    }

    .home .widget-area {
        padding: 30px 0;
    }
}