/* Grid Hover Card Neon - Uiverse tasty-frog-49 style adapted for Elementor */
.grid-hover-card-neon {
    --ghcn-border-width: 0px;
    --ghcn-border-color: transparent;
    --ghcn-border-color-1: #e81cff;
    --ghcn-border-color-2: #40c9ff;
    --ghcn-glow-color-1: #fc00ff;
    --ghcn-glow-color-2: #00dbde;
    --ghcn-neon-outset: 10px;
    --ghcn-card-width: 320px;
    --ghcn-card-height: 420px;
    --ghcn-glow-blur-normal: 20px;
    --ghcn-glow-blur-hover: 30px;    --ghcn-transition-duration: 0.6s;    --ghcn-radius-top: 8px;
    --ghcn-radius-right: 8px;
    --ghcn-radius-bottom: 8px;
    --ghcn-radius-left: 8px;
    width: 320px;
    min-height: 420px;
    height: auto;
    position: relative;
    cursor: pointer;
    isolation: isolate;
    box-sizing: border-box;
    background: var(--ghcn-border-color);
    padding: var(--ghcn-border-width);
    border-radius: var(--ghcn-radius-top) var(--ghcn-radius-right) var(--ghcn-radius-bottom) var(--ghcn-radius-left);
}

.grid-hover-card-neon,
.grid-hover-card-neon * {
    box-sizing: border-box;
}

.grid-hover-card-neon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--ghcn-card-width) + var(--ghcn-neon-outset));
    height: calc(var(--ghcn-card-height) + var(--ghcn-neon-outset));
    margin: auto;
    border-radius: var(--ghcn-radius-top) var(--ghcn-radius-right) var(--ghcn-radius-bottom) var(--ghcn-radius-left);
    background: linear-gradient(-45deg, var(--ghcn-border-color-1) 0%, var(--ghcn-border-color-2) 100%);
    z-index: -2;
    pointer-events: none;
    transition: all var(--ghcn-transition-duration) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(0deg);
}

.grid-hover-card-neon::after {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: var(--ghcn-radius-top) var(--ghcn-radius-right) var(--ghcn-radius-bottom) var(--ghcn-radius-left);
    background: linear-gradient(-45deg, var(--ghcn-glow-color-1) 0%, var(--ghcn-glow-color-2) 100%);
    transform: translate3d(0, 0, 0) scale(0.95);
    filter: blur(var(--ghcn-glow-blur-normal));
    transition: filter var(--ghcn-transition-duration) ease;
    pointer-events: none;
}

.grid-hover-card-neon:hover::after,
.grid-hover-card-neon.editor-hover::after {
    filter: blur(var(--ghcn-glow-blur-hover));
}

.grid-hover-card-neon:hover::before,
.grid-hover-card-neon.editor-hover::before {
    width: calc(var(--ghcn-card-height) + var(--ghcn-neon-outset));
    height: calc(var(--ghcn-card-width) + var(--ghcn-neon-outset));
    transform: translate(-50%, -50%) rotate(-90deg);
}

.grid-hover-card-neon__surface {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    background: #000000;
    color: #ffffff;
    border-radius: var(--ghcn-radius-top) var(--ghcn-radius-right) var(--ghcn-radius-bottom) var(--ghcn-radius-left);
    overflow: hidden;
}

.grid-hover-card-neon__content {
    width: 100%;
    min-height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.grid-hover-card-neon__image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    flex: 0 0 auto;
}

.grid-hover-card-neon__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.grid-hover-card-neon__title {
    color: #ffffff;
    margin-bottom: 10px;
}

.grid-hover-card-neon__text {
    color: #ffffff;
}

.grid-hover-card-neon__button-wrap {
    display: flex;
    margin-top: auto;
    flex: 0 0 auto;
}

.grid-hover-card-neon__button-align-left {
    align-self: flex-start;
}

.grid-hover-card-neon__button-align-center {
    align-self: center;
}

.grid-hover-card-neon__button-align-right {
    align-self: flex-end;
}

.grid-hover-card-neon__button-align-justify {
    align-self: stretch;
    width: 100%;
}

.grid-hover-card-neon__button-align-justify .grid-hover-card-neon__button {
    width: 100%;
}

.grid-hover-card-neon__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 18px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 0.3s;
}

.grid-hover-card-neon__button:hover,
.grid-hover-card-neon__button:focus {
    text-decoration: none;
}

.grid-hover-card-neon__button-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.grid-hover-card-neon__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: currentColor;
}

.grid-hover-card-neon__button-icon-before {
    margin-right: 10px;
}

.grid-hover-card-neon__button-icon-after {
    margin-left: 10px;
}

.grid-hover-card-neon__button-icon i {
    font-size: 16px;
}

.grid-hover-card-neon__button-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* v1.0.2: neon layers follow the live Elementor card dimensions */
.grid-hover-card-neon::before {
    width: calc(100% + (var(--ghcn-neon-outset) * 2));
    height: calc(100% + (var(--ghcn-neon-outset) * 2));
}

.grid-hover-card-neon::after {
    width: 100%;
    height: 100%;
}

.grid-hover-card-neon__surface,
.grid-hover-card-neon__content {
    min-height: 100%;
}


/* v1.0.3: hover neon layer follows live card dimensions */
.grid-hover-card-neon:hover::before,
.grid-hover-card-neon.editor-hover::before {
    width: var(--ghcn-hover-fit-width);
    height: var(--ghcn-hover-fit-height);
}






/* v1.0.7: rotated neon layer final visual size = card size + one total outset */
.grid-hover-card-neon::before {
    top: 50%;
    left: 50%;
    width: calc(var(--ghcn-card-width) + var(--ghcn-neon-outset));
    height: calc(var(--ghcn-card-height) + var(--ghcn-neon-outset));
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: var(--ghcn-radius-top) var(--ghcn-radius-right) var(--ghcn-radius-bottom) var(--ghcn-radius-left);
}

.grid-hover-card-neon:hover::before,
.grid-hover-card-neon.editor-hover::before {
    width: calc(var(--ghcn-card-height) + var(--ghcn-neon-outset));
    height: calc(var(--ghcn-card-width) + var(--ghcn-neon-outset));
    transform: translate(-50%, -50%) rotate(-90deg);
}


/* v1.0.8: normal state is tied to the actual rendered card box */
.grid-hover-card-neon::before {
    top: calc(var(--ghcn-neon-outset) / -2);
    right: calc(var(--ghcn-neon-outset) / -2);
    bottom: calc(var(--ghcn-neon-outset) / -2);
    left: calc(var(--ghcn-neon-outset) / -2);
    width: auto;
    height: auto;
    transform: rotate(0deg);
    transform-origin: center center;
}

/* keep the glow layer tied to the actual card in all states */
.grid-hover-card-neon::after,
.grid-hover-card-neon:hover::after,
.grid-hover-card-neon.editor-hover::after {
    inset: 0;
    width: auto;
    height: auto;
}

/* hover rotation keeps the corrected swapped dimensions from v1.0.7 */
.grid-hover-card-neon:hover::before,
.grid-hover-card-neon.editor-hover::before {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(var(--ghcn-card-height) + var(--ghcn-neon-outset));
    height: calc(var(--ghcn-card-width) + var(--ghcn-neon-outset));
    transform: translate(-50%, -50%) rotate(-90deg);
}


/* v1.0.9: height control drives the real card and all internal layers */
.grid-hover-card-neon {
    box-sizing: border-box;
}

.grid-hover-card-neon__surface {
    height: 100%;
    min-height: 100%;
}

.grid-hover-card-neon__content {
    height: 100%;
    min-height: 100%;
}


/* v1.0.10: glow blur controls and editor hover preview */
.grid-hover-card-neon::after {
    filter: blur(var(--ghcn-glow-blur-normal)) !important;
}

.grid-hover-card-neon:hover::after,
.grid-hover-card-neon.ghcn-editor-hover::after {
    filter: blur(var(--ghcn-glow-blur-hover)) !important;
}
