/* site.css | custom/header
   Site-specific styles for dieschwestern.berlin */

/* --------------------------------------------------------- */
/* Post Meta */
/* --------------------------------------------------------- */
.post-card-meta-length {
    display: none;
}

/* --------------------------------------------------------- */
/* Header Height */
/* --------------------------------------------------------- */
.has-cover .site-header-content {
    max-height: 50px !important;
    min-height: 50px !important;
}

/* --------------------------------------------------------- */
/* Article Image Container */
/* --------------------------------------------------------- */
.article-header.gh-canvas .article-image {
    grid-column: main-start / main-end;
    max-width: var(--content-width, 720px);
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    position: relative;
}

/* --------------------------------------------------------- */
/* Article Image */
/* --------------------------------------------------------- */
.article-header.gh-canvas .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --------------------------------------------------------- */
/* Footer Padding */
/* --------------------------------------------------------- */
.site-footer {
    padding-bottom: 20px;
}

/* --------------------------------------------------------- */
/* Header Gradient */
/* --------------------------------------------------------- */
.has-cover:not(.home-template) .gh-head {
    background:
        radial-gradient(circle at 20% 30%, #FD6D98 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, #3B7392 0%, transparent 45%),
        linear-gradient(
            140deg,
            #A82C8C 0%,
            #C06F9A 50%,
            #516087 100%
        );
}

/* --------------------------------------------------------- */
/* Blockquote Accent */
/* --------------------------------------------------------- */
.gh-content > blockquote:not([class]):before {
    background: linear-gradient(
        180deg,
        #A82C8C 0%,
        #EF5999 30%,
        #FD6D98 55%,
        #C06F9A 75%,
        #3B7392 100%
    );
    margin-left: 11px;
}

/* --------------------------------------------------------- */
/* H1 Gradient Text */
/* --------------------------------------------------------- */
h1 {
    background: linear-gradient(
        120deg,
        #A82C8C 0%,
        #EF5999 30%,
        #FD6D98 55%,
        #C06F9A 75%,
        #3B7392 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline;
    line-height: 1.15;
    padding-bottom: 0.08em;
}

/* --------------------------------------------------------- */
/* Mobile Menu Gradient */
/* --------------------------------------------------------- */
@media (max-width: 767px) {
    .gh-head-open.has-cover #gh-head {
        background: linear-gradient(
            135deg,
            #A82C8C 0%,
            #EF5999 30%,
            #FD6D98 55%,
            #C06F9A 75%,
            #3B7392 100%
        );
    }

    .gh-head-open.has-cover #gh-head .gh-head-actions {
        background: transparent !important;
    }
}

/* --------------------------------------------------------- */
/* Button Gradient */
/* --------------------------------------------------------- */
.kg-button-card a.kg-btn-accent {
    background: linear-gradient(
        135deg,
        #A82C8C 0%,
        #EF5999 30%,
        #FD6D98 55%,
        #C06F9A 75%,
        #3B7392 100%
    );
}

/* --------------------------------------------------------- */
/* GFM Embed Cleanup */
/* --------------------------------------------------------- */
.gfm-embed {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --------------------------------------------------------- */
/* Content Fade Initial State */
/* --------------------------------------------------------- */
.gh-content p,
.gh-content li,
.gh-content blockquote {
    opacity: 0.35;
    transform: translateY(20px);
    transition:
        opacity 0.25s linear,
        transform 0.25s linear;
}

/* ========================================================= */
/* EXTERNAL LINK ICONS */
/* ========================================================= */

.external-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25em;
    opacity: 0.65;
    vertical-align: middle;
    transform: translateY(-1px);
    transition: opacity 0.2s ease;
}

a:hover .external-link-icon {
    opacity: 1;
}

.external-link-icon svg {
    width: 0.85em;
    height: 0.85em;
}

/* ========================================================= */
/* ARTICLE IMAGE BLUR EFFECT (site overrides) */
/* ========================================================= */

.article-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 720 / 500;
    border-radius: 16px;
    isolation: isolate;
}

.article-image::before {
    content: "";
    position: absolute;
    inset: -30px;
    background-image: var(--article-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(40px);
    transform: scale(1.2);
    opacity: 0.9;
    z-index: 0;
}

.article-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}

.article-image img {
    position: relative !important;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    max-width: 100%;
    max-height: 100%;
}
