/* ============================================
   Party Propz Widget - Base Styles
   ============================================ */

.unlockafe-party-propz-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: visible;
    min-height: 200px;
}

/* Ensure parent section can contain snow */
.elementor-section:has(.unlockafe-party-propz-wrapper) {
    position: relative;
    overflow: visible;
}

.unlockafe-party-prop {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform-origin: center center;
}

/* Prop Shapes */
.unlockafe-prop-shape {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
}

/* Balloon Shape */
.unlockafe-prop-balloon .unlockafe-prop-shape {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
}

.unlockafe-prop-balloon .unlockafe-prop-shape::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background-color: currentColor;
    opacity: 0.3;
}

/* Confetti Shape */
.unlockafe-prop-confetti .unlockafe-prop-shape {
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
    transform: rotate(45deg);
}

/* Star Shape */
.unlockafe-prop-star .unlockafe-prop-shape {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
}

/* Heart Shape */
.unlockafe-prop-heart .unlockafe-prop-shape {
    clip-path: path('M12,21.35l-1.45-1.32C5.4,15.36,2,12.28,2,8.5 C2,5.42,4.42,3,7.5,3c1.74,0,3.41,0.81,4.5,2.09C13.09,3.81,14.76,3,16.5,3 C19.58,3,22,5.42,22,8.5c0,3.78-3.4,6.86-8.55,11.54L12,21.35z');
    border-radius: 0;
    transform: scale(0.8);
}

/* Gift Shape */
.unlockafe-prop-gift .unlockafe-prop-shape {
    border-radius: 8px;
    position: relative;
}

.unlockafe-prop-gift .unlockafe-prop-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

.unlockafe-prop-gift .unlockafe-prop-shape::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 20%;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Cake Shape */
.unlockafe-prop-cake .unlockafe-prop-shape {
    border-radius: 8px 8px 0 0;
    position: relative;
}

.unlockafe-prop-cake .unlockafe-prop-shape::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60%;
    height: 30%;
    background-color: currentColor;
    border-radius: 50% 50% 0 0;
    opacity: 0.8;
}

/* Santa Cap Shape */
.unlockafe-prop-santa-cap .unlockafe-prop-shape {
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    position: relative;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.unlockafe-prop-santa-cap .unlockafe-prop-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 30%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.unlockafe-prop-santa-cap .unlockafe-prop-shape::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20%;
    background-color: currentColor;
    border-radius: 0 0 50% 50%;
}

/* Christmas Tree Shape */
.unlockafe-prop-christmas-tree .unlockafe-prop-shape {
    clip-path: polygon(50% 0%, 60% 30%, 100% 30%, 70% 50%, 90% 70%, 50% 60%, 10% 70%, 30% 50%, 0% 30%, 40% 30%);
    border-radius: 0;
    position: relative;
}

.unlockafe-prop-christmas-tree .unlockafe-prop-shape::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20%;
    background-color: currentColor;
    border-radius: 4px;
}

/* Snowflake Shape */
.unlockafe-prop-snowflake .unlockafe-prop-shape {
    clip-path: polygon(
        50% 0%, 55% 20%, 75% 20%, 60% 35%, 80% 45%, 65% 50%, 80% 55%, 60% 65%, 75% 80%, 55% 80%, 50% 100%, 
        45% 80%, 25% 80%, 40% 65%, 20% 55%, 35% 50%, 20% 45%, 40% 35%, 25% 20%, 45% 20%
    );
    border-radius: 0;
    background: linear-gradient(45deg, currentColor 0%, rgba(255,255,255,0.8) 50%, currentColor 100%);
}

/* Reindeer Shape */
.unlockafe-prop-reindeer .unlockafe-prop-shape {
    clip-path: polygon(
        50% 0%, 60% 15%, 70% 10%, 75% 25%, 85% 30%, 80% 45%, 70% 50%, 60% 65%, 50% 70%, 40% 65%, 30% 50%, 
        20% 45%, 15% 30%, 25% 25%, 30% 10%, 40% 15%
    );
    border-radius: 0;
    position: relative;
}

.unlockafe-prop-reindeer .unlockafe-prop-shape::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 15%;
    height: 15%;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
}

.unlockafe-prop-reindeer .unlockafe-prop-shape::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 20%;
    width: 15%;
    height: 15%;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
}

/* Snow Shape */
.unlockafe-prop-snow .unlockafe-prop-shape {
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
    box-shadow: 
        inset -10px -10px 0 0 rgba(255,255,255,0.3),
        inset 10px 10px 0 0 rgba(255,255,255,0.3);
}

/* Hanukkah Candle Shape */
.unlockafe-prop-hanukkah-candle .unlockafe-prop-shape {
    border-radius: 4px 4px 0 0;
    position: relative;
    background: linear-gradient(to bottom, currentColor 0%, currentColor 70%, rgba(255,255,255,0.3) 70%, rgba(255,255,255,0.3) 100%);
}

.unlockafe-prop-hanukkah-candle .unlockafe-prop-shape::before {
    content: '';
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 15%;
    background-color: #ffd700;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Xmas Border Shape */
.unlockafe-prop-xmas-border {
    width: 100% !important;
    height: auto !important;
    position: absolute !important;
    left: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

.unlockafe-prop-xmas-border .unlockafe-prop-shape {
    width: 100%;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        currentColor 0px,
        currentColor 20px,
        rgba(255,255,255,0.3) 20px,
        rgba(255,255,255,0.3) 40px
    );
    clip-path: polygon(
        0% 0%, 5% 20%, 10% 0%, 15% 20%, 20% 0%, 25% 20%, 30% 0%, 35% 20%, 40% 0%, 45% 20%, 
        50% 0%, 55% 20%, 60% 0%, 65% 20%, 70% 0%, 75% 20%, 80% 0%, 85% 20%, 90% 0%, 95% 20%, 100% 0%,
        100% 100%, 0% 100%
    );
    border-radius: 0;
}

/* Icon Props */
.unlockafe-prop-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: inherit;
}

.unlockafe-prop-icon i,
.unlockafe-prop-icon svg {
    width: 100%;
    height: 100%;
    font-size: 100%;
}

/* Image Props */
.unlockafe-prop-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unlockafe-prop-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================
   Animation Types
   ============================================ */

/* Float Animation */
.unlockafe-animation-float .unlockafe-party-prop {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
    }
    75% {
        transform: translateY(-25px) translateX(5px);
    }
}

/* Rotate Animation */
.unlockafe-animation-rotate .unlockafe-party-prop {
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Bounce Animation */
.unlockafe-animation-bounce .unlockafe-party-prop {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Drift Animation */
.unlockafe-animation-drift .unlockafe-party-prop {
    animation: drift 5s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -15px);
    }
    50% {
        transform: translate(-10px, -25px);
    }
    75% {
        transform: translate(-20px, -10px);
    }
}

/* Pulse Animation */
.unlockafe-animation-pulse .unlockafe-party-prop {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Swing Animation */
.unlockafe-animation-swing .unlockafe-party-prop {
    animation: swing 3s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

/* Random Delay for Staggered Effect */
.unlockafe-party-prop.unlockafe-prop-1 {
    animation-delay: 0s;
}

.unlockafe-party-prop.unlockafe-prop-2 {
    animation-delay: 0.3s;
}

.unlockafe-party-prop.unlockafe-prop-3 {
    animation-delay: 0.6s;
}

.unlockafe-party-prop.unlockafe-prop-4 {
    animation-delay: 0.9s;
}

.unlockafe-party-prop.unlockafe-prop-5 {
    animation-delay: 1.2s;
}

.unlockafe-party-prop.unlockafe-prop-6 {
    animation-delay: 1.5s;
}

.unlockafe-party-prop.unlockafe-prop-7 {
    animation-delay: 1.8s;
}

.unlockafe-party-prop.unlockafe-prop-8 {
    animation-delay: 2.1s;
}

/* Interactive Hover Effect */
.unlockafe-interactive .unlockafe-party-prop {
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.unlockafe-interactive .unlockafe-party-prop:hover {
    transform: scale(1.2) !important;
    z-index: 100 !important;
}

/* ============================================
   Falling Snow Animation
   ============================================ */

.unlockafe-snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 999;
    min-width: 100%;
}

.unlockafe-snowflake {
    position: absolute;
    top: -10px;
    color: #d3d3d3 !important;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 3px rgba(211, 211, 211, 0.6);
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
    opacity: 0.7;
    line-height: 1;
    display: block !important;
    width: auto;
    height: auto;
    visibility: visible !important;
    filter: blur(0.5px);
}

.unlockafe-snowflake::before {
    content: attr(data-snow-char);
    display: block;
    font-size: inherit;
    color: inherit;
    opacity: 0.8;
}

/* Fallback if data attribute not set */
.unlockafe-snowflake:not([data-snow-char])::before {
    content: '❄';
}

/* Different snow designs */
.unlockafe-snow-dot::before {
    content: '•' !important;
}

.unlockafe-snow-circle::before {
    content: '●' !important;
}

.unlockafe-snow-star::before {
    content: '★' !important;
}

.unlockafe-snow-cross::before {
    content: '✕' !important;
}

.unlockafe-snow-diamond::before {
    content: '◆' !important;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(var(--snow-drift, 0px)) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--snow-drift, 0px)) rotate(360deg);
        opacity: 0.3;
    }
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .unlockafe-party-propz-wrapper {
        height: 400px;
    }
    
    .unlockafe-party-prop {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .unlockafe-party-propz-wrapper {
        height: 300px;
    }
    
    .unlockafe-party-prop {
        transform: scale(0.6);
    }
}


