/**
 * Cult UI–inspired effects (CSS ports for static HTML).
 */

/* --- Hero radial glow ---------------------------------------------------- */
#uvod::before {
    content: "";
    position: absolute;
    top: -15%;
    right: -5%;
    z-index: 1;
    width: min(55vw, 720px);
    height: min(70vh, 560px);
    background: radial-gradient(ellipse at center, rgba(234, 88, 12, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

#uvod .hero-inner {
    z-index: 2;
}

/* --- Gradient heading accents -------------------------------------------- */
.gradient-heading {
    background: linear-gradient(135deg, #0f172a 0%, #ea580c 45%, #0f172a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark .gradient-heading {
    background: linear-gradient(135deg, #f8fafc 0%, #fb923c 50%, #f8fafc 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

#hero-title.gradient-heading {
    background: linear-gradient(135deg, #ffffff 0%, #fed7aa 42%, #ffffff 88%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* --- Texture overlay ----------------------------------------------------- */
.texture-overlay {
    position: relative;
    isolation: isolate;
}

.texture-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    mix-blend-mode: multiply;
}

.texture-overlay > * {
    position: relative;
    z-index: 1;
}

.dark .texture-overlay::before {
    opacity: 0.12;
    mix-blend-mode: soft-light;
}

/* --- Section edge blur --------------------------------------------------- */
.edge-blur-bottom {
    position: relative;
}

.edge-blur-bottom::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3rem;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.85));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    mask-image: linear-gradient(to bottom, transparent, #000 70%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%);
}

#reference.edge-blur-bottom::after {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
}

.dark .edge-blur-bottom::after {
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.85));
}

/* Border beam disabled – too distracting for B2B UI; keep pill button styles only. */
.dir-tabs {
    position: relative;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dir-tabs__indicator {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
    transition: left 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
    pointer-events: none;
}

.dir-tabs__btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 9999px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.dir-tabs__btn[aria-selected="true"] {
    color: #ffffff;
}

.dir-tabs__btn:hover:not([aria-selected="true"]) {
    color: #334155;
}

.dark .dir-tabs {
    background: #1e293b;
    border-color: #334155;
}

.dark .dir-tabs__btn {
    color: #94a3b8;
}

.dark .dir-tabs__btn:hover:not([aria-selected="true"]) {
    color: #e2e8f0;
}

/* Gallery / sortiment filter menus – solid (no bleed-through) */
#gallery-filter .glass--pill,
#sortiment-filter .glass--pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#gallery-filter [data-dropdown-menu].glass--menu,
#sortiment-filter [data-dropdown-menu].glass--menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    width: max-content;
}

#gallery-filter [data-dropdown-menu] button,
#sortiment-filter [data-dropdown-menu] [data-tag] {
    white-space: nowrap;
}

.dark #gallery-filter .glass--pill,
.dark #sortiment-filter .glass--pill {
    background: #1e293b;
    border-color: #334155;
}

.dark #gallery-filter [data-dropdown-menu].glass--menu,
.dark #sortiment-filter [data-dropdown-menu].glass--menu {
    background: #1e293b;
    border-color: #334155;
}

/* --- Shift card (sortiment featured) ------------------------------------- */
#sortiment-featured .shift-card {
    display: block;
    height: 100%;
    border-radius: 0.875rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

#sortiment-featured .shift-card:hover {
    border-color: #fdba74;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.08);
    transform: translateY(-2px);
}

#sortiment-featured .shift-card__inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    min-height: 6.75rem;
}

#sortiment-featured .shift-card__media {
    position: relative;
    display: flex;
    width: 5.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    padding: 0.625rem 0.5rem 0.625rem 0.75rem;
}

#sortiment-featured .shift-card__media img {
    max-height: 4.5rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

#sortiment-featured .shift-card:hover .shift-card__media img {
    transform: scale(1.04);
}

#sortiment-featured .shift-card__media img.shift-card__img--eco {
    transform: scale(1.65);
    transform-origin: center center;
}

#sortiment-featured .shift-card:hover .shift-card__media img.shift-card__img--eco {
    transform: scale(1.72);
}

#sortiment-featured .shift-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 0.875rem 0.75rem 0;
    min-width: 0;
}

#sortiment-featured .shift-card:hover .shift-card__body {
    transform: none;
}

#sortiment-featured .shift-card__category {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ea580c;
}

#sortiment-featured .shift-card__title {
    margin-top: 0.125rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

#sortiment-featured .shift-card__tagline {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #64748b;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

#sortiment-featured .shift-card__extra {
    margin-top: 0.375rem;
    max-height: none;
    opacity: 1;
    overflow: visible;
}

#sortiment-featured .shift-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

#sortiment-featured .shift-card__tags span {
    border-radius: 9999px;
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #475569;
}

#sortiment-featured .shift-card__cta {
    margin-top: 0.375rem;
    padding-top: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ea580c;
}

.dark #sortiment-featured .shift-card {
    background: #1e293b;
    border-color: #334155;
}

.dark #sortiment-featured .shift-card__media {
    background: transparent;
}

.dark #sortiment-featured .shift-card__title {
    color: #f8fafc;
}

.dark #sortiment-featured .shift-card__tagline {
    color: #94a3b8;
}

/* Legacy shift-card (unused elsewhere – keep minimal fallback) */
.shift-card {
    display: block;
    height: 100%;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.shift-card:hover {
    border-color: #fdba74;
    box-shadow: 0 16px 40px rgba(234, 88, 12, 0.1);
    transform: translateY(-4px);
}

.shift-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shift-card__media {
    position: relative;
    display: flex;
    height: 11rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    padding: 1.25rem;
}

.shift-card__media img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.shift-card:hover .shift-card__media img {
    transform: scale(1.06);
}

.shift-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.shift-card:hover .shift-card__body {
    transform: translateY(-0.75rem);
}

.shift-card__category {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ea580c;
}

.shift-card__title {
    margin-top: 0.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
}

.shift-card__tagline {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

.shift-card__extra {
    margin-top: 0.75rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
}

.shift-card:hover .shift-card__extra {
    max-height: 5rem;
    opacity: 1;
    margin-top: 0.5rem;
}

.shift-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.shift-card__tags span {
    border-radius: 9999px;
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: #475569;
}

.shift-card__cta {
    margin-top: auto;
    padding-top: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ea580c;
}

.dark .shift-card {
    background: #1e293b;
    border-color: #334155;
}

.dark .shift-card__media {
    background: #0f172a;
}

.dark .shift-card__title {
    color: #f8fafc;
}

.dark .shift-card__tagline {
    color: #94a3b8;
}

/* --- Animated number ----------------------------------------------------- */
.animate-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.animate-number.is-visible {
    animation: cult-number-pop 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes cult-number-pop {
    from {
        opacity: 0;
        transform: translateY(0.5rem) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shift-card:hover .shift-card__body {
        transform: none;
    }

    .shift-card__extra {
        max-height: none;
        opacity: 1;
    }

    .dir-tabs__indicator {
        transition: none;
    }

    .animate-number.is-visible {
        animation: none;
    }
}
