/* Profile Photo Stickers - positioned around book cover */
.floating-stickers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible; /* Allow stickers to extend beyond book cover */
    z-index: 5;
}

.floating-sticker.profile-sticker {
    position: absolute;
    pointer-events: auto;
    z-index: 5;
    opacity: 1; /* Set to 100% opacity - fully visible */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 4s ease-in-out infinite;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    object-fit: cover;
}

.floating-sticker.profile-sticker:hover {
    opacity: 1; /* Stay fully visible on hover */
    transform: scale(1.2);
    border-color: #009A94;
    box-shadow: 0 6px 24px rgba(0, 154, 148, 0.3);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
}

/* Different floating animations for variety */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
    75% {
        transform: translateY(-5px) rotate(1deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(-2deg);
    }
    66% {
        transform: translateY(-3px) rotate(1deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

/* Apply different animations to different stickers */
.floating-sticker:nth-child(1) {
    animation: float 4s ease-in-out infinite;
    animation-delay: 0s;
}

.floating-sticker:nth-child(2) {
    animation: float2 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.floating-sticker:nth-child(3) {
    animation: float3 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-sticker:nth-child(4) {
    animation: float 3.8s ease-in-out infinite;
    animation-delay: 1.5s;
}

.floating-sticker:nth-child(5) {
    animation: float2 4.2s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-sticker:nth-child(6) {
    animation: float3 3.2s ease-in-out infinite;
    animation-delay: 2.5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-sticker {
        width: 30px !important;
        height: 30px !important;
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .floating-sticker {
        width: 25px !important;
        height: 25px !important;
        opacity: 0.5;
    }
    
    /* Hide some stickers on very small screens */
    .floating-sticker:nth-child(n+5) {
        display: none;
    }
}

/* Theme responsive stickers */
[data-theme="light"] .floating-sticker.profile-sticker {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .floating-sticker.profile-sticker {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Book cover positioning */
.book-cover {
    position: relative;
}
