/* ============================================
   Shared Banner Rules — Paid & Fallback
   ============================================ */
.mcp-hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 2.8 / 1;
    min-height: 320px;
    max-height: 420px;
    overflow: hidden;
    display: block;
}

.mcp-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   Desktop-Only Banner Height Reduction
   ============================================ */
@media (min-width: 1024px) {
    .mcp-hero-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* Logo fallback (initial letter avatar) */
.mcp-logo-fallback {
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #1C75BC; /* MCP blue */
    text-transform: uppercase;
}

/* Mobile: Smaller logo fallback */
@media (max-width: 767px) {
    .mcp-logo-fallback {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Logo positioning (works at all sizes, optimized for mobile) */
.mcp-hero-banner .mcp-directory-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 120px;
    pointer-events: none;
}

.mcp-hero-banner .mcp-directory-logo img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    pointer-events: auto;
}

.mcp-hero-banner .mcp-directory-logo .mcp-logo-fallback {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
}

/* Desktop: Larger logo */
@media (min-width: 768px) {
    .mcp-hero-banner .mcp-directory-logo {
        max-width: 180px;
        top: 20px;
        left: 20px;
        padding: 10px;
    }
}

/* ============================================
   Mobile-Only Full-Bleed Banner
   ============================================ */
@media (max-width: 767px) {
    .mcp-hero-banner {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0;
        border-radius: 0;
    }
    
    .mcp-hero-banner img {
        border-radius: 0;
        object-position: center;
    }
    
    /* Mobile-Only Logo Size Reduction */
    .mcp-hero-banner .mcp-directory-logo {
        max-width: 64px;
        padding: 6px;
    }
    
    .mcp-hero-banner .mcp-directory-logo img {
        max-width: 100%;
        max-height: 64px;
        width: auto;
        height: auto;
    }
    
    .mcp-hero-banner .mcp-directory-logo .mcp-logo-fallback {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
}

/* Edit screen preview */
.mcp-hero-preview {
    max-width: 100%;
    margin-bottom: 12px;
    border-radius: 6px;
    display: block;
}

