/* Joyful Chaos - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Delius&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Ambient shadows and organic touches */
.ambient-shadow {
    box-shadow: 0 8px 30px -6px rgba(0,60,95,0.1);
}

.paper-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Custom interactive classes for UI polish */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px -8px rgba(0,60,95,0.15);
}

.patch-drag-active {
    background-color: rgba(205, 229, 255, 0.3); /* tertiary-fixed/30 equivalent */
    border-color: #003c5f; /* tertiary equivalent */
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Custom Scrollbar for a premium feel */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fbf8ff; /* surface */
}

::-webkit-scrollbar-thumb {
    background: #dad9e5; /* surface-dim */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c5c5d8; /* outline-variant */
}

/* Clothing Animation Styles */
@keyframes slide-in-clothesline {
    0% { transform: translateX(150%) rotate(5deg); opacity: 0; }
    100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

@keyframes slide-out-clothesline {
    0% { transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateX(-150%) rotate(-5deg); opacity: 0; }
}

.slide-in-active {
    animation: slide-in-clothesline 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-out-active {
    animation: slide-out-clothesline 0.4s ease-in forwards;
}

.clothing-wrapper {
    position: absolute;
    top: 40px; /* Align with clothesline */
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: top center;
}

.clothing-svg {
    max-height: 70%;
    max-width: 70%;
    filter: drop-shadow(0 25px 25px rgba(0,0,0,0.15));
    transition: fill 0.1s ease;
}

.uploaded-patch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 35%;
    max-height: 35%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    z-index: 10;
}

/* Floating Cloud animations for color selector */
@keyframes cloud-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.floating-cloud {
    animation: cloud-float 5s ease-in-out infinite;
}

.floating-cloud-delay {
    animation: cloud-float 5s ease-in-out infinite;
    animation-delay: 2.5s;
}

/* Force form controls and buttons to use the brand font */
input, textarea, select, button {
    font-family: 'Delius', sans-serif !important;
}
