/* Compass Widget */
.compass-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    z-index: 2147483647 !important;
    text-decoration: none;
    color: #f4f4f2; /* Off-white text */
}

.compass-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(26, 13, 4, 0.85); /* Semi-transparent dark coffee */
    backdrop-filter: blur(12px); /* Premium frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle bright edge */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.compass-inner:hover {
    transform: scale(1.05);
    background-color: rgba(51, 31, 16, 0.95); /* Slightly lighter on hover */
    border-color: rgba(255, 255, 255, 0.2);
}

.compass-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotateText 20s linear infinite;
}

.compass-text-svg {
    width: 100%;
    height: 100%;
}

.compass-needle {
    position: absolute;
    transition: transform 0.2s ease-out;
}

@keyframes rotateText {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.compass-widget:hover .compass-needle {
    color: #d49b6a; /* Golden crema accent on hover */
}

/* Responsive Sizing */
@media (max-width: 1024px) {
    .compass-widget {
        width: 84px;
        height: 84px;
        bottom: 24px;
        right: 24px;
    }
}

@media (max-width: 768px) {
    .compass-widget {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        animation: compassPulseAttention 5s infinite ease-in-out;
    }
    
    @keyframes compassPulseAttention {
        0%, 85%, 100% { 
            transform: scale(1);
        }
        92% { 
            transform: scale(1.15);
            /* Add a subtle glow when pulsing */
            filter: drop-shadow(0 0 8px rgba(212, 155, 106, 0.5));
        }
    }
}
