/**
 * WPBakery Advent Card Styles
 * With hover effect and FancyBox integration
 */

.wb-advent-card {
    margin-bottom: 35px;
}

.wb-advent-card img {
    width: 100% !important;
    height: auto;
    display: block;
}

/* Image container */
.wb-advent-card-image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.wb-advent-card-link {
    display: block;
    text-decoration: none;
}

/* Image layers for hover effect */
.wb-advent-card-image {
    width: 100%;
}

.wb-advent-card-image-front {
    display: block;
}

.wb-advent-card-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wb-advent-card:not(.wb-future_date) .wb-advent-card-link:hover .wb-advent-card-image-hover {
    opacity: 1;
}

/* Overlay with text */
.wb-advent-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wb-advent-card-overlay span {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: 2px solid #fff;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.wb-advent-card:not(.wb-future_date) .wb-advent-card-link:hover .wb-advent-card-overlay {
    opacity: 1;
}

.wb-advent-card:not(.wb-future_date) .wb-advent-card-link:hover .wb-advent-card-overlay span {
    transform: scale(1.05);
}

/* Locked state for future dates */
.wb-advent-card.wb-future_date .wb-advent-card-image-container {
    cursor: not-allowed;
}

.wb-advent-card-locked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-advent-card-locked span {
    font-size: 48px;
    filter: grayscale(100%);
}

/* Optional: Scale effect on hover */
.wb-advent-card:not(.wb-future_date) .wb-advent-card-link:hover .wb-advent-card-image-container img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

.wb-advent-card-image-container img {
    transition: transform 0.4s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .wb-advent-card-overlay span {
        font-size: 14px;
        padding: 8px 16px;
    }

    .wb-advent-card-locked span {
        font-size: 36px;
    }
}
