/* ==========================================================
   LBS DIGITAL - MERENJE V2
   ========================================================== */

.lbs-measure-card-v2 {
    position: relative;
    overflow: hidden;
    cursor: default;
    transition:
        background .28s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        transform .28s ease;
}

.lbs-measure-card-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 85% 18%,
            rgba(85,117,255,.17),
            transparent 45%
        );
    transition: opacity .28s ease;
}

.lbs-measure-card-v2:hover {
    border-color: #5575ff !important;
    background:
        linear-gradient(
            135deg,
            rgba(85,117,255,.09),
            rgba(85,117,255,.015) 60%
        );
    box-shadow:
        inset 0 0 0 1px rgba(85,117,255,.12),
        0 0 32px rgba(85,117,255,.08);
    transform: translateY(-2px);
}

.lbs-measure-card-v2:hover::before {
    opacity: 1;
}

.lbs-measure-card-v2 h3,
.lbs-measure-card-v2 p,
.lbs-measure-card-v2 .lbs-measure-v2-detail {
    position: relative;
    z-index: 2;
}

.lbs-measure-v2-detail {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    color: rgba(255,255,255,.48);
    font-size: 12px;
    line-height: 1.45;
    transition:
        max-height .30s ease,
        opacity .25s ease,
        margin-top .30s ease;
}

.lbs-measure-card-v2:hover .lbs-measure-v2-detail {
    max-height: 80px;
    margin-top: 12px;
    opacity: 1;
}

.lbs-measure-v2-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #5575ff;
    transition: width .35s ease;
}

.lbs-measure-card-v2:hover .lbs-measure-v2-line {
    width: 100%;
}

@media (max-width: 760px) {

    .lbs-measure-v2-detail {
        max-height: none;
        margin-top: 10px;
        opacity: 1;
    }

    .lbs-measure-card-v2 {
        transform: none !important;
    }
}


/* ==========================================================
   MERENJE - STATIC CONTENT / HOVER ONLY
   ========================================================== */

.lbs-measure-card-v2 {
    transform: none !important;
    transition:
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease !important;
}


/* Sav dodatni tekst je stalno vidljiv */

.lbs-measure-v2-detail {
    max-height: none !important;
    height: auto !important;
    margin-top: 10px !important;
    overflow: visible !important;
    opacity: 1 !important;

    color: rgba(255,255,255,.55);
    font-size: 12px;
    line-height: 1.45;

    transition: none !important;
}


/* Hover ne menja dimenzije kartice */

.lbs-measure-card-v2:hover {
    transform: none !important;

    border-color: #5575ff !important;

    background:
        linear-gradient(
            135deg,
            rgba(85,117,255,.95),
            rgba(85,117,255,.78)
        );

    box-shadow: none !important;
}


/* Tekst ostaje čitljiv na plavom hoveru */

.lbs-measure-card-v2:hover h3 {
    color: #fff !important;
}

.lbs-measure-card-v2:hover p,
.lbs-measure-card-v2:hover .lbs-measure-v2-detail {
    color: rgba(255,255,255,.78) !important;
}


/* Bez animirane donje linije */

.lbs-measure-v2-line {
    display: none !important;
}


/* Isključujemo sve promene visine */

.lbs-measure-card-v2:hover .lbs-measure-v2-detail {
    max-height: none !important;
    margin-top: 10px !important;
    opacity: 1 !important;
}
