/* Auto-Explore Mode Styles */

.auto-explore-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 12px;
    padding: 16px;
    z-index: 1000;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.auto-explore-indicator.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.auto-explore-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auto-explore-icon {
    font-size: 24px;
    animation: autoExploreRotate 12s linear infinite;
    flex-shrink: 0;
}

@keyframes autoExploreRotate {
    from { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(0.9); }
    75% { transform: rotate(270deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

.auto-explore-text {
    flex: 1;
    min-width: 0; /* Allow text to shrink */
}

.auto-explore-title {
    font-size: 14px;
    font-weight: 600;
    color: #00ffaa;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.auto-explore-subtitle {
    font-size: 12px;
    color: #ccc;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.auto-explore-hint {
    font-size: 10px;
    color: #999;
    opacity: 0.7;
    margin-top: 2px;
    font-style: italic;
}

.auto-explore-exit {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.7;
}

.auto-explore-exit:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.auto-explore-exit:active {
    transform: scale(0.95);
}

/* Auto-explore mode overlay effect */
.auto-explore-active {
    position: relative;
}

.auto-explore-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 255, 170, 0.02) 0%, 
        rgba(0, 123, 191, 0.02) 50%, 
        rgba(0, 255, 170, 0.02) 100%);
    z-index: -1;
    pointer-events: none;
    animation: autoExploreGlow 4s ease-in-out infinite alternate;
}

@keyframes autoExploreGlow {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auto-explore-indicator {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: unset;
        max-width: none;
    }
    
    .auto-explore-content {
        gap: 8px;
    }
    
    .auto-explore-icon {
        font-size: 20px;
    }
    
    .auto-explore-title {
        font-size: 13px;
    }
    
    .auto-explore-subtitle {
        font-size: 11px;
        max-width: calc(100vw - 120px);
    }

    .auto-explore-hint {
        font-size: 9px;
        max-width: calc(100vw - 120px);
    }
}

/* Integration with existing RadiaMaps theme */
.auto-explore-indicator {
    background: var(--primary-bg-color, rgba(0, 0, 0, 0.85));
    color: var(--text-color, #fff);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.auto-explore-title {
    color: var(--accent-color, #00ffaa);
}

.auto-explore-subtitle {
    color: var(--secondary-text-color, #ccc);
}

/* Smooth entrance animation */
@keyframes autoExploreSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auto-explore-indicator:not(.hidden) {
    animation: autoExploreSlideIn 0.5s ease-out;
}

/* Pulse effect for status changes */
@keyframes autoExplorePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.auto-explore-text.updating {
    animation: autoExplorePulse 0.3s ease;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .auto-explore-indicator {
        background: rgba(20, 20, 20, 0.9);
        border-color: rgba(255, 255, 255, 0.15);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .auto-explore-indicator {
        background: black;
        border: 2px solid white;
        color: white;
    }
    
    .auto-explore-exit:hover {
        background: white;
        color: black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .auto-explore-icon {
        animation: none;
    }
    
    .auto-explore-indicator::before {
        animation: none;
    }
    
    .auto-explore-indicator:not(.hidden) {
        animation: none;
    }
    
    .auto-explore-text.updating {
        animation: none;
    }
}