/* Hanging Shoes Animation Styles */
.hanging-shoes {
    position: fixed;
    left: 15px;
    top: -150px; /* Start offscreen */
    z-index: 999; /* Slightly lower than header to appear behind it */
    transition: top 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: top center;
    pointer-events: none; /* Prevent interaction with the element */
    opacity: 0;
}

.hanging-shoes.show {
    top: 120px; /* Position even lower below the header for longer lace */
    opacity: 1;
    animation: swingShoes 3s ease-in-out infinite;
}

/* Create a clip path to make it look like the shoe is appearing from behind the header */
.hanging-shoes.show:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    top: -20px;
    left: 0;
    background: none; /* Remove the background gradient that was causing the white box */
    z-index: 2;
    pointer-events: none;
}

.hanging-shoes img {
    width: 80px; /* Increased from 60px */
    height: auto;
    filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.3)) 
           drop-shadow(0 0 15px rgba(255, 133, 162, 0.5)); /* Added colorful glow */
    border-radius: 8px;
    transform: rotate(15deg); /* Tilt the shoe slightly for a more natural hanging look */
    transition: filter 0.5s ease;
}

.hanging-shoes:hover img {
    filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.3)) 
           drop-shadow(0 0 15px rgba(86, 204, 242, 0.7)); /* Blue glow on hover */
}

/* Main shoelace - use repeating linear gradient for texture */
.main-shoelace {
    position: absolute;
    width: 5px; /* Thicker lace to match larger shoe */
    height: 100px; /* Much longer lace */
    top: -98px;
    left: 50%;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        to bottom,
        #FFDE59 0px, /* Yellow lace */
        #FFE86E 1px,
        #FFDE59 2px,
        #FFE86E 3px,
        #FFDE59 4px
    );
    box-shadow: 0 0 5px rgba(255, 222, 89, 0.5); /* Yellow glow */
    border-radius: 2px;
    z-index: 0;
}

/* Lace texture overlay */
.main-shoelace:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.4) 40%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0.4) 60%,
        transparent 100%
    );
    border-radius: 2px;
}

/* Create the shoelace effect at the top where it meets the header */
.shoelace-top {
    position: absolute;
    width: 55px; /* Slightly wider to match larger shoe */
    height: 12px; /* Slightly taller */
    top: -105px; /* Moved higher to account for longer lace */
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, #FFDE59 0%, #FFE86E 70%); /* Yellow */
    border-top: 2px solid #FFDE59;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 -3px 5px -3px rgba(0,0,0,0.4);
    z-index: 1;
}

/* Add shoelace knot */
.shoelace-knot {
    position: absolute;
    top: -101px; /* Moved higher to account for longer lace */
    left: 50%;
    transform: translateX(-50%);
    width: 14px; /* Larger knot */
    height: 8px; /* Larger knot */
    background-color: #FF85A2; /* Pink knot */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 -2px 2px rgba(255,133,162,0.4);
    z-index: 2;
}

/* Add texture to the knot */
.shoelace-knot:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 9px;
    height: 3px;
    background: rgba(255,255,255,0.6);
    border-radius: 3px;
}

/* Add shoelace loop left */
.shoelace-loop-left {
    position: absolute;
    top: -98px; /* Moved higher to account for longer lace */
    left: calc(50% - 10px);
    width: 9px; /* Slightly larger loop */
    height: 14px; /* Slightly larger loop */
    border: 2px solid #FF85A2; /* Pink loop */
    background-color: transparent;
    border-radius: 40%;
    transform: rotate(-20deg);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Add shoelace loop right */
.shoelace-loop-right {
    position: absolute;
    top: -98px; /* Moved higher to account for longer lace */
    left: calc(50% + 1px);
    width: 9px; /* Slightly larger loop */
    height: 14px; /* Slightly larger loop */
    border: 2px solid #FF85A2; /* Pink loop */
    background-color: transparent;
    border-radius: 40%;
    transform: rotate(20deg);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Add loop texture gradients */
.shoelace-loop-left:after, .shoelace-loop-right:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 40%;
    background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.6) 50%, transparent 55%);
}

/* Add a slight curve to the lace for more realism */
.lace-curve {
    position: absolute;
    width: 8px; /* Wider curve for longer lace */
    height: 40px; /* Taller curve for longer lace */
    border-left: 2px solid #FFDE59; /* Yellow curve */
    border-radius: 50%;
    top: -55px; /* Adjusted position */
    left: calc(50% + 2px);
    transform: translateX(-50%) rotate(5deg);
    z-index: 0;
}

/* Add second lace curve for a more natural look */
.lace-curve-2 {
    position: absolute;
    width: 6px; /* Wider curve */
    height: 30px; /* Taller curve */
    border-right: 2px solid #FFDE59; /* Yellow curve */
    border-radius: 50%;
    top: -25px; /* Adjusted position */
    left: calc(50% - 3px);
    transform: translateX(-50%) rotate(-3deg);
    z-index: 0;
}

@keyframes swingShoes {
    0% {
        transform: rotate(8deg);
    }
    50% {
        transform: rotate(-8deg);
    }
    100% {
        transform: rotate(8deg);
    }
}

/* Adjust position for different screen sizes */
@media (max-width: 992px) {
    .hanging-shoes.show {
        top: 110px;
    }
    
    .main-shoelace {
        height: 85px;
        top: -83px;
    }
    
    .shoelace-top {
        top: -90px;
    }
    
    .shoelace-knot {
        top: -87px;
    }
    
    .shoelace-loop-left, .shoelace-loop-right {
        top: -85px;
    }
    
    .lace-curve {
        height: 35px;
        top: -50px;
    }
    
    .lace-curve-2 {
        height: 25px;
        top: -22px;
    }
}

@media (max-width: 768px) {
    .hanging-shoes {
        left: 10px;
    }
    
    .hanging-shoes.show {
        top: 90px;
    }
    
    .hanging-shoes img {
        width: 65px;
    }
    
    .main-shoelace {
        width: 4px;
        height: 70px;
        top: -68px;
    }
    
    .shoelace-top {
        width: 45px;
        height: 10px;
        top: -75px;
    }
    
    .shoelace-knot {
        top: -72px;
        width: 12px;
        height: 6px;
    }
    
    .shoelace-loop-left,
    .shoelace-loop-right {
        width: 7px;
        height: 11px;
        top: -70px;
        border-width: 1.5px;
    }
    
    .shoelace-loop-left {
        left: calc(50% - 8px);
    }
    
    .shoelace-loop-right {
        left: calc(50% + 1px);
    }
    
    .lace-curve {
        height: 30px;
        top: -45px;
    }
    
    .lace-curve-2 {
        height: 22px;
        top: -22px;
    }
}

@media (max-width: 576px) {
    .hanging-shoes.show {
        top: 80px;
    }
    
    .hanging-shoes img {
        width: 55px;
    }
    
    .main-shoelace {
        width: 3px;
        height: 60px;
        top: -58px;
    }
    
    .shoelace-top {
        width: 40px;
        height: 8px;
        top: -65px;
    }
    
    .shoelace-knot {
        top: -62px;
        width: 10px;
        height: 5px;
    }
    
    .shoelace-loop-left,
    .shoelace-loop-right {
        width: 6px;
        height: 8px;
        top: -60px;
        border-width: 1.5px;
    }
    
    .shoelace-loop-left {
        left: calc(50% - 7px);
    }
    
    .shoelace-loop-right {
        left: calc(50% + 1px);
    }
    
    .lace-curve {
        height: 25px;
        top: -40px;
    }
    
    .lace-curve-2 {
        height: 18px;
        top: -20px;
    }
} 