/**
 * Hero Section Component
 * Hero section styles for the front page
 *
 * @package MediaKit_Lite
 */

.mkp-hero {
    padding: var(--mkp-spacing-xxl) 0;
    min-height: auto;
}

.mkp-hero__wrapper {
    display: flex;
    align-items: center;
    gap: var(--mkp-spacing-xl);
}

.mkp-hero__content {
    flex: 2;
    text-align: center;
    padding: 0 var(--mkp-spacing-lg);
}

.mkp-hero__images {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--mkp-spacing-md);
}

/* When hero has multiple images of different sizes */
.mkp-hero__images:has(.mkp-hero__image--large) {
    align-items: flex-end; /* Align bottoms when sizes differ */
}

.mkp-hero__images--left {
    order: -1;
}

.mkp-hero__images--right {
    order: 1;
}

.mkp-hero__image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Small size images */
.mkp-hero__image--small {
    max-width: 240px;
    max-height: 480px;
}

/* Medium size images (default) */
.mkp-hero__image--medium {
    max-width: 340px;
    max-height: 620px;
}

/* Large size images */
.mkp-hero__image--large {
    max-width: 460px;
    max-height: 800px;
}

.mkp-hero__image img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mkp-hero__name {
    font-size: 3rem;
    margin-bottom: var(--mkp-spacing-md);
    color: var(--mkp-theme-primary);
}

.mkp-hero__name-image {
    margin-bottom: var(--mkp-spacing-md);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mkp-hero__name-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mkp-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--mkp-spacing-xl);
}

.mkp-hero__tag {
    display: inline-block;
    padding: 0;
    background-color: transparent;
    color: inherit;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
}

.mkp-hero__separator {
    display: inline-block;
    margin: 0 0.75em;
    opacity: 0.5;
    color: inherit;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mkp-hero__title {
        font-size: 2rem;
    }
    
    .mkp-hero__name {
        font-size: 2rem;
    }
    
    .mkp-hero__name-image {
        max-width: 300px;
    }
    
    .mkp-hero__wrapper {
        flex-direction: column;
        gap: var(--mkp-spacing-md);
        align-items: stretch;
    }
    
    .mkp-hero .mkp-container {
        padding-left: 0;
        padding-right: 0;
    }

    .mkp-hero__images {
        display: block;
        width: 100%;
        padding-left: var(--mkp-spacing-lg);
        padding-right: var(--mkp-spacing-lg);
        box-sizing: border-box;
    }

    .mkp-hero__content {
        order: 2;
        margin: var(--mkp-spacing-lg) 0;
        padding-left: var(--mkp-spacing-lg);
        padding-right: var(--mkp-spacing-lg);
        min-width: 0;
        box-sizing: border-box;
        width: 100%;
    }

    .mkp-hero__tags {
        flex-direction: column;
        gap: var(--mkp-spacing-xs);
        max-width: 100%;
        box-sizing: border-box;
    }

    .mkp-hero__tag-group {
        white-space: normal;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .mkp-hero__tag {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .mkp-hero__separator {
        display: inline-block;
        margin: 0 0 0 0.75em;
    }

    .mkp-hero__images--left {
        order: 1;
    }

    .mkp-hero__images--right {
        order: 3;
    }

    /* Full width on mobile — override all size caps and flex */
    .mkp-hero__image,
    .mkp-hero__image--small,
    .mkp-hero__image--medium,
    .mkp-hero__image--large {
        display: block;
        width: 100%;
        max-width: 100%;
        max-height: none;
    }

    .mkp-hero__image img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .mkp-hero__image--small {
        max-width: 140px;
        max-height: 300px;
    }

    .mkp-hero__image--medium {
        max-width: 200px;
        max-height: 400px;
    }

    .mkp-hero__image--large {
        max-width: 280px;
        max-height: 520px;
    }
}