/**
 * Hero Post Template Styles
 *
 * Loaded ONLY on posts using template-hero-post.php
 * This CSS is completely isolated from other templates
 *
 * @package ticoneXion
 * @version 2.4.18
 */

/* ==========================================================================
   1. Hide empty main#content from header.php
   ========================================================================== */
body.post-template-template-hero-post main#content.site-content {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   2. Header - Transparent gradient over hero
   ========================================================================== */
body.post-template-template-hero-post .site-header {
    background: linear-gradient(to bottom, rgba(0, 102, 255, 0.95) 0%, rgba(0, 102, 255, 0) 100%) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    border-bottom: none !important;
}

body.post-template-template-hero-post .site-header.scrolled {
    background: rgba(3, 7, 18, 0.98) !important;
    position: fixed !important;
    top: 0 !important;
}

body.post-template-template-hero-post .nav-menu a {
    color: #ffffff !important;
}

body.post-template-template-hero-post .nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.post-template-template-hero-post .site-title a {
    color: #ffffff !important;
}

/* ==========================================================================
   3. Hero Section - Full viewport width background image
   ========================================================================== */
body.post-template-template-hero-post .hero-featured,
body.post-template-template-hero-post .hero-featured.hero-featured--post,
body.post-template-template-hero-post section.hero-featured {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100vw !important;
    min-height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    top: 0 !important;
    padding-top: 40px !important;
    padding-bottom: 3rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
}

@media (min-width: 1024px) {
    body.post-template-template-hero-post .hero-featured,
    body.post-template-template-hero-post .hero-featured.hero-featured--post {
        min-height: 75vh !important;
    }
}

/* ==========================================================================
   4. Hero overlay - gradient for text readability
   ========================================================================== */
body.post-template-template-hero-post .hero-featured__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        to top,
        rgba(3, 7, 18, 0.95) 0%,
        rgba(3, 7, 18, 0.7) 40%,
        rgba(3, 7, 18, 0.3) 70%,
        rgba(3, 7, 18, 0.1) 100%
    ) !important;
    z-index: 1 !important;
}

/* ==========================================================================
   5. Hero content
   ========================================================================== */
body.post-template-template-hero-post .hero-featured__content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
}

body.post-template-template-hero-post .hero-featured__header {
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
}

/* ==========================================================================
   6. Breadcrumb
   ========================================================================== */
body.post-template-template-hero-post .hero-featured__breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 1.5rem !important;
}

body.post-template-template-hero-post .hero-featured__breadcrumb a {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.post-template-template-hero-post .hero-featured__breadcrumb a:hover {
    color: #ffffff;
}

body.post-template-template-hero-post .hero-featured__breadcrumb .separator {
    font-size: 0.625rem;
    opacity: 0.6;
}

body.post-template-template-hero-post .hero-featured__breadcrumb .current {
    color: #ffffff;
    font-weight: 500;
}

/* ==========================================================================
   7. Categories
   ========================================================================== */
body.post-template-template-hero-post .hero-featured__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

body.post-template-template-hero-post .hero-featured__category {
    display: inline-block !important;
    padding: 0.25rem 0.75rem !important;
    background: rgba(59, 130, 246, 0.3) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
}

body.post-template-template-hero-post .hero-featured__category:hover {
    background: rgba(59, 130, 246, 0.5);
    color: #ffffff;
}

/* ==========================================================================
   8. Title
   ========================================================================== */
body.post-template-template-hero-post .hero-featured__title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    line-height: 1.2 !important;
}

@media (min-width: 768px) {
    body.post-template-template-hero-post .hero-featured__title {
        font-size: 2.75rem !important;
    }
}

@media (min-width: 1024px) {
    body.post-template-template-hero-post .hero-featured__title {
        font-size: 3rem !important;
    }
}

/* ==========================================================================
   9. Meta
   ========================================================================== */
body.post-template-template-hero-post .hero-featured__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

body.post-template-template-hero-post .hero-featured__meta i {
    margin-right: 0.375rem;
    opacity: 0.7;
}

body.post-template-template-hero-post .hero-featured__date,
body.post-template-template-hero-post .hero-featured__reading-time,
body.post-template-template-hero-post .hero-featured__author {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   10. Post Content Area
   ========================================================================== */
body.post-template-template-hero-post .site-main {
    background-color: #030712 !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* ==========================================================================
   11. Content layout - main content takes 2/3, sidebar 1/3
   ========================================================================== */
body.post-template-template-hero-post .content-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

@media (min-width: 1024px) {
    body.post-template-template-hero-post .content-layout {
        grid-template-columns: 2fr 1fr !important;
    }

    body.post-template-template-hero-post .content-layout.sidebar-left {
        grid-template-columns: 1fr 2fr !important;
    }
}

body.post-template-template-hero-post .main-content {
    min-width: 0 !important;
}

/* ==========================================================================
   12. Remove 800px max-width restriction from hero post content
   ========================================================================== */
body.post-template-template-hero-post .hero-post-content,
body.post-template-template-hero-post .single-post.hero-post-content,
body.post-template-template-hero-post article.hero-post-content,
body.post-template-template-hero-post article.single-post.hero-post-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.post-template-template-hero-post .hero-post-content .entry-content,
body.post-template-template-hero-post .hero-post-content .single-post__content,
body.post-template-template-hero-post .single-post.hero-post-content .entry-content,
body.post-template-template-hero-post .single-post.hero-post-content .single-post__content,
body.post-template-template-hero-post article.hero-post-content .entry-content,
body.post-template-template-hero-post article.hero-post-content .single-post__content {
    max-width: none !important;
    width: 100% !important;
}

body.post-template-template-hero-post .single-post,
body.post-template-template-hero-post article.single-post,
body.post-template-template-hero-post .main-content .single-post,
body.post-template-template-hero-post .main-content article,
body.post-template-template-hero-post .content-layout .main-content article,
body.post-template-template-hero-post .container .main-content article {
    max-width: none !important;
    width: 100% !important;
}

body.post-template-template-hero-post .single-post__content,
body.post-template-template-hero-post .entry-content,
body.post-template-template-hero-post article .entry-content,
body.post-template-template-hero-post article .single-post__content,
body.post-template-template-hero-post .main-content .entry-content,
body.post-template-template-hero-post .main-content .single-post__content {
    max-width: none !important;
    width: 100% !important;
}

body.post-template-template-hero-post .hero-post-content {
    background: transparent;
}

body.post-template-template-hero-post .single-post__content {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ==========================================================================
   13. Light Content Mode - White background for article only
   ========================================================================== */
body.post-template-template-hero-post .site-main.content-mode-light {
    background-color: #030712;
}

body.post-template-template-hero-post .content-mode-light.hero-post-content {
    background-color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    margin-top: -2rem !important;
    position: relative !important;
    z-index: 10 !important;
}

@media (min-width: 768px) {
    body.post-template-template-hero-post .content-mode-light.hero-post-content {
        padding: 3rem;
    }
}

body.post-template-template-hero-post .content-mode-light .entry-content,
body.post-template-template-hero-post .content-mode-light .entry-content p {
    color: #374151 !important;
}

body.post-template-template-hero-post .content-mode-light .single-post__content {
    color: #1f2937;
}

body.post-template-template-hero-post .content-mode-light .entry-content h2,
body.post-template-template-hero-post .content-mode-light .entry-content h3,
body.post-template-template-hero-post .content-mode-light .entry-content h4,
body.post-template-template-hero-post .content-mode-light .entry-content h5,
body.post-template-template-hero-post .content-mode-light .entry-content h6 {
    color: #111827 !important;
}

body.post-template-template-hero-post .content-mode-light .entry-content a {
    color: #1E40AF !important;
}

body.post-template-template-hero-post .content-mode-light .entry-content a:hover {
    color: #1E3A8A;
}

body.post-template-template-hero-post .content-mode-light .entry-content blockquote {
    border-left: 4px solid #1E40AF;
    background: #f3f4f6;
    color: #374151;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

body.post-template-template-hero-post .content-mode-light .entry-content ul li,
body.post-template-template-hero-post .content-mode-light .entry-content ol li {
    color: #374151;
}

body.post-template-template-hero-post .content-mode-light .entry-content strong,
body.post-template-template-hero-post .content-mode-light .entry-content b {
    color: #111827;
}

body.post-template-template-hero-post .content-mode-light .single-post__footer {
    border-top-color: #e5e7eb;
}

/* ==========================================================================
   14. Sidebar Widgets
   ========================================================================== */
body.post-template-template-hero-post .sidebar .sidebar-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

body.post-template-template-hero-post .sidebar .content-mode-light .sidebar-widget,
body.post-template-template-hero-post .content-mode-light ~ .sidebar .sidebar-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

body.post-template-template-hero-post .content-mode-light ~ .sidebar .sidebar-widget-title {
    color: #111827;
}

body.post-template-template-hero-post .content-mode-light ~ .sidebar .sidebar-widget {
    color: #374151;
}
