/* Clue Box Component Styles */
.clue-box {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 90vw);
    background: linear-gradient(135deg, 
        rgba(255, 248, 220, 0.98) 0%, 
        rgba(240, 230, 180, 0.95) 50%,
        rgba(255, 248, 220, 0.98) 100%);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.clue-box.show {
    bottom: 100px;
    opacity: 1;
}

.clue-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    right: 30px;
    height: 16px;
    background: repeating-linear-gradient(
        45deg,
        rgba(200, 168, 130, 0.6) 0px,
        rgba(200, 168, 130, 0.6) 8px,
        rgba(184, 149, 111, 0.6) 8px,
        rgba(184, 149, 111, 0.6) 16px
    );
    border-radius: 8px;
}

.clue-box::after {
    content: '✨';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 1.5em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        opacity: 1; 
    }
}

.clue-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1em;
    color: #8B4513;
    font-weight: 500;
}

.clue-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #C8A882, #B8956F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: white;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.clue-content {
    color: #6B5B47;
    line-height: 1.6;
    font-size: 0.95em;
    margin-bottom: 18px;
}

.clue-highlight {
    background: linear-gradient(135deg, rgba(200, 168, 130, 0.3), rgba(184, 149, 111, 0.2));
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    color: #8B4513;
}

.clue-action {
    text-align: center;
    margin-top: 15px;
}

.explore-button {
    background: linear-gradient(135deg, #8B4513, #A0755B);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.explore-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.explore-button:hover::before {
    left: 100%;
}


.close-clue {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2em;
    color: rgba(139, 69, 19, 0.6);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.close-clue:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: rotate(90deg);
}

/* Clue Box Responsive */
@media (max-width: 480px) {
    .clue-box {
        width: 95vw;
        padding: 20px 25px;
    }
    
    .clue-box.show {
        bottom: 80px;
    }
    
    .clue-header {
        font-size: 1em;
        gap: 10px;
        margin-bottom: 14px;
    }
    
    .clue-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7em;
    }
    
    .clue-content {
        font-size: 0.9em;
        margin-bottom: 16px;
    }
    
    .explore-button {
        font-size: 0.85em;
        padding: 8px 16px;
    }
}

@media (max-width: 380px) {
    .clue-box {
        padding: 18px 20px;
    }
    
    .clue-box.show {
        bottom: 70px;
    }
    
    .clue-content {
        font-size: 0.85em;
    }
    
    .explore-button {
        font-size: 0.8em;
        padding: 7px 14px;
    }
}