/* Directory-Pro header shortcode styling (glass card inspired by SKC weather/lake cards). */

.dpro-header-scope {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #0f172a;
    margin: 0 0 1.5rem;
}

.dpro-header-scope * {
    box-sizing: border-box;
}

.dpro-header-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    align-items: stretch;
    height: 100%;
    min-height: var(--skc-weather-lake-card-height, 360px);
}

.dpro-header-card__media {
    border-radius: 14px;
    overflow: hidden;
    min-height: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    padding: 0.75rem;
    background: rgba(148, 163, 184, 0.18);
    position: relative;

    /* Explicitly ensure padding is included in sizing calculations */
    box-sizing: border-box;
}

.dpro-header-card__image {
    display: block;

    /* Never exceed the visible media area (accounts for padding) */
    max-width: 100%;
    max-height: 100%;

    /* Allow shrinking correctly inside grid/flex */
    min-width: 0;
    min-height: 0;

    /* Show the whole image, letterbox if needed */
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.dpro-header-card__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
    z-index: 1;
}

.dpro-header-card__image-placeholder {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.dpro-header-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.dpro-header-card__title {
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.dpro-header-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    justify-content: center;
}

.dpro-header-card__button {
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.6);
}

.dpro-header-card__button:focus-visible,
.dpro-header-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.7);
}

.dpro-header-card__button--primary {
    color: #f8fafc;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.9));
}

.dpro-header-card__button--ghost {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #0f172a;
}

@media (max-width: 640px) {
    .dpro-header-card {
        padding: 1rem;
        min-height: var(--skc-weather-lake-card-height, 340px);
    }

    .dpro-header-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dpro-header-card__button--all {
        display: none;
    }
}
