/* ===============================
   BASE STRUCTURE
================================ */
.sitsel-flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    overflow: hidden;
}

.sitsel-flip-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}
.sitsel-flip-card-front {
    z-index: 2;
}
.sitsel-flip-card-back {
    z-index: 1;
}

.sitsel-flip-card-front,
.sitsel-flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transition: transform 0.7s ease, opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sitsel-flip-card-face-content {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform;
}

/* ===============================
   FLIP EFFECT (CORRECT 3D LOGIC)
================================ */

/* RIGHT */
.sitsel-flip-card[data-effect="flip"][data-direction="right"] .sitsel-flip-card-back {
    transform: rotateY(180deg);
}
.sitsel-flip-card[data-effect="flip"][data-direction="right"]:hover .sitsel-flip-card-inner {
    transform: rotateY(180deg);
}

/* LEFT */
.sitsel-flip-card[data-effect="flip"][data-direction="left"] .sitsel-flip-card-back {
    transform: rotateY(-180deg);
}
.sitsel-flip-card[data-effect="flip"][data-direction="left"]:hover .sitsel-flip-card-inner {
    transform: rotateY(-180deg);
}

/* UP */
.sitsel-flip-card[data-effect="flip"][data-direction="up"] .sitsel-flip-card-back {
    transform: rotateX(-180deg);
}
.sitsel-flip-card[data-effect="flip"][data-direction="up"]:hover .sitsel-flip-card-inner {
    transform: rotateX(-180deg);
}

/* DOWN */
.sitsel-flip-card[data-effect="flip"][data-direction="down"] .sitsel-flip-card-back {
    transform: rotateX(180deg);
}
.sitsel-flip-card[data-effect="flip"][data-direction="down"]:hover .sitsel-flip-card-inner {
    transform: rotateX(180deg);
}


/* ===============================
   SLIDE EFFECT
================================ */
.sitsel-flip-card[data-effect="slide"] .sitsel-flip-card-back {
    transform: translateX(100%);
}

.sitsel-flip-card[data-effect="slide"][data-direction="right"]:hover .sitsel-flip-card-front {
    transform: translateX(-100%);
}
.sitsel-flip-card[data-effect="slide"][data-direction="right"]:hover .sitsel-flip-card-back {
    transform: translateX(0);
}

.sitsel-flip-card[data-effect="slide"][data-direction="left"] .sitsel-flip-card-back {
    transform: translateX(-100%);
}
.sitsel-flip-card[data-effect="slide"][data-direction="left"]:hover .sitsel-flip-card-front {
    transform: translateX(100%);
}
.sitsel-flip-card[data-effect="slide"][data-direction="left"]:hover .sitsel-flip-card-back {
    transform: translateX(0);
}

.sitsel-flip-card[data-effect="slide"][data-direction="up"] .sitsel-flip-card-back {
    transform: translateY(-100%);
}
.sitsel-flip-card[data-effect="slide"][data-direction="up"]:hover .sitsel-flip-card-front {
    transform: translateY(100%);
}
.sitsel-flip-card[data-effect="slide"][data-direction="up"]:hover .sitsel-flip-card-back {
    transform: translateY(0);
}

.sitsel-flip-card[data-effect="slide"][data-direction="down"] .sitsel-flip-card-back {
    transform: translateY(100%);
}
.sitsel-flip-card[data-effect="slide"][data-direction="down"]:hover .sitsel-flip-card-front {
    transform: translateY(-100%);
}
.sitsel-flip-card[data-effect="slide"][data-direction="down"]:hover .sitsel-flip-card-back {
    transform: translateY(0);
}

/* ===============================
   PUSH EFFECT (ALL DIRECTIONS)
================================ */
.sitsel-flip-card[data-effect="push"] .sitsel-flip-card-back {
    transform: translateX(100%);
}

/* RIGHT */
.sitsel-flip-card[data-effect="push"][data-direction="right"]:hover .sitsel-flip-card-front {
    transform: translateX(-100%) scale(0.9);
}
.sitsel-flip-card[data-effect="push"][data-direction="right"]:hover .sitsel-flip-card-back {
    transform: translateX(0);
}

/* LEFT */
.sitsel-flip-card[data-effect="push"][data-direction="left"] .sitsel-flip-card-back {
    transform: translateX(-100%);
}
.sitsel-flip-card[data-effect="push"][data-direction="left"]:hover .sitsel-flip-card-front {
    transform: translateX(100%) scale(0.9);
}
.sitsel-flip-card[data-effect="push"][data-direction="left"]:hover .sitsel-flip-card-back {
    transform: translateX(0);
}

/* UP */
.sitsel-flip-card[data-effect="push"][data-direction="up"] .sitsel-flip-card-back {
    transform: translateY(-100%);
}
.sitsel-flip-card[data-effect="push"][data-direction="up"]:hover .sitsel-flip-card-front {
    transform: translateY(100%) scale(0.9);
}
.sitsel-flip-card[data-effect="push"][data-direction="up"]:hover .sitsel-flip-card-back {
    transform: translateY(0);
}

/* DOWN */
.sitsel-flip-card[data-effect="push"][data-direction="down"] .sitsel-flip-card-back {
    transform: translateY(100%);
}
.sitsel-flip-card[data-effect="push"][data-direction="down"]:hover .sitsel-flip-card-front {
    transform: translateY(-100%) scale(0.9);
}
.sitsel-flip-card[data-effect="push"][data-direction="down"]:hover .sitsel-flip-card-back {
    transform: translateY(0);
}


/* ===============================
   ZOOM EFFECT
================================ */
.sitsel-flip-card[data-effect="zoom-in"] .sitsel-flip-card-back {
    transform: scale(0.8);
    opacity: 0;
}

.sitsel-flip-card[data-effect="zoom-in"]:hover .sitsel-flip-card-front {
    transform: scale(1.2);
    opacity: 0;
}

.sitsel-flip-card[data-effect="zoom-in"]:hover .sitsel-flip-card-back {
    transform: scale(1);
    opacity: 1;
}
/* ===============================
   ZOOM OUT EFFECT
================================ */
.sitsel-flip-card[data-effect="zoom-out"] .sitsel-flip-card-back {
    transform: scale(1.2);
    opacity: 0;
}

.sitsel-flip-card[data-effect="zoom-out"]:hover .sitsel-flip-card-front {
    transform: scale(0.7);
    opacity: 0;
}

.sitsel-flip-card[data-effect="zoom-out"]:hover .sitsel-flip-card-back {
    transform: scale(1);
    opacity: 1;
}

/* ===============================
   FADE EFFECT
================================ */
.sitsel-flip-card[data-effect="fade"] .sitsel-flip-card-back {
    opacity: 0;
}

.sitsel-flip-card[data-effect="fade"]:hover .sitsel-flip-card-front {
    opacity: 0;
}

.sitsel-flip-card[data-effect="fade"]:hover .sitsel-flip-card-back {
    opacity: 1;
}

/* ===============================
   CONTENT STYLES
================================ */
.sitsel-icon {
    font-size: 48px;
    width: 48px;
    margin-bottom: 20px;
}

.sitsel-icon svg {
    width: 1em;
    height: 1em;
}

.sitsel-flip-card h3 {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 600;
}

.sitsel-flip-card p {
    margin: 0 0 20px;
    line-height: 1.6;
}

.sitsel-btn {
    padding: 12px 24px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sitsel-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .sitsel-flip-card {
        height: 250px;
    }

    .sitsel-icon {
        font-size: 36px;
    }

    .sitsel-flip-card h3 {
        font-size: 20px;
    }
}
