/* ===========================
   Locked Offer Wall Section - Enhanced
   =========================== */
.locked-offer-wall-section {
    position: relative;
    background: linear-gradient(135deg, #FFF9E5 0%, #FFE17D 50%, #FFD173 75%, #FF8C00 100%);
    overflow: hidden;
}

/* Parallax Container */
.locked-offer-card {
    position: relative;
    background: #fff;
    border: 2px solid #FFE17D;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.15);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Gradient overlay on hover */
.locked-offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(255, 225, 125, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

/* Hover State with Parallax Effect */
.locked-offer-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.4);
    border-color: #FF8C00;
    background: linear-gradient(135deg, #FFF9E5 0%, #FFFAF3 100%);
}

.locked-offer-card:hover::before {
    opacity: 1;
}

/* Unlock Animation - Fade out lock overlay */
.locked-offer-card:hover .lock-overlay {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85) rotateY(90deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Lock icon specific fade animation */
.locked-offer-card:hover .lock-overlay i {
    animation: unlockFade 0.6s ease-out forwards;
}

@keyframes unlockFade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2) rotate(-15deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(-30deg) translateY(-20px);
    }
}

/* Reveal content with parallax */
.locked-offer-card:hover .offer-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateZ(20px);
}

/* Parallax effect on icon */
.locked-offer-card:hover .offer-content .offer-icon {
    transform: translateZ(40px);
}

/* Parallax effect on text */
.locked-offer-card:hover .offer-content h4 {
    transform: translateZ(30px);
}

.locked-offer-card:hover .offer-content p {
    transform: translateZ(20px);
}

/* Lock Overlay Styles */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 229, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(1) rotateY(0deg);
    transform-style: preserve-3d;
    backdrop-filter: blur(8px);
}

.lock-overlay i {
    font-size: 70px;
    color: #FF8C00;
    margin-bottom: 20px;
    animation: lockPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(255, 140, 0, 0.4));
    transform-origin: center;
    transition: all 0.6s ease;
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 6px 12px rgba(255, 140, 0, 0.4));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 8px 16px rgba(255, 140, 0, 0.6));
    }
}

.lock-overlay p {
    font-size: 17px;
    font-weight: 600;
    color: #1E1E2A;
    text-align: center;
    padding: 0 25px;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: opacity 0.4s ease;
}

/* Offer Content with Parallax Layers */
.offer-content {
    padding: 45px 35px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center all children horizontally */
    transform: translateY(30px) translateZ(0);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

/* Icon with Parallax Depth */
.offer-content .offer-icon {
    margin: 0 auto 25px auto; /* Center horizontally with auto margins */
    position: relative;
    display: flex; /* Changed from inline-flex to flex */
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
    overflow: hidden; /* Prevent icon from escaping the circle */
    flex-shrink: 0; /* Prevent shrinking */
}

.offer-content .offer-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 225, 125, 0.25) 100%);
    border-radius: 50%;
    z-index: -1;
    animation: iconGlow 3s ease-in-out infinite;
    pointer-events: none; /* Ensure circle doesn't interfere with icon */
}

@keyframes iconGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.9;
        box-shadow: 0 0 40px rgba(255, 140, 0, 0.5);
    }
}

.offer-content .offer-icon i {
    font-size: 56px;
    color: #FF8C00;
    filter: drop-shadow(0 6px 15px rgba(255, 140, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

/* Text with Parallax Depth */
.offer-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1E1E2A;
    margin-bottom: 18px;
    line-height: 1.3;
    background: linear-gradient(135deg, #1E1E2A 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
    text-align: center;
    width: 100%;
}

.offer-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #5E626F;
    font-weight: 500;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s;
    transform-style: preserve-3d;
    text-align: center;
    width: 100%;
}

/* Section Title Enhancement */
.locked-offer-wall-section .section-title h2 {
    color: #1E1E2A;
    text-shadow: 0 2px 4px rgba(255, 140, 0, 0.1);
}

.locked-offer-wall-section .section-title p {
    color: #5E626F;
    font-weight: 500;
}

.locked-offer-wall-section .sub-heading {
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff !important;
}

.locked-offer-wall-section .sub-heading .sub-title {
    color: #fff !important;
}

.locked-offer-wall-section .sub-heading i {
    color: #fff !important;
}

/* Button Enhancement with Shine Effect */
.locked-offer-wall-section .theme-btn.style-one {
    border: none;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.locked-offer-wall-section .theme-btn.style-one::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.locked-offer-wall-section .theme-btn.style-one:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 140, 0, 0.5);
}

.locked-offer-wall-section .theme-btn.style-one:hover::before {
    left: 100%;
}

/* Mouse Move Parallax Enhancement - Add via JavaScript */
.locked-offer-card[data-tilt] {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    .locked-offer-card {
        height: 350px;
    }

    .lock-overlay i {
        font-size: 60px;
    }

    .lock-overlay p {
        font-size: 16px;
    }

    .offer-content {
        padding: 35px 25px;
    }

    .offer-content .offer-icon i {
        font-size: 48px;
    }

    .offer-content h4 {
        font-size: 22px;
    }

    .offer-content p {
        font-size: 14px;
    }

    .locked-offer-wall-section .theme-btn.style-one {
        padding: 16px 35px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .locked-offer-card {
        height: 320px;
    }

    .lock-overlay i {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .lock-overlay p {
        font-size: 15px;
        padding: 0 20px;
    }

    .offer-content {
        padding: 30px 20px;
    }

    .offer-content .offer-icon i {
        font-size: 42px;
    }

    .offer-content h4 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .offer-content p {
        font-size: 13px;
    }
    
    /* Disable parallax on mobile for performance */
    .locked-offer-card:hover .offer-content .offer-icon,
    .locked-offer-card:hover .offer-content h4,
    .locked-offer-card:hover .offer-content p {
        transform: translateY(0) translateZ(0);
    }
}
