/* Info Guide Widget Styles */
:root {
    --ig-gold: #d4af37;
    --ig-dark: #1a1a1a;
    --ig-bg: rgba(26, 26, 26, 0.95);
    --ig-text: #ffffff;
    --ig-text-muted: #a3a3a3;
    --ig-border: rgba(212, 175, 55, 0.3);
}

#crystal-info-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 2147483647;
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Let clicks pass through empty wrapper space */
}

/* Floating Icon Button */
#crystal-info-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ig-bg);
    border: 1.5px solid var(--ig-gold);
    color: var(--ig-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto; /* Reactivate clicks */
    position: relative;
    z-index: 2;
}

#crystal-info-trigger:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: #000;
}

#crystal-info-trigger.pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--ig-gold);
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
    pointer-events: none;
}

/* Info Panel Expanded */
#crystal-info-panel {
    position: absolute;
    bottom: 80px; /* Above the trigger button */
    right: 0;
    width: 320px;
    background: var(--ig-bg);
    border: 1px solid var(--ig-border);
    border-radius: 16px;
    padding: 24px;
    color: var(--ig-text);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    
    /* Animation states */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    visibility: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

#crystal-info-container.open #crystal-info-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

#crystal-info-container.open #crystal-info-trigger {
    background: var(--ig-gold);
    color: var(--ig-dark);
}

/* Panel Header */
.ig-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.ig-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ig-gold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ig-close {
    background: none;
    border: none;
    color: var(--ig-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.ig-close:hover {
    color: #fff;
}

/* Panel Body */
.ig-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e5e5e5;
    margin: 0 0 16px 0;
}

.ig-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ig-content li {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ig-content li i {
    color: var(--ig-gold);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #crystal-info-container {
        bottom: 85px;
        right: 15px;
    }
    
    #crystal-info-trigger {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    #crystal-info-panel {
        width: calc(100vw - 60px);
        max-width: 280px;
        bottom: 60px; /* Closer to the smaller trigger */
        padding: 18px;
    }

    .ig-title {
        font-size: 1.1rem;
    }

    .ig-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .ig-content li {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}
