/**
 * Hero Images Styling for TrekOn
 * Displays featured images as hero sections on pages
 */

/* Homepage Hero Section - Applied to page header (Treks banner) */
.home .page-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
    width: 100%;
    padding: 60px 20px;
}

.home .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/wp-content/uploads/2025/06/IMG_1809-optimized.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.home .page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

/* Style the Treks title on homepage */
.home .page-header .page-title {
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    z-index: 1;
    position: relative;
}

/* Hero Content Overlay */
.hero-content {
    text-align: center;
    color: white;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: white;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    color: white;
}

.hero-content .button,
.hero-content .wp-block-button__link {
    background-color: #2e7d32;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
}

.hero-content .button:hover,
.hero-content .wp-block-button__link:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Page Heroes (for other pages with featured images) */
.page .entry-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
}

.page.has-post-thumbnail .entry-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.page.has-post-thumbnail .entry-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: -1;
}

.page.has-post-thumbnail .entry-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-size: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* Archive Page Hero */
.archive .page-header {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    margin-bottom: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .home .page-header {
        min-height: 300px;
        padding: 40px 20px;
    }
    
    .home .page-header .page-title {
        font-size: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .page.has-post-thumbnail .entry-title {
        font-size: 2rem;
    }
}

/* Trek Archive Specific Hero */
.post-type-archive-trek .archive-header-hero {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.post-type-archive-trek .archive-header-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/wp-content/uploads/2025/06/IMG_1809-optimized.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
}

.post-type-archive-trek .archive-header-content {
    position: relative;
    z-index: 1;
    color: white;
}

.post-type-archive-trek .archive-title,
.post-type-archive-trek .archive-description,
.post-type-archive-trek .archive-description p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}