/* =====================================================
   GUIDE KOI - Friendly fish guide styling
   Fixed position companion that helps navigate
   ===================================================== */

.guide-koi-container {
    position: fixed;
    bottom: 150px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    transition: left 0.1s ease-out, bottom 0.1s ease-out;
}

.guide-koi-container.hidden .guide-koi-wrapper {
    opacity: 0;
    transform: scale(0.5);
}

.guide-koi-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

/* Crab canvas - Pixel Art Style */
.guide-koi-canvas {
    width: 200px;
    height: 160px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(3px 4px 8px rgba(0, 0, 0, 0.4));
    cursor: pointer;
    transition: filter 0.2s ease;
}

.guide-koi-canvas:hover {
    filter: drop-shadow(4px 6px 15px rgba(255, 215, 0, 0.7));
}

/* Speech bubble - pixel art parchment style */
.guide-speech-bubble {
    position: relative;
    background: linear-gradient(145deg, #FFF8E7, #F5E6D0);
    border: 3px solid #8B5A2B;
    border-radius: 10px;
    padding: 12px 16px;
    max-width: 240px;
    min-width: 180px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.guide-speech-bubble.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.speech-text {
    font-family: 'Indie Flower', cursive;
    font-size: 0.85rem;
    color: #3D2512;
    line-height: 1.6;
    font-weight: 500;
    display: block;
}

/* Speech bubble tail - points to koi */
.speech-tail {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid #8B5A2B;
}

.speech-tail::after {
    content: '';
    position: absolute;
    left: 4px;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 8px solid #FFF8E7;
}

/* Toggle button - Crown style for royal koi */
.guide-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(145deg, #FFD700, #DAA520);
    border: 3px solid #B8860B;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 215, 0, 0.3);
    transition: all 0.2s ease;
    pointer-events: auto;
    z-index: 1001;
}

.guide-toggle:hover {
    background: linear-gradient(145deg, #FFEC8B, #FFD700);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.5);
}

.toggle-icon {
    font-size: 18px;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guide-koi-container {
        bottom: 80px;
        left: 10px;
    }

    .guide-koi-canvas {
        width: 60px;
        height: 40px;
    }

    .guide-speech-bubble {
        max-width: 160px;
        padding: 8px 12px;
    }

    .speech-text {
        font-size: 0.65rem;
    }

    .guide-toggle {
        width: 30px;
        height: 30px;
    }

    .toggle-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .guide-koi-container {
        bottom: 70px;
        left: 8px;
    }

    .guide-speech-bubble {
        max-width: 140px;
    }
}
