/**
 * Hero Section Styles
 *
 * @package Magazine_Minimal
 * @since 1.0.0
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--mm-color-dark-gray);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Hero Heights */
.hero--short {
    min-height: 450px;
}

.hero--medium {
    min-height: 550px;
}

.hero--tall {
    min-height: 85vh;
    max-height: 800px;
}

.hero--full {
    min-height: 100vh;
}

/* Hero Overlay - Modern gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: var(--mm-spacing-xxl) 0;
}

.hero-inner {
    max-width: 700px;
}

/* Hero Meta */
.hero-meta {
    margin-bottom: var(--mm-spacing-lg);
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--mm-color-black);
    background-color: var(--mm-color-white);
    border-radius: 100px;
    transition: all var(--mm-transition-fast);
}

.category-badge:hover {
    background-color: var(--mm-color-off-white);
    color: var(--mm-color-black);
    transform: translateY(-2px);
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--mm-spacing-lg);
    color: var(--mm-color-white);
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(transparent calc(100% - 3px), rgba(255,255,255,0.4) 3px);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size var(--mm-transition-normal);
}

.hero-title a:hover {
    background-size: 100% 100%;
    color: var(--mm-color-white);
}

/* Hero Excerpt */
.hero-excerpt {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--mm-spacing-lg);
    max-width: 550px;
    font-weight: 400;
}

/* Hero Footer */
.hero-footer {
    display: flex;
    align-items: center;
    gap: var(--mm-spacing-lg);
    flex-wrap: wrap;
}

.hero-post-meta {
    display: flex;
    align-items: center;
    gap: var(--mm-spacing-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.hero-post-meta .meta-separator {
    opacity: 0.5;
}

/* Hero Button */
.hero-btn {
    background-color: var(--mm-color-white);
    border-color: var(--mm-color-white);
    color: var(--mm-color-black);
    border-radius: 100px;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hero-btn:hover,
.hero-btn:focus {
    background-color: transparent;
    border-color: var(--mm-color-white);
    color: var(--mm-color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Hero without Image
   ========================================================================== */
.hero:not([style*="background-image"]) {
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        #0a0a0a 100%
    );
}

.hero:not([style*="background-image"]) .hero-overlay {
    display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero--short {
        min-height: 400px;
    }

    .hero--medium {
        min-height: 450px;
    }

    .hero--tall {
        min-height: 70vh;
    }

    .hero--full {
        min-height: 85vh;
    }

    .hero-content {
        padding: var(--mm-spacing-xl) 0;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-excerpt {
        font-size: 1rem;
    }

    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--mm-spacing-md);
    }

    .hero-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .category-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }
}
