/* CSS for QuestValidAnagramL2 component */
/* ==========================================================================
   QuestValidAnagramL2.css
   Valid Anagram Level 2 specific styles
   ========================================================================== */

/* Letter tile override
   Replaces the generic stone emoji style */
.anagram-letter-stone {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: #2d5be3;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}


    /* Active letter during sorting */
    .anagram-letter-stone.active {
        transform: translateY(-20px) scale(1.15);
        animation: anagramGlow 1s infinite alternate;
    }


/* Letter wrapper spacing */
.anagram-letter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
}


/* Sorting glow */
@keyframes anagramGlow {

    from {
        box-shadow: 0 0 8px #2d5be3;
    }

    to {
        box-shadow: 0 0 25px #ffb300;
    }
}


/* Sorted state */
.anagram-letter-stone.sorted {
    background: #28a745;
}


/* Small label above animation */
.sort-status {
    color: #23408e;
    font-size: 18px;
    font-weight: bold;
}

/* Bucket characters - Jar styled for Anagrams - Starts*/
.bucket-grid {
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 72px));
    gap: 22px 8px;
    justify-content: center;
    padding: 25px 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* Individual jar */
.bucket {
    position: relative;
    width: 62px;
    height: 86px;
    display: flex;
    justify-content: center;
    transition: transform .25s ease;
}


    .bucket:hover {
        transform: translateY(-4px) scale(1.05);
    }


/* Jar container */
.bucket-jar {
    position: absolute;
    inset: 0;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,.15));
}


    /* Teal crystal lid */
    .bucket-jar::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 11px;
        width: 40px;
        height: 9px;
        border-radius: 10px 10px 5px 5px;
        background: linear-gradient( 180deg, #9debe4, #29aaa5 );
        border: 1px solid rgba(20,120,120,.4);
        box-shadow: inset 0 3px 4px rgba(255,255,255,.75), inset 0 -3px 5px rgba(0,80,80,.25), 0 3px 6px rgba(0,0,0,.2);
        z-index: 2;
    }



    /* Glass jar body */
    .bucket-jar::after {
        content: "";
        position: absolute;
        top: 16px;
        left: 7px;
        width: 48px;
        height: 64px;
        /* wider jar base, less pill */
        border-radius: 12px 12px 18px 18px;
        background: linear-gradient( 90deg, rgba(200,240,245,.35), rgba(255,255,255,.18), rgba(220,240,255,.25), rgba(255,255,255,.45) );
        border: 2px solid rgba(170,190,210,.6);
        box-shadow: inset 7px 0 14px rgba(255,255,255,.85), inset -8px 0 15px rgba(120,150,180,.18), inset 0 -15px 18px rgba(100,140,170,.16), 0 10px 20px rgba(0,0,0,.16);
        transition: .3s ease;
    }


/* Glass reflection */
.bucket::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 17px;
    width: 9px;
    height: 42px;
    border-radius: 20px;
    background: linear-gradient( 180deg, rgba(255,255,255,.9), rgba(255,255,255,.15) );
    z-index: 4;
    pointer-events: none;
}



/* Bottom glass shadow */
.bucket::before {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 18px;
    width: 36px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100,130,150,.18);
    filter: blur(4px);
    z-index: 3;
}



/* Letter */
.bucket-letter {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: 900;
    color: #24324d;
    z-index: 5;
    text-shadow: 0 2px 3px rgba(255,255,255,.9);
}



/* Count */
.bucket-value {
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 21px;
    font-weight: 900;
    color: #4b6fa8;
    z-index: 5;
    text-shadow: 0 2px 3px rgba(255,255,255,.9);
}



/* Active jar */
.bucket.active {
    transform: translateY(-10px) scale(1.1);
}



    .bucket.active .bucket-jar::after {
        border-color: #55c5ff;
        background: linear-gradient( 90deg, rgba(255,255,255,.75), rgba(80,190,255,.2), rgba(255,255,255,.55) );
        animation: activeGlow 1s infinite alternate;
    }



    .bucket.active .bucket-letter,
    .bucket.active .bucket-value {
        color: #1677ff;
        text-shadow: 0 0 10px rgba(80,180,255,.9), 0 2px 4px white;
    }



/* Glow */
@keyframes activeGlow {

    from {
        box-shadow: inset 0 0 12px white, 0 0 12px rgba(80,180,255,.5), 0 10px 20px rgba(0,0,0,.15);
    }


    to {
        box-shadow: inset 0 0 25px white, 0 0 35px rgba(80,180,255,.9), 0 12px 30px rgba(0,120,255,.35);
    }
}

/* Bucket characters - Jar styled for Anagrams - Ends */

/* for Completed groups in L2 Group Anagrams - Starts*/
.completed-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.group-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-divider {
    font-size: 34px;
    font-weight: 300;
    color: #8aa7d6;
    user-select: none;
}
/* for Completed groups in L2 Group Anagrams - Ends*/