/* Vertical Depth Indicator Bar - Using unified positioning */

.depth-indicator {
    position: fixed !important;
    left: var(--spacing-xl, 32px) !important;
    top: calc(var(--center-y, 50%) - 70px) !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg, 24px);
    height: var(--circle-domain, 140px);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.depth-indicator.visible {
    opacity: 1;
}

.depth-level {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.depth-level.active {
    width: 16px;
    height: 16px;
    background: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.depth-level.clickable:hover {
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.2);
}

/* Connection lines between levels - showing hierarchy */
.depth-indicator::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 215, 0, 0.15) 20%,
        rgba(255, 215, 0, 0.15) 80%,
        transparent
    );
    transform: translateX(-50%);
}

/* Breadcrumb arrow indicators */
.depth-level::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.depth-level.active::before {
    opacity: 1;
    border-top-color: #ffd700;
}

.depth-level.clickable::before {
    opacity: 0.5;
    border-top-color: rgba(255, 215, 0, 0.4);
}

/* Horizontal line connecting active level to circle */
.depth-level.active::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(
        to right,
        #ffd700,
        rgba(255, 215, 0, 0.3),
        transparent
    );
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Tooltip labels on hover - using data attribute */
.depth-level[data-label]:hover::after {
    content: attr(data-label);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 46, 0.95);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .depth-indicator {
        left: var(--spacing-md, 16px) !important; /* Fixed position on mobile */
        top: calc(var(--center-y, 50%) - 90px) !important; /* Aligned with circles on mobile */
        gap: 20px;
    }
    
    .depth-level {
        width: 10px;
        height: 10px;
    }
    
    .depth-level.active {
        width: 14px;
        height: 14px;
    }
}

/* PWA adjustments */
@media (display-mode: standalone) {
    .depth-indicator {
        top: calc(var(--center-y, 50%) - 70px + var(--safe-top, 0px)) !important;
    }
}

/* Remove the old breadcrumb styles - we're replacing with vertical indicator */
.breadcrumb-nav,
.level-indicator {
    display: none !important;
}

/* Adjust domain circle size */
.domain-bubble-circle {
    width: 140px !important;
    height: 140px !important;
}

/* Keep focus circle at current size (it's perfect) */
.focus-bubble-circle {
    width: 120px;
    height: 120px;
}