/* Hero Banner - Special Header for Home Page */

.hero-banner-container {
    position: relative;
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    z-index: 5;
    /* Rotation for dynamic feel */
    transform: rotate(-1deg);
}

/* The Background Block */
.hero-banner-bg {
    background-color: var(--comic-teal-bg); /* Base color light blue theme */
    border: 4px solid var(--color-ink);
    box-shadow: 6px 6px 0px var(--color-ink);
    padding: 1rem 0.5rem;
    position: relative;

    /* Comic burst pattern */
    background-image: repeating-linear-gradient(
        45deg,
        var(--comic-teal-bg),
        var(--comic-teal-bg) 10px,
        #79A8B0 10px, /* Slightly darker teal/blue */
        #79A8B0 20px
    );
}

/* Inner frame for contrast */
.hero-banner-inner {
    background-color: var(--comic-cream); /* Light tan / paper */
    border: 3px solid var(--color-ink);
    padding: 1.5rem 1rem; /* Increased padding for larger size */
    transform: rotate(1deg); /* Counter-rotate slightly */
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px; /* Increased minimum height */
    position: relative;
}

/* The Title Text Container */
.hero-banner-title {
    font-family: var(--font-header);
    font-size: 3.8rem; /* Increased font size */
    color: var(--comic-yellow); /* Yellow text */
    text-align: center;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    z-index: 2;

    /* Strong Outline for contrast against light bg */
    text-shadow:
        3px 3px 0px var(--color-ink),
        -1.5px -1.5px 0 var(--color-ink),
        1.5px -1.5px 0 var(--color-ink),
        -1.5px 1.5px 0 var(--color-ink),
        1.5px 1.5px 0 var(--color-ink);

    -webkit-text-stroke: 1px var(--color-ink);
    letter-spacing: 1px;

    /* Skew for action */
    transform: skew(-3deg);

    /* Flex layout for center star */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* The Issue Stamp - Top Left */
.hero-issue-stamp {
    position: absolute;
    top: -15px;
    left: -5px;
    background-color: var(--comic-white);
    border: 3px solid var(--color-ink);
    padding: 4px 8px;
    transform: rotate(-5deg);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.4);
    z-index: 20;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Flex adjustment for single line */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;

    font-family: var(--font-body);
    font-weight: bold;
    font-size: 0.9rem; /* Adjusted size */
    color: var(--color-ink);
}

.hero-issue-stamp:hover {
    transform: rotate(-8deg) scale(1.05);
    background-color: #fffde7;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.4);
}

.hero-issue-stamp:active {
    transform: scale(0.95) rotate(-5deg);
}

/* Decorative: Center Star - Between Words */
.hero-banner-center-star {
    width: 30px;
    height: 30px;
    background-color: var(--comic-blue);
    border: 3px solid var(--color-ink);
    border-radius: 50%;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Counter-skew the star so it looks round, or keep skewed?
       The parent has skew(-3deg). If we don't counter-skew, the star will be oval.
       Let's counter-skew for a perfect circle. */
    transform: skew(3deg);
}

.hero-banner-center-star::after {
    content: '★';
    color: var(--comic-yellow);
    font-size: 1.2rem;
    -webkit-text-stroke: 1px var(--color-ink);
    /* Remove text shadow from parent */
    text-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .hero-banner-title {
        font-size: 2.4rem; /* Increased back up from 2.0rem based on feedback */
        gap: 5px; /* Further reduced gap to fit larger text */
        letter-spacing: 0.5px; /* Tighten spacing slightly */
    }
    .hero-banner-center-star {
        width: 22px; /* Slightly smaller star to save space */
        height: 22px;
    }
    .hero-banner-center-star::after {
        font-size: 0.9rem;
    }
    .hero-banner-inner {
        padding: 0.2rem; /* Minimize padding */
        min-height: 60px;
    }
}
